/* 
    ========================================
    HOJA DE ESTILOS PRINCIPAL - BELLE STETIC
    ========================================
    
    Este archivo contiene todos los estilos visuales del sitio web.
    
    ÍNDICE:
    1. Variables CSS (Colores y configuración global)
    2. Estilos base y reset
    3. Header y navegación
    4. Hero section
    5. Carrusel de testimonios
    6. Carrusel de galería de clínica
    7. Sección antes/después
    8. Experiencia premium (Bento Grid)
    9. Footer
    10. Responsive design
    
    Para más información, consulta DOCUMENTACION.md
*/

/* ========================================
   1. VARIABLES CSS - PALETA DE COLORES COMPLETA
   ========================================
   
   Estas variables definen la paleta de colores del sitio.
   Cambia estos valores para modificar los colores en todo el sitio.
   
   PALETA COMPLETA: Rosa suave, beige, marrón y verde sage
   - Transmite elegancia, naturalidad, calidez y profesionalismo
   - Ideal para un centro de estética médica
   - Colores extraídos de la imagen "Paleta de colores.jpg"
*/

:root {
    /* ===== COLORES PRINCIPALES - ROSA ===== */

    /* COLOR PRINCIPAL - Rosa suave elegante */
    --primary-color: #D4A5A5;
    /* Se usa en: botones principales, títulos importantes, acentos destacados */

    /* COLOR PRINCIPAL OSCURO - Rosa oscuro */
    --primary-dark: #B88B8B;
    /* Se usa en: hover de botones, gradientes, estados activos */

    /* ===== COLORES SECUNDARIOS - BEIGE/CREMA ===== */

    /* COLOR SECUNDARIO - Beige claro */
    --secondary-color: #F8F2E8;
    /* Se usa en: fondos suaves, captions, áreas destacadas */

    /* COLOR SECUNDARIO OSCURO - Beige con profundidad */
    --secondary-dark: #E8D5C4;
    /* Se usa en: bordes, detalles sutiles, separadores */

    /* ===== COLORES DE ACENTO - VERDE SAGE ===== */

    /* COLOR ACENTO - Verde sage suave */
    --accent-color: #A8B5A0;
    /* Se usa en: elementos de naturaleza, wellness, iconos especiales */

    /* COLOR ACENTO CLARO - Verde sage muy claro */
    --accent-light: #C9D4C3;
    /* Se usa en: fondos alternativos, hover states suaves */

    /* COLOR ACENTO OSCURO - Verde sage oscuro */
    --accent-dark: #8A9682;
    /* Se usa en: texto sobre fondos claros, bordes de acento */

    /* ===== COLORES DE TEXTO ===== */

    /* COLOR DE TEXTO PRINCIPAL - Marrón oscuro */
    --text-color: #4A3428;
    /* Se usa en: todo el texto principal del sitio */

    /* COLOR DE TEXTO SECUNDARIO - Marrón claro */
    --light-text: #8B7355;
    /* Se usa en: descripciones, texto menos importante, subtítulos */

    /* ===== COLORES DE FONDO ===== */

    /* COLOR DE FONDO CLARO - Crema muy claro */
    --bg-light: #FFF9F0;
    /* Se usa en: fondos de secciones alternas */

    /* COLOR DE FONDO VERDE - Verde sage muy suave */
    --bg-green: #F0F3EE;
    /* Se usa en: secciones de bienestar, naturaleza, spa */

    /* BLANCO PURO */
    --white: #FFFFFF;
    /* Se usa en: fondos principales, texto sobre fondos oscuros */

    /* NEGRO/MARRÓN MUY OSCURO */
    --black: #2D1F1A;
    /* Se usa en: fondos oscuros, texto en contraste alto */

    /* ===== UTILIDADES ===== */

    /* SOMBRA CON TONO CÁLIDO (Marrón suave) */
    --shadow: 0 10px 40px rgba(74, 52, 40, 0.15);
    /* Se usa en: tarjetas, carruseles, elementos elevados */

    /* SOMBRA VERDE SUAVE */
    --shadow-green: 0 10px 40px rgba(168, 181, 160, 0.15);
    /* Se usa en: elementos con acento verde (Wellness) */

    /* TRANSICIÓN ESTÁNDAR - Suaviza todos los movimientos y cambios de color */
    --transition: all 0.4s ease;
    /* Se usa en: todos los efectos hover y animaciones */
}

/* 
   ========================================
   2. ESTILOS BASE Y RESET
   ========================================
   Configuración global para que todo se vea igual en todos los navegadores.
*/


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

section {
    padding-top: 80px;
    padding-bottom: 80px;
    margin-bottom: 60px;
}

.section-bg-light {
    background-color: var(--bg-light);
}

