/* ---------- RESET BÁSICO Y VARIABLES ---------- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@400;700&display=swap');
/* Opcional: Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

:root {
    /* Paleta "Alfarero" - Tonos Tierra y Arcilla */
    --clay-dark: #4E342E;
    /* Marrón muy oscuro, casi café */
    --clay-medium: #795548;
    /* Terracota clásico */
    --clay-light: #A1887F;
    /* Arcilla suave */
    --sand: #D7CCC8;
    /* Arena / Beige oscuro */
    --cream: #FAFAFA;
    /* Blanco crema para fondos limpios */
    --white: #ffffff;

    --warm-bg: #F9F6F2;
    /* Nuevo fondo cálido (menos blanco) */

    --gold-accent: #C5A059;
    /* Dorado mate, elegante, no chillón */
    --gold-hover: #A68545;

    --text-dark: #3E2723;
    /* Texto casi negro pero cálido */
    --text-light: var(--white);

    --font-primary: 'Montserrat',
        sans-serif;
    /* Moderno, legible */
    --font-secondary: 'Lora',
        serif;
    /* Elegante, clásico */

    --shadow-soft: 0 10px 30px rgba(78, 52, 46, 0.1);
    --shadow-hover: 0 15px 40px rgba(78, 52, 46, 0.2);
}

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

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

html {
    scroll-behavior: smooth;
    /* Desplazamiento suave al hacer clic en anclas */
    scroll-padding-top: 80px;
    /* Ajusta el espacio superior al navegar a una sección */
}

body {
    font-family: var(--font-primary);
    font-size: 18px;
    /* Ajustado para mejor lectura en Montserrat */
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Prevenir scroll horizontal por animaciones */
}

/* ---------- ANIMACIONES DE SCROLL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Animación de entrada suave */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Efecto Ken Burns (Zoom Lento) para el Hero */
@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.25);
    }
}

/* Animación de rebote para flecha de scroll */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Animación de latido para CTAs */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(197, 160, 89, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
    }
}

/* ---------- UTILIDADES Y CONTENEDOR ---------- */
.container {
    width: 90%;
    max-width: 1100px;
    /* Ancho máximo del contenido */
    margin: 0 auto;
    /* Centrado */
}

.section-padding {
    padding: 60px 0;
    /* Espaciado vertical entre secciones */
}

.section-bg-light {
    background-color: var(--cream);
    /* Sutil patrón de ruido para textura orgánica (opcional) */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

.section-bg-dark {
    background-color: var(--clay-dark);
    color: var(--text-light);
    position: relative;
    /* Para los dividers */
}

.section-bg-dark h2,
.section-bg-dark h3,
.section-bg-dark p,
.section-bg-dark li {
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

h1,
h2,
h3 {
    font-family: var(--font-secondary);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--clay-dark);
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--gold-accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: var(--clay-medium);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--gold-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--brown-dark);
}

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

ul {
    list-style: none;
    /* Quita bullets por defecto */
    padding-left: 0;
}

.note {
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
    text-align: center;
    margin-top: 2rem;
}

.note-light {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--cream);
    /* Color claro para fondo oscuro */
    opacity: 0.9;
}

/* ---------- HEADER FIJO (STICKY) ---------- */
.sticky-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(78, 52, 46, 0.95);
    /* Clay Dark con transparencia */
    backdrop-filter: blur(5px);
    /* Efecto blur para el fondo */
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    /* Reducido de 1.5rem */
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

/* Navegación Escritorio */
.desktop-nav ul {
    display: flex;
    gap: 20px;
    /* Reducido de 25px */
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    white-space: nowrap;
    /* Evita que el texto se divida en dos líneas */
}

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

.desktop-nav a:hover {
    color: var(--gold-accent);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Botón Menú Móvil */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Menú Móvil Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    justify-content: flex-end;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav {
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: var(--clay-dark);
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.close-menu-btn {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    margin-bottom: 30px;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-link {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    display: block;
}

.mobile-link.highlight {
    color: var(--gold-accent);
    font-weight: 700;
    border-bottom: none;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-accent) 0%, var(--gold-hover) 100%);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
    color: var(--white);
    padding: 8px 20px;
    /* Reducido de 10px 25px */
    border-radius: 25px;
    /* Botón redondeado */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    /* Animación de latido sutil */
    animation: pulse-gold 2s infinite;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--gold-hover) 0%, var(--gold-accent) 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.6);
    animation-play-state: paused;
    /* Pausar latido al hacer hover en lugar de quitarlo */
}

