/* --- VARIABLES Y ESTILOS GLOBALES --- */
:root {
    --primary-color: #d4af37; /* Dorado/Amarillo del logo */
    --dark-color: #2c3e50;    /* Gris oscuro/Azul marino para texto */
    --secondary-color: #34495e; /* Un gris un poco más claro */
    --light-color: #ffffff;
    --background-color: #f8f9fa;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.btn-secondary {
    background-color: var(--dark-color);
    color: var(--light-color);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}


/* --- HEADER Y NAVEGACIÓN --- */
.header {
    background-color: var(--light-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px; /* Ajustar altura del logo */
}

.nav {
    display: none; /* Oculto en móvil */
}

.nav a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: block; /* Visible en móvil */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Estilos del menú móvil abierto */
.nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--light-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
}
.nav.active a {
    margin: 10px 0;
}
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}


/* --- SECCIÓN HERO --- 
.hero-section {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://i.imgur.com/IMAGEN_DEPORTISTAS_FONDO.jpg') no-repeat center center/cover; /* Reemplazar con imagen de fondo profesional */
  /*  color: var(--light-color);
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}*/
/* Reemplaza la regla .hero-section existente con esta */
.hero-section {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('imagenes/cafr_hero.jpg') no-repeat center center/cover;
    color: var(--light-color);
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- SECCIONES GENERALES --- */
.services-section, .testimonials-section, .contact-section {
    padding: 80px 0;
}
.testimonials-section {
    background-color: var(--background-color);
}


/* --- SECCIÓN SERVICIOS --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.service-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}
/* --- Estilos para la nueva sección de servicios con tarjetas de categoría --- */
.service-category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.service-category-card {
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.service-category-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-category-card .card-content {
    padding: 25px;
}

.service-category-card h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.service-category-card .tagline {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-style: italic;
}

.service-category-card h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    display: inline-block;
}

.service-category-card ul {
    list-style-position: inside;
    padding-left: 0;
}

.service-category-card li {
    margin-bottom: 10px;
    color: var(--secondary-color);
    line-height: 1.5;
}

.service-category-card .highlight {
    background-color: #fdf8e1; /* Un amarillo muy pálido */
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* --- Media queries para la nueva sección --- */
@media (min-width: 1024px) {
    .service-category-grid {
        grid-template-columns: 1fr 1fr 1fr; /* Tres columnas en desktop */
        align-items: stretch; /* Asegura que todas las tarjetas tengan la misma altura */
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .service-category-grid {
        grid-template-columns: 1fr; /* O puedes usar 1fr 1fr si prefieres dos columnas en tablet */
    }
}
/* --- SECCIÓN CASOS DE ÉXITO --- */
.testimonial-card {
    background: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 700px;
    margin: 20px auto;
}
.testimonial-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}
.testimonial-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}
.testimonial-card cite {
    font-weight: 700;
    color: var(--primary-color);
}

/* --- SECCIÓN CONTACTO --- */
.contact-section {
    text-align: center;
}

.contact-info {
    margin: 30px 0;
    font-size: 1.1rem;
}
.contact-info p {
    margin-bottom: 10px;
}

.contact-buttons a {
    margin: 10px;
}
.map-container {
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}


/* --- ANIMACIONES DE SCROLL --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* --- SECCIÓN CURSO PRP --- */
.prp-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.prp-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.prp-card {
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
}

.prp-card img {
    width: 100%;
    display: block;
    border-bottom: 1px solid #eee;
    max-height: 300px; /* Ajusta la altura máxima según necesites */
    object-fit: cover;
}

.prp-card h3 {
    padding: 20px;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.prp-advantages {
    margin-top: 30px;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.prp-advantages h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.prp-advantages ol {
    list-style-type: decimal;
    padding-left: 20px;
}

.prp-advantages li {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Media query para tablets y desktops (ajusta el diseño de la galería) */
@media (min-width: 768px) {
    .prp-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .prp-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- RESPONSIVE DESIGN (TABLETS Y DESKTOPS) --- */

/* Tablets */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    .nav {
        display: flex;
    }
    .hero-section h1 {
        font-size: 3.5rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktops */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .section-title {
        font-size: 3rem;
    }
}


/*
=================================================
 TEMA ALTERNATIVO - NEÓN OSCURO
=================================================
*/

.theme-alternativo {
    /* --- Paleta de Colores Inspirada en la Imagen --- */
    --primary-color: #F0E442; /* Amarillo Neón de la iluminación */
    --dark-color: #1a1a1a;    /* Negro/Gris oscuro de las paredes */
    --secondary-color: #333333; /* Un gris un poco más claro para contraste */
    --light-color: #f0f0f0;   /* Blanco roto para texto legible */
    --background-color: #242424; /* Fondo de secciones ligeramente más claro */
    --accent-blue: #3498db;   /* Azul de los balones de ejercicio */
}

/* --- Estilos Generales del Tema --- */
.theme-alternativo body {
    background-color: var(--dark-color);
    color: var(--light-color);
}

.theme-alternativo h1,
.theme-alternativo h2,
.theme-alternativo h3 {
    color: var(--light-color);
}

.theme-alternativo .header {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* --- Títulos y Botones con acento neón --- */
.theme-alternativo .section-title {
    color: var(--primary-color);
}

.theme-alternativo .btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
    font-weight: 700;
}

.theme-alternativo .btn-primary:hover {
    box-shadow: 0 0 15px var(--primary-color);
}

.theme-alternativo .btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* --- Hero Section Oscura --- 
.theme-alternativo .hero-section {
    background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)), url('https://i.imgur.com/IMAGEN_DEPORTISTAS_FONDO.jpg') no-repeat center center/cover;
}*/
/* Reemplaza la regla .theme-alternativo .hero-section existente con esta */
.theme-alternativo .hero-section {
    background: linear-gradient(rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0.7)), url('imagenes/cafr_hero.jpg') no-repeat center center/cover;
}
/* --- Estilo de Tarjetas --- */
.theme-alternativo .service-category-card {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid #444;
}

.theme-alternativo .service-category-card .tagline {
    color: #bbbbbb;
}

.theme-alternativo .service-category-card li {
    color: #cccccc;
}

.theme-alternativo .service-category-card .highlight {
    background-color: rgba(240, 228, 66, 0.1); /* Fondo amarillo neón translúcido */
    border-left: 4px solid var(--primary-color);
    color: var(--light-color);
}

.theme-alternativo .testimonial-card {
    background: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.theme-alternativo .testimonial-card cite {
    color: var(--primary-color);
}

/* --- Contacto y Footer --- */
.theme-alternativo .contact-section {
    background-color: var(--dark-color);
}

.theme-alternativo .footer {
    background-color: var(--secondary-color);
    color: #aaaaaa;
}

/*
=================================================
 SECCIÓN FUNDADOR
=================================================
*/

.founder-section {
    padding: 80px 0;
    background-color: var(--background-color); /* Se adapta al color de fondo de cada tema */
    text-align: center;
}

.founder-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%; /* Asegura que la imagen sea perfectamente redonda */
    object-fit: cover;
    margin-bottom: 25px;
    border: 5px solid var(--primary-color); /* Borde con el color primario de cada tema */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.founder-section h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.founder-section .founder-title {
    font-size: 1.1rem;
    color: var(--primary-color); /* Título con el color primario de cada tema */
    font-weight: 500;
    margin-bottom: 20px;
}

.founder-section .founder-bio {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Ajuste para el brillo neón en el tema alternativo */
.theme-alternativo .founder-photo {
     box-shadow: 0 0 20px rgba(240, 228, 66, 0.5); /* Sombra con el brillo neón */
}

/*
=================================================
 ESTILOS PARA EL INTERRUPTOR DE TEMA
=================================================
*/

.theme-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px; /* Espacio entre la nav y el switch */
}

.theme-switcher .slider {
    position: relative;
    cursor: pointer;
    width: 50px;
    height: 26px;
    background-color: #ccc;
    border-radius: 26px;
    transition: background-color 0.3s;
}

.theme-switcher .slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.theme-switcher input[type="checkbox"] {
    display: none; /* Ocultamos el checkbox por defecto */
}

/* Estilo cuando el switch está activado (tema oscuro) */
.theme-switcher input:checked + .slider {
    background-color: var(--primary-color); /* Color amarillo neón */
}

.theme-switcher input:checked + .slider::before {
    transform: translateX(24px);
}

/* Ocultar en móvil si el menú está cerrado */
@media (max-width: 767px) {
    .theme-switcher {
        display: none; 
    }
}