.section-bg-green {
    background-color: var(--bg-green);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* CONTENEDOR PRINCIPAL - Centra el contenido y añade márgenes laterales */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 
   ========================================
   3. BOTONES Y ACCIONES
   ========================================
   Estilos para los diferentes tipos de botones del sitio.
*/
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(212, 165, 165, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.4);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

/* CLASES DE UTILIDAD */
.text-center {
    text-align: center;
}

.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 
   ========================================
   4. ANIMACIONES Y EFECTOS
   ========================================
   Definición de movimientos y apariciones visuales.
*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* REVEAL ON SCROLL - Esta clase hace que los elementos aparezcan al bajar la página */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 
   ========================================
   5. HERO SECTION (Cabecera de página)
   ========================================
*/
.hero {
    height: auto;
    padding: 100px 20px 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fffcf9, #f5efe6);
}

/* Elementos decorativos flotantes de fondo */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 165, 165, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s infinite alternate ease-in-out;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 181, 160, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite alternate-reverse ease-in-out;
    z-index: 0;
}

.hero-image-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-image-container:hover {
    transform: translateY(-15px) scale(1.01);
    box-shadow: 0 45px 80px rgba(0, 0, 0, 0.15);
}

.hero-image-container img {
    width: 100%;
    display: block;
    transition: transform 0.8s ease;
    filter: saturate(150%) contrast(120%) sepia(30%);
}


.hero-image-container:hover img {
    transform: scale(1.05);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
    z-index: 2;
    pointer-events: none;
    transition: all 0.5s ease;
}

/* Efecto Brillo Metálico (Shine) */
.hero-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: skewX(-25deg);
    transition: 0.7s;
    z-index: 3;
}

.hero-image-container:hover::after {
    left: 150%;
    transition: 0.7s;
}

.hero-text-content {
    text-align: center;
    padding: 20px 20px 80px;
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.hero-text-content h1 {
    font-size: 4.8rem;
    margin-bottom: 25px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), #8B5E5E);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 15px rgba(212, 165, 165, 0.25);
    line-height: 1.05;
    letter-spacing: -1.5px;
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.hero-text-content p {
    font-size: 1.6rem;
    margin-bottom: 45px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    color: #555;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* ANIMACIONES PARA EL HERO */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 165, 165, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(212, 165, 165, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 165, 165, 0);
    }
}

/* EFECTOS DE HOVER PARA BOTONES EN HERO */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.btn-primary:hover::before {
    left: 100%;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 15px 30px;
    }

    .hero-text-content h1 {
        font-size: 2.8rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-image-container {
        margin-bottom: 40px;
        border-radius: 15px;
    }
}

/* 
   ========================================
   6. HERO TURISMO (Diseño Inmersivo)
   ========================================
   Estilos específicos para la página de Turismo Estético.
*/
.hero-turismo {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)), url('../img/Medellin Hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Mantiene la imagen fija al hacer scroll (Efecto Parallax) */
    margin-bottom: 0;
    padding: 0 20px;
    text-align: center;
}

.hero-turismo-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 60px 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 900px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease;
}

.hero-turismo h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-turismo p {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 40px;
    font-weight: 400;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-turismo .btn {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-turismo .badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(168, 181, 160, 0.4);
}

@media (max-width: 768px) {
    .hero-turismo h1 {
        font-size: 3rem;
    }

    .hero-turismo-content {
        padding: 40px 20px;
    }
}

/* 
   ========================================
   7. HEADER Y NAVEGACIÓN
   ========================================
   Controla el logo y el menú principal que aparece en todas las páginas.
*/
.header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 242, 232, 0.95));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    /* Efecto vidrio esmerilado */
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(212, 165, 165, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo {
    display: flex;
    align-items: center;
    height: 85px;
    flex-shrink: 0;
}

.logo img {
    height: 100%;
    width: auto;
    max-width: 250px;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
    border-radius: 50%;
}

.logo img:hover {
    transform: scale(1.03) rotate(1deg);
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.2));
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 5px 0;
}

/* ESTILO DE LOS ENLACES DEL MENÚ */
.nav-list a {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.05rem;
    position: relative;
    padding: 10px 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-list a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateZ(0);
}



.nav-list a:hover::before {
    width: 100%;
}



.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-list a.active {
    position: relative;
}

.nav-list a.active::before {
    width: 100%;
    height: 3px;
}





/* EFECTO DE FONDO AL PASAR EL MOUSE */


/* 
   ========================================
   8. MENÚ MÓVIL (Hamburguesa)
   ========================================
   Estilos que se activan solo en dispositivos móviles.
*/
.mobile-menu-btn {
    display: none;
    /* Se oculta por defecto en desktop */
    font-size: 28px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    align-self: center;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* EFECTO DE DESPLAZAMIENTO DEL HEADER */
.header.scrolled {
    padding: 10px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 242, 232, 0.98));
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.header.scrolled .logo img {
    height: 60px;
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .logo {
        height: 60px;
    }

    .logo img {
        height: 100%;
        max-width: 180px;
    }

    .nav {
        flex: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 242, 232, 0.98));
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 0;
    }

    .nav-list a {
        padding: 15px 20px;
        display: block;
        border-bottom: 1px solid rgba(212, 165, 165, 0.1);
    }

    .nav-list a::before,
    .nav-list a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
}

