/* 
    SLA Masters Academy - Style Guide
    Symetria Academy Funnel Approach (Premium, Dark Mode, Minimalista, Dorado Elegante)
*/

:root {
    --bg-dark: #000000;
    --bg-charcoal: #0d0d0d;    /* Negro carbón, ligeramente más cálido */
    --bg-midnight: #07080f;    /* Negro azulado muy oscuro, da profundidad */
    --bg-card: #050505;
    --primary-color: #d4af37; /* Dorado Premium / Elegant Gold */
    --primary-color-hover: #f1c40f; 
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #1a1a1a;
    --font-primary: 'Inter', 'Roboto', sans-serif;
    --whatsapp-green: #25d366;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-primary);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h1 { 
    font-size: 4.5rem; 
    line-height: 1.05; 
    margin-bottom: 20px; 
    letter-spacing: 0.12em;
    color: #ffffff;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.25), 0 2px 4px rgba(0,0,0,0.5);
}
h2 { font-size: 2.5rem; margin-bottom: 20px; letter-spacing: 0.1em; color: var(--text-light); }
h3 { font-size: 1.3rem; letter-spacing: 0.05em; margin-bottom: 10px; }

a { text-decoration: none; color: inherit; transition: color 0.4s ease; }

.gold-line {
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    margin-bottom: 30px;
}
.gold-line.center { margin: 0 auto 30px auto; }

/* Opción 2: Separadores dorados entre secciones */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 30%, var(--primary-color) 70%, transparent 100%);
    opacity: 0.25;
    border: none;
    margin: 0;
}

/* Opción 4: Glow dorado radial detrás de títulos */
.glow-title {
    position: relative;
    display: inline-block;
}
.glow-title::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.navbar .logo img {
    height: 80px; /* Tamaño máximo en Desktop */
    max-height: 10vh;
    object-fit: contain;
    mix-blend-mode: normal; /* El SVG es transparente, no necesita screen */
    animation: goldShimmer 10s infinite;
    transform-origin: center;
}

@keyframes goldShimmer {
    0%, 90%, 100% {
        filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.1)) brightness(1);
    }
    94% {
        filter: drop-shadow(0 0 35px rgba(212, 175, 55, 0.85)) brightness(1.6);
    }
    96% {
        filter: drop-shadow(-5px 0 25px rgba(212, 175, 55, 0.6)) brightness(1.2);
    }
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 400;
    position: relative;
    color: var(--text-muted);
}

.nav-links li a:hover {
    color: var(--text-light);
}

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.btn-primary:hover {
    background: var(--primary-color-hover);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color) !important;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-dark) !important;
}

.btn-card {
    border: 1px solid var(--border-color);
    width: 100%;
    margin-top: 10px;
}
.btn-card:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Animations (Intersection Observer Targets) */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in { transform: none; }
.fade-in.visible { opacity: 1; }

.slide-up { transform: translateY(40px); }
.slide-up.visible { opacity: 1; transform: translateY(0); }

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.55) 50%,
        rgba(0, 0, 0, 0.92) 100%
    );
    z-index: 1;
}

.hero-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
}

.slide-1 {
    background-image: url('Imagenes%20para%20la%20web/hero_1.jpg');
    animation: panSlide1 18s infinite;
    animation-delay: 0s;
}

.slide-2 {
    background-image: url('Imagenes%20para%20la%20web/hero_2.jpg');
    animation: panSlide2 18s infinite;
    animation-delay: 6s;
}

.slide-3 {
    background-image: url('Imagenes%20para%20la%20web/hero_3.jpg');
    animation: panSlide3 18s infinite;
    animation-delay: 12s;
}

/* Cinematic Pans (Slow Ken Burns effect revealing face to action) */
@keyframes panSlide1 {
    0% { opacity: 0; background-position: center 25%; transform: scale(1.05); }
    10% { opacity: 1; background-position: center 32%; transform: scale(1); }
    33% { opacity: 1; background-position: center 50%; transform: scale(1.03); }
    43% { opacity: 0; background-position: center 54%; transform: scale(1.05); }
    100% { opacity: 0; background-position: center 25%; transform: scale(1.05); }
}