/* ---------- SECCIÓN HERO ---------- */
.hero {
    position: relative;
    min-height: 85vh;
    /* Altura mínima */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    /* MANTENEMOS el texto blanco */
    background: url('images/hero_1.png') no-repeat center center/cover;
    /* Fallback inicial */
    background-attachment: scroll;
    /* Cambiado de fixed para permitir transform */
    overflow: hidden;
    /* Importante para el efecto zoom */
}

/* Pseudo-elemento para el fondo con zoom */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    /* Hereda la imagen del padre */
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: zoomEffect 15s infinite alternate;
    /* Zoom más notorio */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*
       CAMBIO CLAVE: Usamos el color --clay-dark con opacidad.
    */
    background: linear-gradient(to bottom, rgba(78, 52, 46, 0.6), rgba(78, 52, 46, 0.8));
    /* Degradado para profundidad */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Asegura que el texto esté sobre el overlay */
    max-width: 800px;
    /* Ancho del texto */
    /*font-size: 9.1rem;*/
}

.hero h1 {
    color: var(--white);
    /* Confirmar texto blanco */
    font-size: 5.0rem;
    /* Más grande */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    /* Sombra sutil para mejorar legibilidad */
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    /* Animación de entrada */
}

.hero .subtitle {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    /* Casi opaco para mejor lectura */
    color: var(--white);
    /* Confirmar texto blanco */
    animation: fadeInUp 1s ease-out 0.3s backwards;
    /* Retraso de 0.3s */
}

/* El botón .hero-button ya tiene estilos que deberían funcionar bien */

.hero-button {
    padding: 15px 35px;
    /* Botón más grande */
    font-size: 1.8rem;
    /* Combinamos ambas animaciones: entrada (fadeInUp) y latido (pulse-gold) */
    animation: fadeInUp 1s ease-out 0.6s backwards, pulse-gold 2s infinite 1.6s;
}

/* Flecha de Scroll Down */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    opacity: 0.8;
    cursor: pointer;
}

/* ---------- SECCIÓN IDENTIFICAS / METODOLOGÍA (Icon Grid) ---------- */
.identificas {
    background-color: var(--warm-bg);
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Columnas adaptables */
    gap: 30px;
    /* Espacio entre items */
    text-align: center;
    margin-top: 3rem;
}

.icon-item {
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    background-color: var(--white);
    /* Fondo blanco para destacar */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Sombra suave inicial */
}

.icon-item:hover {
    transform: translateY(-5px);
    background-color: var(--white);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    /* Sombra más intensa al hover */
}

.icon-item .icon-color {
    color: var(--clay-medium);
    /* Color de los iconos */
    margin-bottom: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.icon-item:hover .icon-color {
    color: var(--gold-accent);
    transform: scale(1.1);
}

.metodologia .icon-item .icon-color {
    color: var(--gold-accent);
    /* Iconos dorados en metodología */
}

.icon-item h3 {
    /* Para metodología */
    font-size: 1.3rem;
    margin-top: 10px;
}

/* ---------- SECCIÓN PROMESA / INSTRUCTOR (Columnas) ---------- */
.content-columns {
    display: flex;
    align-items: center;
    gap: 40px;
    /* Espacio entre columnas */
}

.content-columns .column-text {
    flex: 1;
    /* Ocupa el espacio disponible */
}

.content-columns .column-image {
    flex-basis: 40%;
    /* Ancho de la imagen */
    max-width: 400px;
    /* Límite de ancho */
}

.content-columns .column-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.content-columns .column-image img:hover {
    transform: scale(1.02);
    /* Zoom sutil en imagen */
}

/* Para invertir el orden en Instructor */
.content-columns.reversed {
    flex-direction: row-reverse;
}

.inline-link {
    font-weight: bold;
}

.content-columns .column-image img.instructor-photo {
    border-radius: 50%;
    /* Foto redonda */
    max-width: 300px;
    /* Tamaño máximo */
    margin: 0 auto;
    /* Centrar si es más pequeña */
}

/* ---------- SECCIÓN CONTENIDO / TESTIMONIOS (Cards) ---------- */
.course-cards,
.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* Borde sutil */
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(197, 160, 89, 0.3);
    /* Borde dorado sutil */
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--gold-accent);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: rotateY(180deg);
    /* Giro divertido al hover */
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Estilos específicos para testimonios */
.testimonial-card {
    background-color: var(--cream);
    /* Fondo distinto */
    text-align: left;
}

.testimonial-card blockquote {
    margin-bottom: 1rem;
    font-style: italic;
    color: #555;
    border-left: 4px solid var(--gold-accent);
    padding-left: 15px;
}

.testimonial-card cite {
    font-weight: bold;
    color: var(--clay-dark);
    display: block;
    text-align: right;
}