/* HERO SECTION */
.hero {
    height: auto;
    padding: 60px 20px;
}

.hero-image-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-image-container img {
    width: 100%;
    display: block;
}


.hero-text-content {
    text-align: center;
    padding: 60px 20px;
}

.hero-text-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}



.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 
   ========================================
   9. CABECERAS DE PÁGINA (Interiores)
   ========================================
   Estilo para el título superior en las páginas de Nosotros y Servicios.
*/
.page-header {
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    color: var(--white);
    text-align: center;
    position: relative;
}

.page-header-nosotros {
    background-image: url("../img/clinic_reception2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 150px 0;
}

.page-header-servicios {
    background-image: url("../img/salon_tratamiento.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 150px 0;
}

/* Fix para centrado y zoom en móviles (donde background-attachment: fixed falla) */
@media (max-width: 768px) {

    .page-header-nosotros,
    .page-header-servicios {
        background-attachment: scroll;
        background-position: center center;
    }
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.75));
    z-index: 1;
}

.page-header>div {
    position: relative;
    z-index: 2;
}

.page-header-nosotros::before {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3));
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    padding: 20px;
}

/* 
   ========================================
   10. TARJETAS DE SERVICIOS
   ========================================
   Estilo de los cuadros que muestran cada tratamiento.
*/
.service-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-15px);
    border-bottom: 4px solid var(--primary-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.service-card .icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--black);
    font-size: 1.7rem;
    font-weight: 600;
}

.service-card p {
    color: var(--light-text);
    margin-bottom: 25px;
}

.link-arrow {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.link-arrow:hover {
    gap: 15px;
}

/* PÁGINA NOSOTROS */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-content p {
    margin-bottom: 25px;
    color: var(--light-text);
}

.about-values-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.about-values-list i {
    color: var(--primary-color);
}

.about-image img {
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
}

/* 
   ========================================
   11. SECCIÓN DE EQUIPO (Nosotros)
   ========================================
*/
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.team-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.team-card img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 25px;
    border: 4px solid var(--secondary-color);
}

.team-card h3 {
    color: var(--black);
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 600;
}

.team-card p {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* 
   ========================================
   12. PÁGINA DE CONTACTO Y FORMULARIOS
   ========================================
*/
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
}

.contact-info h2,
.contact-form-container h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
}

.info-item {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
}

.info-item .icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    flex-shrink: 0;
}

.info-item h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.info-item p {
    color: var(--light-text);
}