@keyframes panSlide2 {
    0% { opacity: 0; background-position: 46% 30%; transform: scale(1.05); }
    10% { opacity: 1; background-position: 46% 35%; transform: scale(1); }
    33% { opacity: 1; background-position: 46% 48%; transform: scale(1.03); }
    43% { opacity: 0; background-position: 46% 52%; transform: scale(1.05); }
    100% { opacity: 0; background-position: 46% 30%; transform: scale(1.05); }
}

@keyframes panSlide3 {
    0% { opacity: 0; background-position: center 28%; transform: scale(1.05); }
    10% { opacity: 1; background-position: center 34%; transform: scale(1); }
    33% { opacity: 1; background-position: center 48%; transform: scale(1.03); }
    43% { opacity: 0; background-position: center 52%; transform: scale(1.05); }
    100% { opacity: 0; background-position: center 28%; transform: scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-top: 50px;
}

/* Hero buttons row */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}


.hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    margin: 20px auto 40px auto;
    font-weight: 300;
    max-width: 600px;
    letter-spacing: 0.03em;
    line-height: 1.8;
    text-align: center;
}

/* Hero slide dot indicators */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: 1px solid rgba(212, 175, 55, 0.5);
    animation: dotPulse 18s infinite;
}
.hero-dot:nth-child(2) { animation-delay: 6s; }
.hero-dot:nth-child(3) { animation-delay: 12s; }
@keyframes dotPulse {
    0%, 30%    { background: var(--primary-color); transform: scale(1.3); }
    34%, 100%  { background: rgba(255,255,255,0.3); transform: scale(1); }
}

.scroll-indicator {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* Opción 1: Quote Section — fondo carbón cálido */
.quote-section {
    padding: 60px 5%;
    background: var(--bg-charcoal);
    text-align: center;
    position: relative;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
}

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

.quote-section h2 {
    font-size: 2rem;
    line-height: 1.4;
    color: var(--text-light);
    font-weight: 300;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
}

.quote-author {
    margin-top: 30px;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Opción 1: Galería — fondo negro azulado para profundidad */
.gallery-section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
    background: transparent;
}

.gallery-header {
    text-align: left;
    margin-bottom: 20px;
    max-width: 500px;
}
.gallery-header p { color: var(--text-muted); }

.carousel-container {
    position: relative;
    max-width: 100%;
    margin-top: 40px;
    padding: 0 10px;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    padding-left: 5%; /* Start with a margin to center first item */
    padding-right: 5%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
.carousel-track::-webkit-scrollbar { display: none; } /* Safari and Chrome */

.carousel-slide {
    min-width: 360px;
    height: 440px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.6s ease;
    scroll-snap-align: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) blur(3px) grayscale(50%);
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide.active-slide {
    transform: scale(1.02);
    border-color: rgba(212, 175, 55, 0.3);
    z-index: 2;
}

.carousel-slide.active-slide img {
    filter: brightness(1) blur(0px) grayscale(0%);
    transform: scale(1);
}

.carousel-slide:hover.active-slide img {
    transform: scale(1.05); /* Efecto Ken Burns ligero extra on hover */
}

/* ─── Slide Overlay Info Panel ─── */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.92) 0%,
        rgba(0,0,0,0.55) 55%,
        rgba(0,0,0,0.1) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 26px;
    opacity: 1;
    z-index: 3;
    pointer-events: none;
}

.carousel-slide.active-slide .slide-overlay {
    pointer-events: auto;
}

/* Tag badge */
.slide-tag {
    display: inline-block;
    background: var(--primary-color);
    color: #000;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    margin-bottom: 10px;
    width: fit-content;
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.45s ease 0.05s, opacity 0.45s ease 0.05s;
}

/* Title */
.slide-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 10px 0;
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.45s ease 0.12s, opacity 0.45s ease 0.12s;
}

/* Description */
.slide-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.6;
    margin: 0 0 16px 0;
    max-width: 280px;
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.45s ease 0.2s, opacity 0.45s ease 0.2s;
}