/* ---------- SECCIÓN VIDEO ---------- */
.video-section h2 {
    margin-bottom: 2rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* Proporción 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    /* Fondo negro mientras carga */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ---------- SECCIÓN DETALLES E INSCRIPCIÓN ---------- */
.inscripcion h2 {
    color: var(--white);
    margin-bottom: 2.5rem;
}

.inscripcion p,
.inscripcion li {
    color: var(--cream);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
    text-align: left;
}

.detail-item {
    background-color: rgba(255, 255, 255, 0.1);
    /* Fondo semi-transparente */
    padding: 25px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.detail-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.detail-item h3 {
    color: var(--white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-color-light {
    color: var(--gold-accent);
    /* Iconos en dorado */
    font-size: 1.5em;
    /* Tamaño del icono */
}

.detail-item ul {
    padding-left: 20px;
    /* Espacio para bullets implícitos */
    list-style: disc;
    /* Usar bullets estándar aquí */
}

.detail-item ul li {
    margin-bottom: 0.5rem;
}

.payment-info {
    font-weight: bold;
    margin-top: 1rem;
}

.final-cta-text {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--white);
}

.large-button {
    padding: 18px 45px;
    font-size: 1.8rem;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background-color: var(--clay-dark);
    color: var(--cream);
    padding: 40px 0;
    font-size: 0.9rem;
}

.site-footer p {
    margin-bottom: 1rem;
    color: var(--cream);
    opacity: 0.9;
}

.social-icons a {
    color: var(--white);
    margin: 0 12px;
    font-size: 1.5rem;
    /* Iconos más grandes */
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    /* Para aplicar transform */
}

.social-icons a:hover {
    color: var(--gold-accent);
    transform: scale(1.1);
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.7;
}

/* ---------- MEDIA QUERIES (Responsividad) ---------- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

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

    h2 {
        font-size: 2rem;
    }

    .content-columns,
    .content-columns.reversed {
        flex-direction: column;
        /* Apila las columnas */
        text-align: center;
    }

    .content-columns .column-image {
        max-width: 80%;
        /* Ajusta tamaño de imagen */
        margin: 2rem auto 0;
    }

    .instructor-photo {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    /* Ajuste para header más pequeño */
    .sticky-header {
        padding: 12px 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    .cta-button {
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    .header-actions .cta-button {
        display: none;
        /* Ocultar CTA en header móvil para dar espacio al menú */
    }

    .mobile-menu-btn {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .section-padding {
        padding: 40px 0;
    }

    .icon-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .fa-3x {
        font-size: 2.5em;
    }

    /* Reduce tamaño iconos */

    .course-cards,
    .testimonial-cards,
    .details-grid {
        grid-template-columns: 1fr;
        /* Una columna */
        gap: 20px;
    }

    .card {
        padding: 25px;
    }

    .large-button {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .social-icons a {
        margin: 0 10px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .header-container {
        padding: 0 5px;
        /* Más ajuste para logo/botón */
    }

    .logo {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 7px 15px;
    }

    .container {
        width: 95%;
    }

    /* Más ancho en móviles muy pequeños */
}



/* ---------- SECCIÓN TESTIMONIOS (CARRUSEL CSS) ---------- */
.testimonials .container h2 {
    margin-bottom: 0.5rem;
    /* Menos espacio si hay subtítulo */
}

.subtitle-section {
    text-align: center;
    font-size: 1.1rem;
    color: var(--clay-medium);
    margin-bottom: 3rem;
}

.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    /* Oculta lo que sale del contenedor */
    position: relative;
    /* Para posibles controles futuros */
    /* Opcional: Añadir máscara de degradado en los bordes */
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
}

.carousel-track {
    display: flex;
    /* Coloca los testimonios en línea */
    /* Ancho total = (ancho_tarjeta + margen) * numero_total_tarjetas */
    /* Como son 15 originales + 15 duplicados = 30 tarjetas */
    /* Asumiendo aprox 350px por tarjeta (320 + 30 margen) */
    width: calc(350px * 30);
    /* Calcula este ancho basado en el ancho de tus tarjetas y márgenes */
    animation: scrollAnimation 90s linear infinite;
    /* Ajusta 90s para la velocidad */
}

/* Animación de desplazamiento */
@keyframes scrollAnimation {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Mueve hacia la izquierda la mitad del ancho total (la longitud del set original) */
        transform: translateX(calc(-350px * 15));
        /* Mueve por el ancho de los 15 originales */
    }
}

/* Pausar animación al pasar el mouse */
.carousel-track:hover {
    animation-play-state: paused;
}

/* ---------- MEDIA QUERIES ADICIONALES PARA MENÚ ---------- */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
        /* Ocultar menú escritorio */
    }

    .mobile-menu-btn {
        display: block;
        /* Mostrar botón hamburguesa */
    }

    .header-actions .cta-button {
        display: none;
        /* Ocultar botón CTA en header móvil si falta espacio, o ajustar */
    }
}

@media (min-width: 1025px) {
    .mobile-nav-overlay {
        display: none;
        /* Asegurar que no se vea en escritorio */
    }
}

/* Pausar la animación al pasar el cursor por encima */
.carousel-wrapper:hover .carousel-track {
    animation-play-state: paused;
}

/* Estilos para las tarjetas dentro del carrusel */
.carousel-track .testimonial-card {
    flex-shrink: 0;
    /* Evita que las tarjetas se encojan */
    width: 320px;
    /* Ancho fijo para cada tarjeta */
    margin-right: 30px;
    /* Espacio entre tarjetas */
    /* Hereda los estilos de .card y .testimonial-card definidos previamente */
    /* Asegúrate de que tenga el fondo, padding, borde, etc. */
    background-color: var(--cream);
    /* Fondo distinto si estaba en grid antes */
    text-align: left;
    /* Asegurar alineación */
}

/* Ajustes para Responsividad */
@media (max-width: 768px) {
    .carousel-track {
        /* Ajusta el ancho y la animación si cambias el tamaño de la tarjeta */
        width: calc(300px * 30);
        /* Ejemplo con tarjetas más pequeñas */
        animation-name: scrollAnimationMobile;
        animation-duration: 80s;
        /* Puede ser más rápido en móvil */
    }

    .carousel-track .testimonial-card {
        width: 270px;
        /* Tarjetas más pequeñas en móvil */
        margin-right: 20px;
    }

    @keyframes scrollAnimationMobile {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-300px * 15));
        }

        /* Ajustar desplazamiento */
    }

    /* Quitar máscara en móvil si ocupa mucho espacio o no se ve bien */
    .carousel-wrapper {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

@media (max-width: 480px) {
    .carousel-track {
        width: calc(270px * 30);
        /* Ejemplo con tarjetas más pequeñas */
        animation-duration: 70s;
        animation-name: scrollAnimationSmallMobile;
    }

    .carousel-track .testimonial-card {
        width: 240px;
        margin-right: 15px;
    }

    @keyframes scrollAnimationSmallMobile {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-270px * 15));
        }
    }
}