.map-container {
    height: 350px;
    background-color: #eee;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-form-container {
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    border: 2px solid var(--secondary-dark);
    border-radius: 8px;
    font-family: inherit;
    background-color: var(--bg-light);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* PAQUETES TURÍSTICOS */
.package-card {
    text-align: left;
    padding-bottom: 40px;
    border-radius: 15px;
    background: var(--white);
    padding: 40px 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.package-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.package-card h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.package-list {
    margin-bottom: 30px;
    padding-left: 20px;
}

.package-list li {
    list-style: disc;
    margin-bottom: 10px;
    color: var(--light-text);
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 10%, transparent 10%);
    background-size: 20px 20px;
    opacity: 0.3;
    animation: fadeIn 2s infinite alternate;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 700;
}

.cta p {
    margin-bottom: 40px;
    font-size: 1.2rem;
    opacity: 0.95;
}

/* 
   ========================================
   13. FOOTER (Pie de Página)
   ========================================
*/
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 80px 0 30px;
    border-top: 10px solid var(--accent-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-col h3 span {
    color: var(--primary-color);
}

.footer-col h4 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--secondary-dark);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-col p {
    color: var(--secondary-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--white);
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    color: var(--accent-light);
    font-size: 14px;
}

/* WHATSAPP FLOTANTE */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

/* INSTAGRAM FLOTANTE */
.instagram-float {
    position: fixed;
    bottom: 30px;
    right: 110px;
    /* Colocar a la izquierda del botón de WhatsApp en desktop */
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 6px 20px rgba(193, 53, 132, 0.5);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse-instagram 2s infinite;
}

.instagram-float i {
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.instagram-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(193, 53, 132, 0.7);
}

.instagram-float:hover i {
    -webkit-text-fill-color: white;
    text-shadow: none;
}

/* RESPONSIVE PARA BOTONES FLOTANTES */
@media (min-width: 769px) {
    .whatsapp-float {
        bottom: 30px;
        right: 30px;
        display: flex;
    }

    .instagram-float {
        bottom: 30px;
        right: 110px;
        /* Colocar a la izquierda del botón de WhatsApp */
        width: 65px;
        height: 65px;
        font-size: 35px;
        display: flex;
        /* Mostrar en desktop */
    }

    .instagram-float i {
        -webkit-text-fill-color: transparent;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    }

    .instagram-float:hover i {
        -webkit-text-fill-color: white;
        text-shadow: none;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

    .instagram-float {
        bottom: 90px;
        /* Colocado arriba del botón de WhatsApp */
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}

@keyframes pulse-instagram {
    0% {
        box-shadow: 0 0 0 0 rgba(193, 53, 132, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(193, 53, 132, 0.3);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(193, 53, 132, 0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 30px;
        box-shadow: var(--shadow);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 1000;
    }

    .nav.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .header {
        padding: 5px 0;
    }

    .logo {
        height: 60px;
        margin: 0;
        flex-shrink: 0;
    }

    .logo img {
        height: 60px;
    }
}

/* --- NUEVOS ESTILOS PARA DISEÑO DE IMPACTO --- */

/* CARRUSEL DE TESTIMONIOS */
.testimonials {
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    min-width: 100%;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
    display: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
    display: block;
    animation: fadeInScale 0.5s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.quote-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.3;
}

.testimonial-card p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--text-color);
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.client-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--black);
}

.client-info span {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-controls button {
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-controls button:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* EXPERIENCIA PREMIUM (BENTO GRID) */
.premium-experience {
    background-color: var(--black);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.premium-experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(201, 162, 39, 0.1), transparent 70%);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
}

.section-header p {
    color: var(--light-text);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Estilos específicos para testimonios y otras secciones que puedan tener estilos previos */
.testimonials-section .section-header h2,
.clinic-gallery-section .section-header h2 {
    text-align: center !important;
}

.testimonials-section .section-header p,
.clinic-gallery-section .section-header p {
    text-align: center !important;
}

.premium-experience .section-header {
    text-align: center;
}

.premium-experience .section-header h2 {
    color: #FFD700;
}

.premium-experience .section-header p {
    color: #ddd;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.grid-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #BF953F;
    /* Gold color */
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.2);
}

.grid-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.grid-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--white);
}

.grid-item p {
    color: #ccc;
    font-size: 1rem;
}

/* Layout específico del grid */
.item-1 {
    grid-column: 1 / 3;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.item-2 {
    grid-column: 3 / 5;
}

.item-3 {
    grid-column: 1 / 2;
}

.item-4 {
    grid-column: 2 / 5;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1), rgba(0, 0, 0, 0));
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .item-1,
    .item-2,
    .item-3,
    .item-4 {
        grid-column: span 2;
        min-height: 200px;
    }

    .item-3 {
        grid-column: span 1;
    }

    .item-4 {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
    }

    .item-1,
    .item-2,
    .item-3,
    .item-4 {
        width: 100%;
        min-height: 0;
        padding: 40px 20px;
    }
}

/*
 * ANTES Y DESPUÉS SLIDER - ESTILOS CSS EXPLICATIVOS
 *
 * ESTA SECCIÓN CREA EL CONTROL DESLIZANTE QUE PERMITE COMPARAR
 * IMÁGENES DE "ANTES" Y "DESPUÉS" DE TRATAMIENTOS ESTÉTICOS
 */

/* Contenedor principal de la sección */
.before-after-section {
    background-color: var(--bg-light);
    /* Fondo claro para resaltar la sección */
}

/* Grid para organizar múltiples controles deslizantes */
.before-after-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Columnas responsivas */
    gap: 40px;
    /* Espacio entre elementos */
    margin-top: 40px;
    /* Espacio superior */
}

/* Elemento individual de cada control deslizante */
.before-after-item {
    display: flex;
    flex-direction: column;
    /* Apilado vertical */
    align-items: center;
    /* Centrado horizontal */
    text-align: center;
    /* Texto centrado */
}

/*
 * CONTENEDOR PRINCIPAL DEL CONTROL DESLIZANTE
 * ESTE ES EL ELEMENTO QUE VISIBLEMENTE CONTIENE EL CONTROL
 */
.before-after-container {
    position: relative;
    /* Posicionamiento relativo para contener elementos absolutos */
    width: 100%;
    max-width: 400px;
    /* Ancho máximo */
    height: 300px;
    /* Altura fija */
    margin: 0 auto 20px;
    /* Centrado horizontal y margen inferior */
    overflow: hidden;
    /* Oculta cualquier contenido que sobresalga */
    border-radius: 20px;
    /* Bordes redondeados */
    box-shadow: var(--shadow);
    /* Sombra del contenedor */
    cursor: ew-resize;
    /* Cursor de desplazamiento horizontal */
    z-index: 1;
    /* Nivel de apilamiento */
    -ms-user-select: none;
    /* Evita que se seleccionen elementos al arrastrar */
    -webkit-user-select: none;
    /* Para navegadores WebKit */
    -moz-user-select: none;
    /* Para navegadores Firefox */
    user-select: none;
    /* Para navegadores IE/Edge */
}

