/* Importar la fuente Bebas Neue de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@300;400;600;700;800&display=swap');

/* --- Estilos Generales y Reseteo Básico --- */
:root {
    --primary-color: #FF5722; 
    --secondary-color: #6A1B9A; 
    --dark-bg: #1a1a1a; 
    --light-text: #f0f0f0; 
    --medium-gray: #333; 
    --section-bg: #262626; 
    /* Cambiamos la fuente principal para títulos y la de respaldo para el cuerpo */
    --font-title: 'Bebas Neue', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* El cuerpo del texto usa la fuente body (Montserrat) */
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--light-text);
    background-color: var(--dark-bg);
}

/* Aplicamos Bebas Neue específicamente a todos los títulos */
h1, h2, h3 {
    font-family: var(--font-title); 
    margin-bottom: 1rem;
    font-weight: normal; /* Bebas Neue solo tiene un peso, se recomienda usar 'normal' */
}
/* ... el resto del CSS se mantiene igual ... */

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Línea divisoria entre secciones */
hr {
    border: none;
    border-top: 1px solid var(--medium-gray);
    margin: 3rem auto; 
    width: 80%; 
    opacity: 0.3;
}

/* --- Botones Genéricos --- */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #e64a19; 
}


/* --- Header (Nav) --- */
header {
    background-color: rgba(26, 26, 26, 0.9); /* Fondo oscuro semitransparente para el nav */
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav .logo {
    display: flex;
    align-items: center;
}

nav .logo img {
    /* ⬆️ Aumentamos la altura del logo */
    height: 100px; 
    margin-right: 0.5rem; /* Aumenté ligeramente el margen para separarlo del título */
}

/* --- Modificación del H1 para Animación --- */

nav h1 {
    font-size: 2.5rem; /* Tamaño grande */
    margin: 0;
    font-weight: 800;
    
    /* Degradado de Color (Blanco -> Naranja -> Blanco) */
    background: linear-gradient(to right, 
        var(--light-text) 0%, 
        var(--light-text) 49.9%, /* Fin del blanco */
        var(--primary-color) 50%, /* Inicio del naranja */
        var(--primary-color) 100%
    );

    /* Propiedades clave para el efecto de texto degradado */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Definición del tamaño para que el degradado cubra el doble del texto */
    background-size: 200% 100%; 
    
    /* Posición inicial (solo color blanco visible) */
    background-position: 100%; 
    
    /* Animación: Llama a la animación 'color-shift' */
    animation: color-shift 4s infinite alternate; /* 4s de duración, se repite infinitamente, alterna dirección */
}

/* --- Definición de la Animación --- */

@keyframes color-shift {
    0% {
        /* Estado inicial: Muestra solo el color blanco (background-position derecha) */
        background-position: 100%; 
    }
    40% {
        /* El naranja se desliza y se detiene en la mitad del texto */
        background-position: 50%;
    }
    60% {
        /* Mantiene el color naranja a la mitad por un momento */
        background-position: 500%;
    }
    100% {
        /* Vuelve a mostrar solo el color blanco (background-position derecha) */
        background-position: 100%;
    }
}

.nav-links {
    display: flex;
    align-items: center; /* ESTO CENTRA TODO VERTICALMENTE DE FORMA AUTOMÁTICA */
}

.nav-links li {
    margin-left: 2rem;
    /* Eliminamos el 'position: relative' y 'top' que estaban desalineando todo */
}

.nav-links a {
    color: var(--light-text);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- Estilos para el Carrito de Compras (Corregidos) --- */
.cart-icon-link {
    display: flex; 
    align-items: center; 
    padding: 0;
    transition: transform 0.3s ease; /* Efecto suave al pasar el mouse */
}

.cart-icon-link:hover {
    transform: translateY(-3px); /* Pequeño salto al poner el mouse encima */
}

/* Ajustamos el tamaño a algo más equilibrado para un menú superior */
.cart-icon {
    height: 2.8rem; /* Tamaño proporcional al texto */
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); /* Sombra para que resalte */
}

/* IMPORTANTE: Asegúrate de BORRAR cualquier regla que diga .nav-links li:last-child 
   que tenías antes, ya que no la necesitamos más. */

/* --- Hero Section (ENTRENA CON PLANBRYFITT) --- */
.hero-section {
    position: relative;
    height: 80vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; 
    padding: 2rem;
}

/* 🖼️ Imagen Principal del Hero (Sustituye al ::before anterior) */
.hero-image {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra toda la sección */
    object-position: center;
    z-index: -1; /* Envía la imagen detrás del hero-content */
    filter: brightness(0.4); /* Oscurece la imagen para que el texto resalte */
}

.hero-content {
    max-width: 900px;
    position: relative; /* Es importante para que el texto esté encima de la imagen */
    z-index: 10; 
    padding: 2rem;
}

.hero-content h2 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--light-text);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-content .btn-contactar {
    background-color: var(--primary-color); 
    color: var(--light-text);
    font-size: 1.3rem;
    padding: 1rem 3rem;
    border-radius: 8px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.hero-content .btn-contactar:hover {
    background-color: #e64a19;
    transform: translateY(-3px);
}


/* --- Sección de Introducción o Propósito --- */
.intro-section {
    display: flex;
    flex-direction: row; 
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
    gap: 3rem; 
    background-color: var(--section-bg); 
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.intro-image {
    flex: 1; 
    min-width: 300px; 
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.intro-text {
    flex: 1; 
    padding-right: 2rem; 
}

.intro-text h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.intro-text p {
    font-size: 1.1rem;
    color: var(--light-text);
    line-height: 1.8;
}


/* --- Beneficios para la Salud (Grid de 3 columnas) --- */
.benefits-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
    text-align: center;
}

.benefits-section h2 {
    font-size: 3rem;
    color: var(--light-text);
    margin-bottom: 3rem;
    font-weight: 800;
    text-transform: uppercase;
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem;
}

.benefit-block {
    background-color: var(--section-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.benefit-block img {
    width: 100px; 
    height: 100px;
    margin-bottom: 1.5rem;
    border-radius: 60%;
    /* Efecto para hacer que los iconos se vean bien en el fondo oscuro y tengan un acento de color 
    filter: invert(1) brightness(0.8) sepia(1) hue-rotate(200deg) saturate(500%); */
}

.benefit-block h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.benefit-block p {
    font-size: 1rem;
    color: var(--light-text);
    line-height: 1.7;
}


/* --- Sección de Contacto (Placeholder para el formulario) --- */
.contact-form-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem;
    text-align: center;
    background-color: var(--section-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.contact-form-section h2 {
    font-size: 3rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.contact-form-section p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 2rem;
}


/* --- Footer --- */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--medium-gray);
    margin-top: 4rem;
}

.social-links {
    margin-bottom: 2rem;
}

.social-links a {
    display: inline-block;
    color: var(--light-text);
    font-size: 1.1rem;
    margin: 0 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
    font-weight: 600;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Estilos para los iconos de texto (placeholders) */
.social-links [class^="icon-"] {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.copyright p {
    font-size: 0.9rem;
    color: rgba(240, 240, 240, 0.7);
}


/* --- Media Queries para Responsividad --- */
@media (max-width: 992px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    nav h1 {
        margin-top: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li {
        margin: 0.5rem 1rem;
    }

    .hero-content h2 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .intro-section {
        flex-direction: column;
        text-align: center;
    }

    .intro-text {
        padding-right: 0;
    }

    .intro-image {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    nav .logo img {
        height: 40px;
    }

    nav h1 {
        font-size: 1.5rem;
    }

    .hero-section {
        height: 70vh;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content .btn-contactar {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }

    .benefits-container {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
    }

    .benefit-block img {
        width: 60px;
        height: 60px;
    }

    .benefit-block h3 {
        font-size: 1.5rem;
    }

    .social-links a {
        font-size: 1rem;
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    nav .logo {
        flex-direction: column;
    }

    nav h1 {
        margin-top: 0.5rem;
        font-size: 1.3rem;
    }

    .nav-links li {
        margin: 0.3rem 0.5rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .intro-text h3 {
        font-size: 2rem;
    }

    .benefits-section h2, .contact-form-section h2 {
        font-size: 2.2rem;
    }
}

/* =========================================
   ESTILOS PARA LA PÁGINA DE EQUIPO (LIMPIO Y CORREGIDO)
   ========================================= */

/* ==========================================================================
   Sección de Encabezado de Página (Hero) MEJORADA y con FONDO DE IMAGEN
   ========================================================================== */
.page-header {
    /* IMPORTANTE: position: relative para que el overlay absoluto funcione dentro */
    position: relative; 
    
    /* IMAGEN DE FONDO: Cambia 'img/GimnasioInicio.jpg' por tu imagen preferida para esta sección */
    background-image: url('img/fondoEquipo.webp'); /* O usa 'img/FondoEquipo.jpg' si creas una específica */
    background-size: cover;
    background-position: center;
    
    /* EFECTO PARALLAX: Mantiene la imagen fija al hacer scroll, igual que en Inicio */
    background-attachment: fixed; 
    
    padding: 10rem 2rem 7rem; /* Un poco más de espacio superior e inferior */
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 5rem;
    overflow: hidden; /* Asegura que el overlay no se escape */
}

/* --- Capa Oscura Traslúcida (Overlay) --- */
.overlay-equipo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* FONDO TRASLÚCIDO: Oscurece la imagen para que el texto sea legible. 
       Ajusta el 0.75 (75%) si quieres más o menos oscuridad. */
    background-color: rgba(0, 0, 0, 0.75); 
    
    /* z-index: 1 para que esté por debajo del contenido (texto) */
    z-index: 1; 
}

/* --- Contenido encima del Overlay --- */
.header-content {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /* IMPORTANTE: position y z-index alto para flotar SOBRE el overlay */
    position: relative;
    z-index: 10; 
}

/* --- Badge, Título, Texto y Botón (Estilos anteriores mantenidos) --- */
.badge {
    background-color: rgba(255, 87, 34, 0.15);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 87, 34, 0.3);
    /* Ya no necesita z-index explícito aquí, lo hereda de .header-content */
}

.motivation-title {
    font-size: 5rem; 
    color: var(--light-text);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-wrap: balance;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8); /* Sombra más fuerte para contraste */
}

.motivation-title .highlight {
    color: var(--primary-color);
}

.motivation-text {
    font-size: 1.25rem;
    color: #e0e0e0; /* Un gris más claro para mejor lectura sobre fondo */
    margin-bottom: 3rem;
    line-height: 1.8;
    text-wrap: balance;
}

.btn-large {
    font-size: 1.2rem;
    padding: 1.2rem 3.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.glow-effect:hover {
    box-shadow: 0 0 25px rgba(255, 87, 34, 0.6);
    transform: translateY(-3px);
}

/* --- Sección de Tarjetas de los Entrenadores --- */
.equipo-trainers {
    max-width: 1400px; 
    margin: 0 auto 6rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr; 
    gap: 5rem; 
}

.trainer-card {
    background: linear-gradient(145deg, var(--section-bg), #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: grid;
    grid-template-columns: 450px 1fr; /* 450px para la foto izquierda, 1fr para el texto derecho */
    gap: 0;
}

.trainer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 87, 34, 0.2); 
}

/* --- Lado Izquierdo: Perfil (Imagen Completa y Nombre Superpuesto) --- */
.trainer-profile {
    padding: 0; /* Sin espacios, la foto toca los bordes */
    display: flex;
    flex-direction: column;
    position: relative; /* Necesario para que el texto se superponga */
    border-right: 3px solid var(--primary-color);
    background-color: var(--dark-bg);
    overflow: hidden;
}

.trainer-img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: top center;
    border-radius: 0; /* Eliminamos el círculo */
    border: none;
    margin-bottom: 0;
    box-shadow: none; 
}

.trainer-name {
    position: absolute; 
    bottom: 0; 
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.85); /* Fondo oscuro transparente */
    padding: 1.5rem 1rem;
    margin: 0;
    font-size: 2.8rem;
    color: var(--light-text);
    text-transform: uppercase;
    text-align: center;
    border-top: 3px solid var(--primary-color); 
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
}

/* --- Lado Derecho: Detalles (Currículum y Reflexión) --- */
.trainer-details {
    padding: 3rem 3.5rem; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.academic-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Lista Académica */
ul.trainer-academic {
    list-style: none;
    padding: 1.5rem 2rem;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2.5rem;
}

ul.trainer-academic li {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

ul.trainer-academic li:last-child {
    margin-bottom: 0;
}

ul.trainer-academic li::before {
    content: '▹'; 
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.4;
}

.trainer-reflection {
    font-style: italic;
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    color: #cccccc;
    line-height: 1.7;
    margin-top: auto; 
    background-color: rgba(255, 87, 34, 0.05); 
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

/* --- Media Queries Responsivas --- */
@media (max-width: 1200px) {
    .trainer-card {
        grid-template-columns: 350px 1fr; /* Reduce el ancho de la foto en pantallas medianas */
    }
}

@media (max-width: 992px) {
    .trainer-card {
        grid-template-columns: 1fr; /* Pasa a 1 sola columna vertical en tablets */
    }
    .trainer-profile {
        border-right: none;
        border-bottom: 3px solid var(--primary-color);
        height: 450px; /* Alto fijo para la foto cuando está arriba */
    }
    .trainer-details {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .motivation-title {
        font-size: 2.8rem;
    }
    .trainer-profile {
        height: 350px; /* Foto un poco más pequeña en celulares */
    }
    .trainer-name {
        font-size: 2.2rem;
        padding: 1rem;
    }
    .academic-title {
        font-size: 1.8rem;
    }
    .trainer-details {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   ESTILOS PARA LA PÁGINA DE CONTACTO (HERO + FORMULARIO)
   ========================================================================== */

/* --- 1. Encabezado (Hero) y Máscara Oscura --- */
.page-header.hero-contacto {
    position: relative; 
    padding: 10rem 2rem 7rem; 
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
    overflow: hidden; 
    background-image: url('img/fondoInicio.webp'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
}

.overlay-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); 
    z-index: 1; 
}

.hero-contacto .header-content {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10; 
}

/* --- 2. Sección del Formulario --- */
.contact-section {
    max-width: 900px;
    margin: -1rem auto 6rem auto; /* Sube un poco para montarse sobre el header */
    padding: 0 2rem;
    position: relative;
    z-index: 20;
}

.contact-container {
    background: linear-gradient(145deg, #222222, #151515);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 4rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    color: var(--light-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.2);
}

/* --- Botones de Radio (Preferencia de Contacto) --- */
.radio-group-container {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #333;
    margin-top: 1rem;
}

.radio-title {
    color: #e0e0e0 !important; 
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
    display: block;
}

.radio-options {
    display: flex;
    gap: 2rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--light-text);
    font-size: 1rem;
    position: relative;
    padding-left: 30px;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 2px solid #666;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.radio-label:hover input ~ .radio-custom {
    border-color: var(--primary-color);
}

.radio-label input:checked ~ .radio-custom {
    background-color: transparent;
    border-color: var(--primary-color);
}

.radio-custom:after {
    content: "";
    position: absolute;
    display: none;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}

.radio-label input:checked ~ .radio-custom:after {
    display: block;
}

.btn-submit {
    margin-top: 2rem;
    width: 100%;
    font-size: 1.3rem;
}

/* --- Tarjeta de Éxito (Verde) --- */
.success-card {
    display: none; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1e4620, #28a745);
    border: 1px solid #34ce57;
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.success-icon {
    background-color: white;
    color: #28a745;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.success-card h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-title);
}

.success-card p {
    color: #e8f5e9;
    font-size: 1.2rem;
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    .contact-container {
        padding: 2rem;
    }
    .form-row {
        grid-template-columns: 1fr; 
        gap: 1.5rem;
    }
    .radio-options {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ==========================================================================
   ESTILOS PARA LA PÁGINA DE SERVICIOS
   ========================================================================== */

/* --- 0. Contador del Carrito en el Nav --- */
.cart-icon-link {
    position: relative; /* Para poder colocar la burbuja encima */
}

.cart-counter {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #e53935; /* Rojo llamativo */
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--dark-bg); /* Borde oscuro para separarlo del fondo */
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 5;
}

/* --- 1. Encabezado (Hero) Servicios --- */
.page-header.hero-servicios {
    position: relative; 
    padding: 10rem 2rem 7rem; 
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    overflow: hidden; 
    background-image: url('img/FittWoman.webp'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
}

/* --- 2. Filtros de Ubicación --- */
.filters-section {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
}

.filters-container {
    background-color: var(--section-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap; /* Para que se adapte en celulares */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 250px;
    flex: 1;
}

.filter-group label {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-group select {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--light-text);
    border: 1px solid #444;
    padding: 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* --- 3. Grilla de Tarjetas de Servicios --- */
.services-grid {
    max-width: 1200px;
    margin: 0 auto 6rem auto;
    padding: 0 2rem;
    display: grid;
    /* AJUSTADO: a 450px para que entren 2 tarjetas a lo ancho en PC */
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); 
    gap: 3rem;
}

/* Utilitario para el Plan Online en naranjo */
.highlight-online {
    color: var(--primary-color);
    font-weight: bold;
}

/* Ajuste para imágenes de logo en tarjeta (Planificación) */
.logo-card-img {
    object-fit: contain !important;
    padding: 2rem;
    background-color: #1a1a1a;
}

.service-card {
    background: linear-gradient(145deg, #222222, #151515);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 87, 34, 0.2);
}

.service-img-container {
    height: 250px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Empuja el botón al fondo si la tarjeta es alta */
}

.service-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-desc {
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.btn-ver-mas {
    margin-top: auto; /* Empuja al fondo */
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
}

/* --- 4. Ventana Modal (Popup de Detalles) --- */
.modal-overlay {
    display: none; /* Oculto por defecto mediante JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fondo muy oscuro */
    z-index: 2000; /* Por encima de todo, incluso el Nav */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); /* Desenfoque bonito al fondo */
}

.modal-content {
    background-color: var(--section-bg);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 15px;
    padding: 3rem;
    position: relative;
    overflow-y: auto; /* Scroll interno si es muy alto */
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-header-info {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: center;
}

.modal-img {
    width: 350px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border: 3px solid var(--medium-gray);
}

.modal-text-content h2 {
    font-size: 3.5rem;
    color: var(--light-text);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.modal-text-content p {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- 5. Grilla de Precios y Sesiones --- */
.pricing-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* NUEVA CLASE: Centra el bloque de precio cuando es único (Plan Guiado / Profesional) */
.single-price-grid {
    display: flex !important;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.pricing-block {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.pricing-block:hover {
    transform: translateY(-5px);
    border-color: #666;
    background-color: rgba(0, 0, 0, 0.5);
}

.pricing-block h4 {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    font-family: var(--font-body); /* Para que sea más legible */
}

.price {
    font-size: 3rem;
    font-family: var(--font-title);
    color: var(--light-text);
    margin-bottom: 1rem;
}

.price-desc {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1; /* Empuja el botón abajo */
}

/* Botón especial del carrito dentro de las tarjetas de precio */
.btn-add-cart {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-add-cart:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- DESTACADO: Plan 12 Sesiones --- */
.pricing-block.best-seller {
    border: 2px solid var(--primary-color);
    background: linear-gradient(to bottom, rgba(255, 87, 34, 0.1), rgba(0,0,0,0.4));
    transform: scale(1.05); /* Lo hace un poco más grande */
    box-shadow: 0 10px 25px rgba(255, 87, 34, 0.2);
}

.pricing-block.best-seller:hover {
    transform: scale(1.08); /* Crece aún más al hover */
}

.best-seller-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* --- Media Queries --- */
@media (max-width: 992px) {
    .modal-header-info {
        flex-direction: column;
        text-align: center;
    }
    .modal-img {
        width: 100%;
        max-width: 500px;
        height: auto;
    }
    .pricing-block.best-seller {
        transform: scale(1); /* En tablets/móviles quitamos la escala extra para que no rompa el diseño */
    }
    .pricing-block.best-seller:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    /* AJUSTE: Tarjetas de 1 en 1 en celulares */
    .services-grid {
        grid-template-columns: 1fr;
    }
    .filter-group {
        min-width: 100%; /* Filtros ocupan todo el ancho en móviles */
    }
    .modal-content {
        padding: 2rem;
        width: 95%;
    }
}

/* ==========================================================================
   ESTILOS PARA LA PÁGINA DEL CARRITO
   ========================================================================== */
.cart-main-container {
    max-width: 1200px;
    margin: 0 auto 6rem auto;
    padding: 0 2rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.cart-items-section h2, .cart-summary-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
}

/* --- Alerta de Pago Único --- */
.alert-message {
    background-color: rgba(255, 87, 34, 0.1); 
    border: 1px solid var(--primary-color);
    color: #e0e0e0;
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.1);
}

/* --- Estilos base del ítem --- */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--section-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease; /* Transición suave al cambiar de selección */
}

/* --- Selector de Radio (Botón circular) --- */
.item-selector {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
    cursor: pointer;
    position: relative;
    padding-left: 25px; 
}

.item-selector input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom-cart {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 22px;
    width: 22px;
    background-color: transparent;
    border: 2px solid #666;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.item-selector input:checked ~ .radio-custom-cart {
    border-color: var(--primary-color);
}

.radio-custom-cart:after {
    content: "";
    position: absolute;
    display: none;
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}

.item-selector input:checked ~ .radio-custom-cart:after {
    display: block;
}

/* --- Efecto de elemento BLOQUEADO --- */
.cart-item.item-blocked {
    opacity: 0.4; /* Lo hace semitransparente */
    filter: grayscale(80%); /* Le quita color */
    border-left: 4px solid #444; /* Borde gris en lugar de naranja */
    background-color: #1a1a1a;
}

/* --- Detalles y Precio --- */
.item-details {
    flex-grow: 1; /* Para que el texto tome el espacio disponible */
}

.item-details h4 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 0.3rem;
}

.item-price {
    color: #aaa;
    font-size: 1.1rem;
    font-weight: bold;
}

.remove-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
    margin-left: 1rem;
}

.remove-btn:hover {
    transform: scale(1.2);
}

/* --- Resumen y Checkout --- */
.cart-summary-section {
    background: linear-gradient(145deg, #222, #151515);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    height: fit-content;
}

.cart-totals {
    margin-bottom: 2rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: bold;
}

.checkout-form h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.btn-pay {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.2rem;
    background-color: #28a745; /* Verde para pago */
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    border: none;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-pay:hover {
    background-color: #218838;
}

/* Estilo para cuando el botón está deshabilitado */
.btn-pay:disabled {
    background-color: #555;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}


/**BORRAR SI NO QIEDA BIEN EL TEXTO SERVICIOS VER MAS /

/* --- Contenedor Principal --- */
.modal-text-content {
    color: #ffffff;
    font-family: 'Arial', sans-serif; /* Puedes cambiarla por tu fuente de texto base */
    line-height: 1.6;
}

/* --- Títulos --- */
.modal-text-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #ffffff;
}

.modal-text-content h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-top: 30px;
    margin-bottom: 20px;
    text-transform: uppercase;
    display: inline-block;
    border-bottom: 2px solid #ff7f50; /* Subrayado naranja */
    padding-bottom: 5px;
}

/* --- Texto Descriptivo --- */
.modal-text-content .description {
    color: #cccccc; /* Gris claro para diferenciar del blanco de los títulos */
    margin-bottom: 25px;
    font-size: 1.05rem;
}

/* --- Lista de Detalles --- */
.plan-details {
    list-style-type: none;
    padding: 0;
    margin-bottom: 35px;
}

.plan-details li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #cccccc; /* Texto secundario en gris */
}

.plan-details li strong {
    color: #ffffff; /* Destaca la parte principal del ítem en blanco */
    font-weight: normal; 
}

/* Números en Naranja */
.number-highlight {
    color: #ff7f50;
    font-weight: bold;
    margin-right: 5px;
}

/* --- Caja de Nota Importante --- */
.important-note {
    background-color: rgba(255, 255, 255, 0.05); /* Fondo oscuro muy sutil */
    border-left: 4px solid #ff7f50; /* Borde grueso naranja a la izquierda */
    border-radius: 4px;
    color: #d1d1d1;
    padding: 15px 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Palabra IMPORTANTE en Naranja */
.important-text {
    color: #ff7f50;
    font-weight: bold;
    margin-right: 5px;
}