/* ---------- Sección Instagram ---------- */
.instagram-section {
    font-size: 1px;
}


/* ---------- Sección Preguntas Frecuentes (FAQ) ---------- */


.faq h2 {
    color: var(--clay-dark);
    /* Mantenemos el título oscuro para contraste */
    margin-bottom: 3rem;
    /* Más espacio después del título */
}

.faq-container {
    max-width: 800px;
    /* Limita el ancho para mejor legibilidad */
    margin: 0 auto;
    /* Centra el contenedor */
    border-top: 1px solid var(--clay-medium);
    /* Línea superior sutil */
}

.faq-item {
    border-bottom: 1px solid var(--clay-medium);
    /* Separador entre preguntas */
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 15px;
    background-color: transparent;
    /* Sin fondo por defecto */
    border: none;
    cursor: pointer;
    text-align: left;

    font-family: var(--font-primary);
    /* O la fuente que prefieras para preguntas */
    font-size: 1.1rem;
    font-weight: 600;
    /* Ligeramente más grueso */
    color: var(--text-dark);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(168, 154, 135, 0.1);
    /* Un hover muy sutil con brown-light */
}

.faq-icon {
    color: var(--clay-dark);
    font-size: 1rem;
    transition: transform 0.4s ease;
    /* Animación suave del icono */
    margin-left: 15px;
    /* Espacio entre texto e icono */
}

/* Estilo del icono cuando la pregunta está activa/abierta */
.faq-item.active .faq-question .faq-icon {
    transform: rotate(180deg);
    /* Gira la flecha hacia arriba */
}

.faq-answer {
    /* Estado oculto por defecto */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 20px;
    /* Padding horizontal listo, vertical se añade al abrir */
    transition: max-height 0.5s ease-out, padding 0.5s ease-out, opacity 0.5s ease-out;
    color: var(--text-dark);
    /* Color del texto de respuesta */
    /* background-color: var(--brown-light); */
    /* Fondo ligeramente diferente si se desea */
    /* line-height: 1.7; Asegúrate que tenga buena legibilidad */
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    margin-bottom: 1rem;
    color: var(--text-dark);
    /* Confirmar color */
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 25px;
    /* Indentación para listas */
}