/*
 * ESTILOS PARA LAS DOS CAPAS DE IMÁGENES:
 * - img-background: Imagen de "antes" (fondo)
 * - img-foreground: Imagen de "después" (superpuesta, parcialmente visible)
 */
.img-background,
.img-foreground {
    position: absolute;
    /* Posición absoluta dentro del contenedor */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Recorta la imagen al tamaño del contenedor */
}

.img-background {
    z-index: 1;
}

.img-foreground {
    z-index: 2;
    width: 50%;
    border-right: 3px solid var(--white);
}

.img-background img,
.img-foreground img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: #000;
}

/* Etiquetas de texto */
.label {
    position: absolute;
    top: 20px;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 10;
    /* Siempre sobre las imágenes */
    transition: opacity 0.3s ease;
}

.label-before {
    left: 20px;
}

.label-after {
    right: 20px;
}

/*
 * MANIPULADOR DEL CONTROL DESLIZANTE
 * Este es el elemento que el usuario arrastra para revelar la imagen
 */
.slider-handle {
    position: absolute;
    /* Posición absoluta en el contenedor */
    top: 0;
    /* Alineado arriba */
    left: 50%;
    /* Inicialmente centrado (50%) */
    height: 100%;
    /* Altura completa del contenedor */
    width: 40px;
    /* Ancho del área de interacción */
    transform: translateX(-50%);
    /* Centrado horizontal preciso */
    z-index: 10;
    /* Nivel superior para interacción */
    display: flex;
    /* Layout flexible */
    flex-direction: column;
    /* Apilado vertical */
    justify-content: center;
    /* Centrado vertical */
    align-items: center;
    /* Centrado horizontal */
    cursor: grab;
    /* Cursor de agarre */
}

/* Línea vertical del slider */
.handle-line {
    width: 2px;
    /* Ancho delgada línea */
    height: 100%;
    /* Altura completa */
    background-color: var(--white);
    /* Color blanco */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    /* Sombra sutil */
}

/* Círculo central del control deslizante */
.handle-circle {
    position: absolute;
    /* Posición absoluta */
    width: 40px;
    /* Ancho */
    height: 40px;
    /* Altura */
    background-color: var(--primary-color);
    /* Color primario de la marca */
    border: 3px solid var(--white);
    /* Borde blanco */
    border-radius: 50%;
    /* Forma circular */
    display: flex;
    /* Layout flexible */
    align-items: center;
    /* Centrado vertical */
    justify-content: center;
    /* Centrado horizontal */
    color: var(--white);
    /* Color del icono */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /* Sombra */
    transition: cursor 0.2s ease;
    /* Transición al cambiar cursor */
}

/* Cambio de cursor cuando se está arrastrando */
.slider-handle:active,
.handle-circle:active {
    cursor: grabbing;
    /* Cursor de arrastre activo */
}

/* Sección de descripción debajo del control deslizante */
.result-description {
    text-align: center;
    /* Texto centrado */
    margin-top: 15px;
    /* Margen superior */
}

.result-description h4 {
    margin-bottom: 8px;
    /* Margen inferior */
    color: var(--primary-color);
    /* Color primario */
    font-size: 1.2rem;
    /* Tamaño de fuente */
    font-weight: 600;
    /* Peso de fuente */
}

.result-description p {
    color: var(--light-text);
    /* Color de texto secundario */
    font-size: 0.9rem;
    /* Tamaño de fuente */
    margin: 0;
    /* Sin márgenes */
}

/* ESTILOS RESPONSIVES PARA DISPOSITIVOS MÓVILES */
@media (max-width: 768px) {

    /* Altura reducida para pantallas pequeñas */
    .before-after-container {
        height: 250px;
    }

    /* Diseño de una sola columna */
    .before-after-grid {
        grid-template-columns: 1fr;
        /* Una sola columna */
        gap: 30px;
        /* Espacio reducido entre elementos */
    }
}

/* ANIMACIONES ADICIONALES PARA CONTENIDO */
.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Delays para efectos escalonados */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}



/* ESTILOS PARA IMÁGENES EN SERVICE CARDS */
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

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

/* CARRUSEL DE GALERÍA DE CLÍNICA */
.clinic-gallery-section {
    background-color: var(--bg-light);
}

.clinic-carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.clinic-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.clinic-slide {
    min-width: 100%;
    position: relative;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease;
    display: none;
}

.clinic-slide.active {
    opacity: 1;
    transform: scale(1);
    display: block;
    animation: fadeInSlide 0.6s ease forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.clinic-slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(45, 31, 26, 0.9), transparent);
    padding: 40px 30px 30px;
    color: var(--white);
    text-align: center;
}

.slide-caption h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--white);
}

.slide-caption p {
    font-size: 1.1rem;
    opacity: 0.95;
    color: var(--secondary-color);
}

.clinic-carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.clinic-carousel-controls button {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.clinic-carousel-controls button:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(212, 165, 165, 0.4);
}