/* CTA link */
.slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid rgba(212,175,55,0.4);
    padding-bottom: 3px;
    width: fit-content;
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.45s ease 0.28s, opacity 0.45s ease 0.28s, color 0.2s;
}
.slide-cta:hover { color: #fff; border-color: #fff; }
.slide-cta i { font-size: 0.65rem; transition: transform 0.25s; }
.slide-cta:hover i { transform: translateX(4px); }

/* Animate in overlay elements when slide is active */
.carousel-slide.active-slide .slide-tag,
.carousel-slide.active-slide .slide-title,
.carousel-slide.active-slide .slide-desc,
.carousel-slide.active-slide .slide-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Dark slides (non-active) show nothing */
.carousel-slide:not(.active-slide) .slide-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
}

/* Botones de navegación del Carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.85);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.prev-btn { left: -20px; }
.next-btn { right: -20px; }


/* Opción 1: Events — fondo carbón para alternar con negro */
.events-section {
    padding: 100px 5%;
    background: var(--bg-midnight);
}

.events-header { text-align: left; margin-bottom: 60px; }

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: transparent;
    text-align: left;
    transition: transform 0.4s ease;
}
.card:hover {
    transform: translateY(-6px);
}

.card .img-container {
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    filter: brightness(0.7);
    transition: all 0.6s ease;
}

.card:hover .card-img { filter: brightness(1); transform: scale(1.03); }

.overlay-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    color: var(--primary-color);
    padding: 5px 15px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--primary-color);
}
.overlay-tag.alert { color: #f44336; border-color: #f44336; }

.card-body { padding: 30px 0; }
.course-name { color: var(--primary-color); font-size: 0.9rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.card-info { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 25px; }
.card-info i { color: var(--text-light); margin-right: 10px; }

/* Opción 1: Staff — negro puro para alternar */
.staff-section {
    padding: 100px 5%;
    text-align: center;
    background: var(--bg-dark);
}

.staff-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.staff-member { width: 250px; }

.staff-img-box {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 25px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.staff-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.staff-social {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.staff-social a { color: var(--primary-color); font-size: 1.5rem; }
.staff-social a:hover { color: var(--text-light); }

.staff-member:hover .staff-img-box { border-color: var(--primary-color); }
.staff-member:hover img { filter: grayscale(0%); }
.staff-member:hover .staff-social { opacity: 1; }

.staff-member h4 { color: var(--text-light); margin-bottom: 5px; }
.staff-member p { color: var(--text-muted); font-size: 0.85rem; }

/* Opción 1: Testimonios — fondo carbón para contrastar con staff */
.testimonials-section {
    padding: 70px 5% 100px 5%;
    background: var(--bg-charcoal);
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.testimonial-card {
    background: linear-gradient(145deg, #0d0d0d 0%, #050505 100%);
    padding: 40px;
    border: 1px solid transparent;
    background-clip: padding-box;
    position: relative;
    text-align: left;
    border-radius: 4px;
    overflow: hidden;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 6rem;
    color: var(--primary-color);
    opacity: 0.07;
    font-family: Georgia, serif;
    line-height: 1;
}
.testimonial-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212,175,55,0.2), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.testimonial-card .fa-star { color: var(--primary-color); font-size: 0.8rem; margin-bottom: 20px; }
.testimonial-card p { color: var(--text-muted); font-style: italic; margin-bottom: 30px; font-size: 0.95rem; }
.test-author { color: var(--text-light); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px;}

/* FAQ Accordion */
.faq-section {
    padding: 100px 5%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.accordion { margin-top: 50px; text-align: left; }
.accordion-item { border-bottom: 1px solid var(--border-color); }
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}
.accordion-header h4 { font-size: 1.1rem; text-transform: none; font-weight: 300; letter-spacing: 0; margin:0;}
.accordion-header:hover { color: var(--primary-color); }
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.accordion-content p {
    padding-bottom: 25px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.accordion-item.active .accordion-content { max-height: 200px; }
.accordion-item.active .accordion-header { color: var(--primary-color); }

/* Opción 1: Support CTA — negro azulado prominent */
.support-cta {
    background: var(--bg-midnight);
    padding: 80px 5%;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}
.support-cta h2 { font-size: 2rem; }
.support-cta p { color: var(--text-muted); margin-bottom: 30px; }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* Footer */
footer {
    padding: 80px 5% 40px 5%;
    text-align: center;
    background: var(--bg-dark);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
}
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}
.footer-content img {
    mix-blend-mode: screen;
    filter: brightness(1.1);
}
.footer-links { display: flex; gap: 30px; }
.footer-links a { color: var(--text-muted); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.footer-links a:hover { color: var(--primary-color); }
.social-footer { display: flex; gap: 20px; }
.social-footer a { color: var(--text-muted); font-size: 1.2rem; }
.social-footer a:hover { color: var(--text-light); }
.copyright { color: #555; font-size: 0.8rem; }

/* =========================================================================
   AI Widget Styles
   ========================================================================= */
#ai-widget-container {
    position: fixed;
    bottom: 110px; /* Above WhatsApp */
    right: 40px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.ai-chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--bg-charcoal);
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}
.ai-toggle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    box-sizing: border-box;
}
.ai-toggle-badge {
    position: absolute;
    bottom: 0px;
    right: -2px;
    background: var(--bg-midnight);
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.8);
}
.ai-chat-toggle:hover { transform: scale(1.1); }
.pulse-anim { animation: pulseWarning 2s infinite; }
@keyframes pulseWarning {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

#ai-proactive-bubble {
    background: #fff;
    color: #000;
    padding: 12px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}
#ai-proactive-bubble .bubble-tail {
    position: absolute;
    bottom: -8px;
    right: 25px;
    width: 0; 
    height: 0; 
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
}
#ai-proactive-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
}
.fade-in-up { animation: fadeInUp 0.5s forwards; }
.fade-out-down { animation: fadeOutDown 0.3s forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOutDown { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(20px); } }

#ai-chat-panel {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    width: 360px;
    height: 520px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    /* ensure panel is anchored to right */
    position: absolute;
    bottom: 70px;
    right: 0;
}
#ai-chat-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.ai-chat-header {
    background: var(--bg-charcoal);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.ai-header-info { display: flex; align-items: center; gap: 12px; }