.faq-answer ul li {
    list-style: disc;
    margin-bottom: 0.5rem;
}

.faq-answer ol li {
    list-style: decimal;
    margin-bottom: 0.5rem;
}


/* Estado visible de la respuesta cuando .faq-item tiene la clase .active */
.faq-item.active .faq-answer {
    max-height: 1000px;
    /* Un valor grande para permitir cualquier altura */
    opacity: 1;
    padding: 25px 20px;
    /* Padding completo al abrir */
    /* transition: max-height 0.6s ease-in, padding 0.6s ease-in, opacity 0.6s ease-in; */
    /* Puedes ajustar la transición de entrada si quieres */

}



/* ---------- SHAPE DIVIDERS (Separadores Orgánicos) ---------- */
.custom-shape-divider-bottom-1678901234 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 1;
    /* Asegurar que esté sobre el fondo pero bajo contenido si es necesario */
}

.custom-shape-divider-bottom-1678901234 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
    /* Altura de la ola */
}

.custom-shape-divider-bottom-1678901234 .shape-fill {
    fill: var(--warm-bg);
    /* Color de la sección siguiente (Identificas) */
}

/* Variación para conectar con secciones oscuras */
.divider-to-dark .shape-fill {
    fill: var(--clay-dark);
}

/* Variación para conectar desde secciones oscuras a claras */
.divider-to-light .shape-fill {
    fill: var(--cream);
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .custom-shape-divider-bottom-1678901234 svg {
        height: 50px;
    }
}

/* ---------- Botón Volver Arriba ---------- */
.back-to-top-button {
    position: fixed;
    /* Fijo en la pantalla */
    bottom: 25px;
    /* Distancia desde abajo */
    right: 25px;
    /* Distancia desde la derecha */
    z-index: 999;
    /* Asegura que esté por encima de otros elementos */

    display: flex;
    /* Para centrar el icono fácilmente */
    align-items: center;
    justify-content: center;

    width: 45px;
    /* Ancho del botón */
    height: 45px;
    /* Alto del botón */
    background-color: var(--gold-accent);
    /* Color de acento */
    color: var(--white);
    /* Color del icono */
    font-size: 1.1rem;
    /* Tamaño del icono */

    border-radius: 50%;
    /* Hace el botón redondo */
    text-decoration: none;
    /* Quita subrayado del enlace */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    /* Sombra sutil */

    /* Transiciones para aparecer/desaparecer suavemente */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    /* Empieza un poco abajo */
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background-color 0.3s ease;
}

/* Estado visible (cuando se añade la clase 'show' con JS) */
.back-to-top-button.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* Vuelve a su posición original */
}

/* Efecto al pasar el cursor */
.back-to-top-button:hover {
    background-color: #a0740a;
    /* Dorado más oscuro (ajusta si usas otro acento) */
    color: var(--white);
    transform: scale(1.05);
    /* Un ligero agrandamiento */
}

/* Estilo para ocultar texto visualmente pero mantenerlo para accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Ajuste responsivo opcional para pantallas pequeñas */
@media (max-width: 768px) {
    .back-to-top-button {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

/* ---------- Botón Flotante WhatsApp (Versión Marrón) ---------- */
.whatsapp-float-button {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 998;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;
    /* Cambio: Usar variable de marrón medio */
    background-color: var(--gold-accent);
    /* Igual que el botón volver arriba */
    /* Antes era #25D366 */
    color: var(--white);
    /* Mantenemos icono blanco para contraste */
    font-size: 1.8rem;
    /* Ajustado ligeramente para el icono en el círculo */

    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Sombra ligeramente más suave */

    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Efecto al pasar el cursor */
.whatsapp-float-button:hover {
    /* Cambio: Usar variable de marrón oscuro */
    background-color: #a0740a;
    /* Igual que el hover del botón volver arriba */
    /* Antes era #1DA851 */
    color: var(--white);
    transform: scale(1.1);
}

/* --- Asegúrate de que la clase sr-only sigue definida en tu CSS --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* Ajuste responsivo (mantenemos ajustes previos o ajustamos si es necesario) */
@media (max-width: 768px) {
    .whatsapp-float-button {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
        font-size: 1.5rem;
    }
}


/* --- Código QR --- */
@media (max-width: 768px) {

    /* Móvil */
    .QR {
        width: 80%;
        filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.7));
        margin: auto;
        display: block;
    }
}

@media (min-width: 768px) {

    /* PC o Notebook */
    .QR {
        width: 25%;
        filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.7));
        margin: auto;
        display: block;
    }
}

.mail {
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.7));
}