.clinic-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.clinic-carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.clinic-carousel-dots .dot.active {
    background: var(--primary-color);
    border-color: var(--white);
    transform: scale(1.2);
}

.clinic-carousel-dots .dot:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .clinic-slide img {
        height: 400px;
    }

    .slide-caption h3 {
        font-size: 1.5rem;
    }

    .slide-caption p {
        font-size: 1rem;
    }

    .clinic-carousel-controls button {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* ========================================
   CLASES UTILITARIAS - ESPACIADO Y ESTILOS EN LÍNEA REMOVIDOS
   ======================================== */

/* Espaciador vertical reutilizable */
.spacer {
    height: 40px;
}

/* Sección de contacto con fondo personalizado */
.section-contact {
    background-color: #f0f3ee;
}

/* Contenedor para botón de mapa */
.map-button-container {
    margin-top: 20px;
    text-align: center;
}

/* Estilos para iframe del mapa */
.iframe-map {
    border: 0;
}

/* ========================================
   ESTILOS PARA SERVICIOS MINIMALISTAS
   ======================================== */

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-icon-wrapper:hover {
    transform: scale(1.15) rotateY(10deg);
}

/* Colores personalizados para cada servicio */
.icon-facial {
    background: linear-gradient(135deg, #D4A5A5, #B88B8B);
}

.icon-body {
    background: linear-gradient(135deg, #B4A582, #9B8C6A);
}

.icon-advanced {
    background: linear-gradient(135deg, #A8B4A0, #8FA088);
}

.icon-medicine {
    background: linear-gradient(135deg, #C4A5A8, #B08B8E);
}

.icon-laser {
    background: linear-gradient(135deg, #D4A5B5, #B88B9B);
}

.icon-hair {
    background: linear-gradient(135deg, #D4B5A5, #B89B8B);
}

.icon-massage {
    background: linear-gradient(135deg, #C4D4A5, #A8B88B);
}

.icon-nails {
    background: linear-gradient(135deg, #D4C5A5, #B8A98B);
}

.service-minimal {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px 20px;
    transition: all 0.3s ease;
    border-radius: 15px;
}

.service-minimal:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(212, 165, 165, 0.2);
}

.service-minimal h3 {
    color: var(--primary-color);
    margin: 15px 0 10px;
    font-size: 1.4rem;
    text-align: center;
}

.service-subtitle {
    text-align: center;
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-style: italic;
}

.service-minimal .service-details {
    flex-grow: 1;
    list-style: none;
    padding: 10px 0;
}

.service-minimal .service-details li {
    font-size: 1rem;
    color: var(--text-color);
    padding: 8px 0 8px 25px;
    border-bottom: 1px solid rgba(212, 165, 165, 0.15);
    position: relative;
    transition: padding-left 0.2s ease;
}

.service-minimal .service-details li:before {
    content: "✓";
    position: absolute;
    left: 5px;
    color: var(--primary-color);
    font-weight: bold;
}

.service-minimal .service-details li:hover {
    padding-left: 30px;
    color: var(--primary-color);
}

.service-minimal .service-details li:last-child {
    border-bottom: none;
}

.service-price {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(212, 165, 165, 0.2);
}

.service-minimal:hover .service-price {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(212, 165, 165, 0.4);
}

/* GOOGLE REVIEWS REDESIGN */
.google-reviews-container {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    /* Sombra más suave y moderna */
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.google-reviews-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #4285F4, #34A853, #FBBC05, #EA4335);
    /* Colores oficiales Google */
}

.google-rating-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.google-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.google-logo-row img {
    height: 32px;
    width: auto;
}

.google-logo-row span {
    font-size: 1.4rem;
    font-weight: 500;
    color: #5f6368;
}

.rating-score {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    background: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f3f4;
}

.rating-score .score {
    font-size: 2.5rem;
    font-weight: 400;
    color: #202124;
}

.rating-score .stars {
    display: flex;
    gap: 4px;
}

.rating-score .stars i {
    color: #fbbc04;
    font-size: 1.4rem;
}

.review-link {
    color: #1a73e8;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 4px;
    transition: background 0.2s;
}

.review-link:hover {
    background: #f1f8fe;
}

.google-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.google-review-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.google-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #d2e3fc;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.reviewer-info {
    flex: 1;
}

.reviewer-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: #202124;
    font-weight: 700;
}

.reviewer-info .review-date {
    font-size: 0.85rem;
    color: #70757a;
    display: block;
}

.google-icon-small {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.review-stars {
    color: #fbbc04;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    gap: 2px;
}

.review-text {
    font-size: 1rem;
    color: #4b4f56;
    line-height: 1.6;
    flex-grow: 1;
    font-weight: 400;
}

/* Efecto "Leer más" visual */
.review-text::after {
    content: '';
    display: block;
    height: 0;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .google-reviews-grid {
        grid-template-columns: 1fr;
    }

    .google-reviews-container {
        padding: 25px;
        margin: 0 15px;
    }
}

.pdf-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--secondary-dark);
    background: var(--white);
}

.pdf {
    margin: 0;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.pdf:hover {
    transform: scale(1.02);
}

/* Estilos para el PDF si necesitas mostrarlo como enlace alternativo */
.pdf-link {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    margin: 20px 0;
}

.pdf-link:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 165, 165, 0.4);
}

.gold-icon {
    background: linear-gradient(to right, #BF953F, #AA771C);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    /* Adding a subtle shadow to the icon */
}

.gold-card {
    background: linear-gradient(to bottom right, #BF953F, #FBF5B7, #AA771C);
    color: black !important;
    box-shadow: 0 10px 40px rgba(191, 149, 63, 0.6);
    /* Using gold rgba with higher opacity */
}

.gold-card i {
    color: black !important;
}

.gold-card:hover {
    transform: translateY(-10px) scale(1.05);
    /* Adding a scale effect on hover */
    box-shadow: 0 20px 50px rgba(191, 149, 63, 0.8);
    /* Using gold rgba with higher opacity for hover */
    border-color: #BF953F !important;
    /* Make the border gold on hover */
}

.gold-card h3 {
    color: black !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6) !important;
    /* Stronger shadow */
    font-weight: 700 !important;
    /* Make it bolder */
}

.gold-card p {
    color: black !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4) !important;
    /* Stronger shadow for paragraph */
}

/* ========================================
   SECCIÓN PROCESO DE VIAJE / TURISMO
   ======================================== */

.process-section {
    position: relative;
    background-color: var(--white);
    overflow: hidden;
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 20px;
    padding: 20px 0;
}

/* Línea central vertical */
.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, var(--bg-light), var(--primary-color), var(--bg-light));
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    width: 100%;
}

/* Icono central */
.process-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 8px var(--white);
    /* Halo blanco para separar de la línea */
    font-size: 28px;
    color: var(--primary-color);
    transition: var(--transition);
}

.process-step:hover .process-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 0 8px var(--white), 0 5px 15px rgba(212, 165, 165, 0.4);
}