.ai-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-color); }
.ai-header-titles h4 { margin: 0; font-size: 1rem; color: #fff; }
.ai-status { font-size: 0.75rem; color: #4caf50; display: flex; align-items: center; gap: 5px;}
.ai-status::before { content: ''; display: block; width: 6px; height: 6px; background: #4caf50; border-radius: 50%; }
#ai-close-btn { background: none; border: none; color: #aaa; font-size: 1.2rem; cursor: pointer; }
#ai-close-btn:hover { color: #fff; }

#ai-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.ai-message { max-width: 85%; padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; line-height: 1.4; word-wrap: break-word; }
.ai-system { background: #2a2a2a; color: #eaeaea; align-self: flex-start; border-bottom-left-radius: 2px; }
.ai-user { background: var(--primary-color); color: #000; align-self: flex-end; border-bottom-right-radius: 2px; font-weight: 500; }
.ai-message p { margin: 0; }
.ai-message.typing-indicator span { display: inline-block; width: 6px; height: 6px; background: #888; border-radius: 50%; margin: 0 2px; animation: wave 1.3s linear infinite; }
.ai-message.typing-indicator span:nth-child(2) { animation-delay: -1.1s; }
.ai-message.typing-indicator span:nth-child(3) { animation-delay: -0.9s; }
@keyframes wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
.audio-player audio { height: 35px; width: 220px; outline: none; }

.ai-input-area {
    padding: 15px;
    background: var(--bg-charcoal);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}
#ai-input-text {
    flex: 1;
    background: #111;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 10px 15px;
    color: #fff;
    resize: none;
    font-family: inherit;
    font-size: 0.9rem;
    max-height: 100px;
    outline: none;
}
#ai-input-text:focus { border-color: var(--primary-color); }
.ai-actions { display: flex; gap: 8px; }
.ai-actions button {
    width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: background 0.3s;
}
#ai-mic-btn { background: #222; color: #fff; }
#ai-mic-btn.recording { background: #ff4444; color: #fff; animation: pulseRecord 1s infinite; }
@keyframes pulseRecord { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
#ai-send-btn { background: var(--primary-color); color: #000; }

/* =========================================================================
   Scheduling / Booking Section Styles
   ========================================================================= */
.scheduling-section {
    padding: 80px 5%;
    max-width: 1100px;
    margin: 0 auto;
}
.scheduling-header { text-align: center; margin-bottom: 50px; }
.scheduling-header p { color: var(--text-muted); margin-top: 15px; }

.scheduling-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
}

.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; color: #fff; }
.cal-btn { background: rgba(0,0,0,0.5); border: 1px solid rgba(212, 175, 55, 0.4); color: var(--primary-color); width: 35px; height: 35px; border-radius: 50%; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.cal-btn:hover { background: var(--primary-color); color: #000; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 0.8rem; font-weight: 600; color: #a18a3d; margin-bottom: 10px; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-day {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 1rem; cursor: pointer; transition: all 0.2s;
    border: 1px solid transparent; color: #ffffff; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.cal-day:not(.empty):not(.disabled):hover { border-color: var(--primary-color); background: rgba(212, 175, 55, 0.15); }
.cal-day.disabled { color: #555; cursor: not-allowed; font-weight: 400; text-shadow: none; }
.cal-day.selected { background: var(--primary-color); color: #000; font-weight: bold; font-size: 1.15rem; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5); text-shadow: none; }

.time-slots-panel { margin-top: 30px; }
.time-slots-panel h4 { margin-bottom: 15px; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; font-weight: 600; }
.time-slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.time-slot {
    border: 1px solid rgba(212, 175, 55, 0.3); background: rgba(0,0,0,0.4); border-radius: 8px; text-align: center; padding: 10px;
    font-size: 0.95rem; cursor: pointer; transition: 0.3s; color: #fff; font-weight: 500;
}
.time-slot:hover { border-color: var(--primary-color); background: rgba(212, 175, 55, 0.1); }
.time-slot.selected { background: var(--primary-color); color: #000; border-color: var(--primary-color); font-weight: bold; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4); }

.time-slot.occupied {
    background: rgba(255, 50, 50, 0.1);
    color: #555;
    border-color: #333;
    cursor: not-allowed;
    opacity: 0.6;
}

.loading-slots {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-style: italic;
}
.booking-form .form-group { margin-bottom: 20px; }
.booking-form label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: #ccc; font-weight: 500; }
.booking-form input, .booking-form select {
    width: 100%; padding: 12px 15px; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px; color: #fff; font-family: inherit; font-size: 1rem;
    transition: 0.3s; box-sizing: border-box; backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.booking-form input:focus, .booking-form select:focus { border-color: var(--primary-color); background: rgba(10,10,10,0.8); box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3); outline: none; }
.booking-form select { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 15px center; background-size: 1.2em; }
.hidden { display: none !important; }

.booking-success { text-align: center; padding: 50px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.success-icon { font-size: 4rem; color: var(--primary-color); margin-bottom: 20px; animation: scaleIn 0.5s ease; }
.booking-success h3 { color: #fff; margin-bottom: 15px; font-size: 1.5rem; }
.booking-success p { color: #ccc; margin-bottom: 30px; line-height: 1.6; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .prev-btn { left: 5px; width: 45px; height: 45px; font-size: 1.2rem; }
    .next-btn { right: 5px; width: 45px; height: 45px; font-size: 1.2rem; }
    .carousel-slide { min-width: 280px; height: 350px; }
    .slide-overlay { padding: 20px 50px; align-items: center; text-align: center; }
    .slide-desc { margin: 0 auto 16px auto; }
    .slide-cta { margin: 0 auto; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    
    .scheduling-container { grid-template-columns: 1fr; padding: 25px 20px; gap: 40px; }
    #ai-widget-container { bottom: 100px; right: 20px; }
    #ai-chat-panel { width: calc(100vw - 40px); height: 450px; right: 0; bottom: 80px; }
    #ai-proactive-bubble { right: 0; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 24px; }
}