/* Contenido (Tarjeta) */
.process-content {
    width: 45%;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);
    position: relative;
}

.process-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(74, 52, 40, 0.12);
}

.process-content h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
}

.process-content p {
    color: var(--light-text);
    margin: 0;
    font-size: 1rem;
}

/* Lado impares (Texto a la izquierda) */
.process-step:nth-child(odd) {
    flex-direction: row;
}

.process-step:nth-child(odd) .process-content {
    text-align: right;
    border-top: none;
    border-right: 4px solid var(--primary-color);
}

/* Lado pares (Texto a la derecha) */
.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step:nth-child(even) .process-content {
    text-align: left;
    border-top: none;
    border-left: 4px solid var(--primary-color);
}

/* Estilo para el número de paso opcional */
.step-number {
    position: absolute;
    top: -15px;
    font-size: 4rem;
    font-weight: 900;
    color: var(--bg-light);
    line-height: 1;
    z-index: 0;
}

.process-step:nth-child(odd) .step-number {
    right: 20px;
}

.process-step:nth-child(even) .step-number {
    left: 20px;
}

/* RESPONSIVE PARA EL PROCESO */
@media (max-width: 768px) {
    .process-timeline::before {
        left: 30px;
        /* Línea a la izquierda */
    }

    .process-step {
        flex-direction: row !important;
        /* Siempre fila */
        justify-content: flex-start;
        margin-bottom: 40px;
    }

    .process-icon {
        left: 30px;
        /* Icono alineado a la izquierda */
        width: 50px;
        height: 50px;
        font-size: 20px;
        box-shadow: 0 0 0 5px var(--white);
    }

    .process-step:hover .process-icon {
        box-shadow: 0 0 0 5px var(--white), 0 5px 15px rgba(212, 165, 165, 0.4);
    }

    .process-content {
        width: calc(100% - 80px);
        /* Ancho restante */
        margin-left: 80px;
        /* Espacio para el icono */
        text-align: left !important;
        /* Siempre texto izquierda */
        border-right: none !important;
        border-left: 4px solid var(--primary-color) !important;
        padding: 20px;
    }

    .process-step:nth-child(odd) .step-number,
    .process-step:nth-child(even) .step-number {
        right: 20px;
        left: auto;
    }
}

/* SERVICIOS - ACORDEÓN DESPLEGABLE */
.services-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.accordion-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-header {
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: var(--white);
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #fafafa;
}

/* Estado activo del header */
.accordion-card.active .accordion-header {
    background: var(--bg-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-title-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.accordion-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.accordion-title-group h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 600;
}

.accordion-title-group p {
    margin: 5px 0 0;
    font-size: 0.95rem;
    color: var(--light-text);
    font-weight: 400;
}

.accordion-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: transform 0.4s ease;
}

.accordion-card.active .accordion-toggle {
    transform: rotate(180deg);
    background: var(--primary-color);
    color: var(--white);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.accordion-card.active .accordion-body {
    max-height: 1000px;
    /* Altura suficiente para el contenido */
    transition: max-height 0.5s ease-in-out;
}

.accordion-content {
    padding: 0 30px 30px;
    border-top: 1px solid transparent;
    /* Para evitar colapso de márgenes */
}

/* Reutilizando estilos de lista existentes pero ajustados */
.accordion-content .service-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.accordion-content .service-price {
    margin-top: 30px;
    display: inline-block;
}

@media (max-width: 768px) {
    .accordion-header {
        padding: 20px;
    }

    .accordion-title-group {
        gap: 15px;
    }

    .accordion-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .accordion-title-group h3 {
        font-size: 1.1rem;
    }

    .accordion-content .service-details {
        grid-template-columns: 1fr;
    }
}

/* DETALLES DE TRATAMIENTOS (EXPANDIBLES) */
.service-details details {
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(212, 165, 165, 0.15);
    transition: all 0.3s ease;
}

.service-details details:last-child {
    border-bottom: none;
}

.service-details summary {
    cursor: pointer;
    padding: 8px 0 8px 25px;
    position: relative;
    list-style: none;
    /* Ocultar marcador default */
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s;
}

.service-details summary::-webkit-details-marker {
    display: none;
}

.service-details summary::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.service-details details[open] summary::before {
    transform: rotate(45deg);
    /* Convertir + en x cuando está abierto */
}

.service-details summary:hover {
    color: var(--primary-color);
}

.service-details p.treatment-info {
    font-size: 1rem;
    color: var(--light-text);
    padding: 5px 0 10px 25px;
    margin: 0;
    line-height: 1.4;
    /* font-style: italic; */
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(248, 242, 232, 0.3));
}

/* --- NUEVOS ESTILOS PARA EL HOME --- */

/* BARRA DE CONFIANZA / TRUST BAR */
.trust-bar {
    background: var(--white);
    padding: 40px 0;
    margin-top: -60px;
    /* Eleva la barra sobre el hero */
    position: relative;
    z-index: 100;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(212, 165, 165, 0.15);
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.8s both;
}

.trust-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.trust-item:hover {
    transform: translateY(-10px);
}

.trust-icon {
    font-size: 2.2rem;
    background: linear-gradient(to right, #BF953F, #AA771C);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-text strong {
    font-size: 1.15rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 2px;
}

.trust-text span {
    font-size: 0.85rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.trust-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(212, 165, 165, 0.3), transparent);
}

/* BOTONES ADICIONALES Y MEJORAS */
.btn-secondary {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 18px 40px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background-color: #6d7b65;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(168, 181, 160, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    padding: 16px 38px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(212, 165, 165, 0.3);
}

/* RESPONSIVE PARA TRUST BAR */
@media (max-width: 1100px) {
    .trust-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 0 60px;
    }

    .trust-divider {
        display: none;
    }

    .trust-bar {
        max-width: 90%;
    }
}

@media (max-width: 600px) {
    .trust-container {
        grid-template-columns: 1fr;
        padding: 0 30px;
    }

    .trust-bar {
        margin-top: 20px;
        padding: 40px 20px;
    }

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

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

/* 
   SECCIÓN DE PREGUNTAS FRECUENTES (FAQ) - OPTIMIZACIÓN AEO
   Estilos diseñados para una visualización premium de las FAQs, 
   mejorando la experiencia de usuario y la relevancia para IAs.
*/
.faq-section {
    background: #fff;
    padding: 80px 0;
}

.faq-grid {
    display: block !important;
    /* Desactivamos el grid para usar columnas tipo masonry */
    column-count: 2 !important;
    column-gap: 30px !important;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .faq-grid {
        column-count: 1;
    }
}

.faq-item {
    display: inline-block !important;
    /* Necesario para que el cuadro no se divida entre columnas */
    width: 100% !important;
    background: var(--bg-light, #f9f9f9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 30px;
    /* Espacio vertical entre preguntas */
    break-inside: avoid !important;
    /* Evita que una pregunta se parta a la mitad entre columnas */
}

.faq-item:hover {
    transform: translateY(-5px);
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.faq-item summary {
    list-style: none;
    display: block;
    outline: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item h3 {
    font-size: 1.2rem;
    color: var(--primary-color, #2c3e50);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: color 0.3s ease;
}

.faq-item[open] h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.faq-item h3 i {
    color: var(--accent-color, #e74c3c);
    font-size: 1.1rem;
}

/* Flecha indicadora */
.faq-item h3::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.faq-item[open] h3::after {
    transform: rotate(180deg);
}

.faq-item p {
    line-height: 1.6;
    color: #666;
    font-size: 0.95rem;
    margin-top: 10px;
    animation: fadeInDown 0.4s ease both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}