/* CSS Variables for Theme */
@font-face {
    font-family: 'Simply Olive';
    src: url('assets/fonts/simply_olive.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.font-olive {
    font-family: 'Simply Olive', cursive;
    font-weight: normal;
}

:root {
    --primary: #FFB800; /* Yellow vibrant */
    --primary-dark: #E5A600;
    --secondary: #2B2D42; /* Dark blue/grey */
    --accent: #FF3366; /* Vibrant pink/red for accents */
    --bg-light: #F8F9FA;
    --text-main: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 184, 0, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: var(--white);
    font-size: 1.8rem;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img, video, iframe {
    max-width: 100%;
    border-radius: 12px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

strong {
    color: var(--secondary);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    margin-top: 20px;
    font-size: 1.2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
}

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

.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary);
    color: var(--secondary);
    font-weight: 700;
    border-radius: 30px;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    box-shadow: var(--shadow);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
    transition: var(--transition);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.navbar.scrolled .logo {
    color: var(--secondary);
    text-shadow: none;
}

.logo span {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.navbar.scrolled .menu-toggle {
    color: var(--secondary);
}

.navbar nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.navbar nav a {
    font-weight: 600;
    color: var(--white);
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
}

.navbar.scrolled nav a {
    color: var(--secondary);
    text-shadow: none;
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 220px;
    list-style: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.98);
    transform-origin: top left;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 12px;
    padding: 12px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 4px !important;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--secondary) !important;
    text-transform: none !important;
    font-size: 1rem !important;
    white-space: nowrap;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-shadow: none !important;
}

.dropdown-menu a:hover {
    background-color: var(--primary);
    color: var(--white) !important;
    transform: translateX(5px);
}

/* Hero Section */
.hero {
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Reducida la opacidad para que la imagen se vea más alegre y visible */
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)), 
                url('assets/images/favicon.webp') center/cover no-repeat;
    z-index: -1;
    transform: scale(1.03);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
    padding: 0 5%;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 20px;
    /* Sombra fuerte para que contraste con la imagen de fondo más clara */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    color: rgba(255, 255, 255, 1);
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 500;
    /* Sombra para la legibilidad del texto */
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Presentación */
.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.image-wrapper {
    position: relative;
}

.image-wrapper img {
    box-shadow: var(--shadow);
    height: 500px;
    object-fit: cover;
    width: 100%;
}

.glass-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    max-width: 250px;
}

.glass-card p {
    margin: 0;
    font-weight: 600;
    font-style: italic;
    color: var(--secondary);
}

/* Info Section (Destinatarios) */
.info-section {
    background-color: var(--white);
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 184, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.card-icon i {
    font-size: 30px;
    color: var(--primary);
}

/* Methodology */
.check-list {
    list-style: none;
    margin-top: 30px;
}

.check-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    font-size: 1.1rem;
}

.check-list i {
    color: var(--accent);
    margin-top: 5px;
    margin-right: 15px;
    font-size: 1.2rem;
}

.video-wrapper video, .video-wrapper iframe {
    width: 100%;
    box-shadow: var(--shadow);
}

/* Objectives & Benefits */
.objectives-benefits {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a1c29 100%);
    color: var(--white);
}

.objectives-benefits .section-title h2 {
    color: var(--white);
}

.objectives-benefits .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--secondary);
}

.tab-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.tab-content.active {
    opacity: 1;
    transform: translateY(0);
}

.glass-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

.glass-box:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.neuro-content .intro-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.custom-list {
    margin-left: 20px;
    margin-top: 20px;
}

.custom-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.highlight-box {
    background: var(--primary);
    color: var(--secondary);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.highlight-box i {
    font-size: 40px;
    margin-bottom: 20px;
}

.highlight-box p {
    color: var(--secondary);
    font-size: 1.3rem;
    font-weight: 600;
    font-style: italic;
    margin: 0;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    grid-auto-flow: dense;
    gap: 20px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background-color: #111;
    box-shadow: var(--shadow);
}

.gallery-item.video {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item img, .gallery-item video, .gallery-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item video, .gallery-item iframe {
    object-fit: contain;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
    color: var(--white);
    padding: 80px 0 30px;
    border-top: 5px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
}

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 350px;
}

.footer-info h3, .footer-social-wrapper h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-info h3::after, .footer-social-wrapper h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links li i {
    color: var(--primary);
    font-size: 1.2rem;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn-premium i {
    font-size: 1.3rem;
}

/* YouTube */
.social-btn-premium.youtube i { color: #ff0000; }
.social-btn-premium.youtube:hover {
    background-color: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.1);
}

/* Instagram */
.social-btn-premium.instagram i { color: #E1306C; }
.social-btn-premium.instagram:hover {
    background-color: rgba(225, 48, 108, 0.1);
    border-color: #E1306C;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(225, 48, 108, 0.1);
}

/* Facebook */
.social-btn-premium.facebook i { color: #1877F2; }
.social-btn-premium.facebook:hover {
    background-color: rgba(24, 119, 242, 0.1);
    border-color: #1877F2;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.1);
}

/* LinkedIn */
.social-btn-premium.linkedin i { color: #0A66C2; }
.social-btn-premium.linkedin:hover {
    background-color: rgba(10, 102, 194, 0.1);
    border-color: #0A66C2;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(10, 102, 194, 0.1);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

.legal-links {
    margin-top: 10px;
    font-size: 0.85rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Animations */
@keyframes zoomOut {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* Workshop Accordion */
.workshop-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}
.workshop-details {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.workshop-details[open] {
    background: rgba(255, 184, 0, 0.05);
    border-color: rgba(255, 184, 0, 0.3);
}
.workshop-summary {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    position: relative;
}
.workshop-summary::-webkit-details-marker {
    display: none; /* Hide default arrow in webkit */
}
.workshop-summary .icon-wrapper {
    font-size: 1.8rem;
    margin-right: 15px;
}
.workshop-summary .workshop-title {
    font-size: 1.25rem;
    color: var(--white);
    font-weight: 600;
    flex-grow: 1;
}
.workshop-summary .accordion-icon {
    transition: transform 0.3s ease;
    color: var(--primary);
}
.workshop-details[open] .accordion-icon {
    transform: rotate(180deg);
}
.workshop-content {
    padding: 0 20px 20px 20px;
    background: transparent;
}
.workshop-content video, .workshop-content iframe {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    background: #000;
}
.workshop-content.placeholder {
    padding: 20px;
    text-align: center;
}
.workshop-content.placeholder p {
    color: rgba(255,255,255,0.5);
    font-style: italic;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.video { grid-column: span 2; }
    h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    /* Fullscreen Gallery Mobile Padding Fix */
    .custom-modal-content.fullscreen-gallery {
        padding: 50px 15px 30px 15px !important;
    }

    /* Navbar Mobile Menu */
    .menu-toggle { display: block; }
    .navbar nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(26, 26, 46, 0.98);
        padding: 30px 0;
        transform: translateY(-150%);
        transition: transform 0.4s ease, opacity 0.4s ease;
        z-index: -1;
        opacity: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    .navbar nav.active {
        transform: translateY(0);
        opacity: 1;
    }
    .navbar nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .navbar.scrolled nav a { color: var(--white); } /* Keep mobile links white on dark background */

    /* Mobile Dropdown Fix */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        padding: 0;
        margin-top: 10px;
        display: none;
    }
    .dropdown.open .dropdown-menu {
        display: flex;
    }
    .dropdown-menu a {
        color: var(--white) !important;
        text-align: center;
        padding: 8px 20px;
        white-space: normal;
    }

    /* Typography & Spacing */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }
    p { font-size: 1rem; }
    .section { padding: 60px 0; }
    .hero-content p { font-size: 1.2rem; margin-bottom: 25px; }
    .hero-buttons { flex-direction: column; gap: 15px; }

    /* Grids */
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.video { grid-column: span 1; grid-row: span 1; }

    /* Nuestras Propuestas - remove boxes on mobile */
    .grid-2 > div[style*="background: rgba(0, 0, 0, 0.3)"] {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 15px 5px !important;
    }
    .grid-2[style*="gap: 40px"] {
        gap: 15px !important;
    }
    .workshop-accordion {
        gap: 10px;
    }
    .workshop-details {
        border-radius: 10px;
    }
    .workshop-content {
        padding: 0 10px 15px 10px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .footer-info h3::after, .footer-social-wrapper h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-brand p {
        margin: 15px auto 0;
    }
    .footer-links li {
        justify-content: center;
    }
    .social-links-grid {
        align-items: center;
        justify-content: center;
    }
    
    /* Cookie Banner */
    .cookie-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .cookie-banner p {
        padding-right: 0;
    }

    /* Tabs Mobile Fix */
    .tabs {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 0 15px;
    }
    .tab-btn {
        width: 100%;
        max-width: 350px;
        padding: 12px 15px;
        font-size: 1rem;
        white-space: normal;
        line-height: 1.3;
    }
}

/* Testimonios */
.testimonials { background-color: var(--bg-light); }
.testimonial-card { background: var(--white); padding: 30px; border-radius: 15px; box-shadow: var(--shadow); transition: var(--transition); }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.stars { color: #FFD700; margin-bottom: 15px; }
.testimonial-card p { font-style: italic; font-size: 1.1rem; }
.testimonial-card .author { font-style: normal; font-weight: 600; color: var(--secondary); margin-top: 15px; text-align: right; }

/* Floating Buttons */
.floating-contact { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 999; }
.float-btn { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; color: white; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: var(--transition); }
.float-btn:hover { transform: scale(1.1); }
.float-btn.whatsapp { background-color: #25D366; }
.float-btn.whatsapp:hover { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
.float-btn.phone { background-color: var(--primary); color: var(--secondary); }
.float-btn.phone:hover { box-shadow: 0 4px 20px rgba(255, 184, 0, 0.4); }

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    left: 0;
    width: 100%;
    background-color: rgba(17, 17, 17, 0.95);
    color: var(--white);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    z-index: 9999;
    transition: bottom 0.5s ease;
    border-top: 2px solid var(--primary);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner p {
    font-size: 0.95rem;
    margin: 0;
    flex: 1;
    padding-right: 30px;
}

.cookie-banner .btn {
    white-space: nowrap;
}
.btn-secondary { display: inline-block; padding: 15px 35px; background-color: rgba(0, 0, 0, 0.5); border: 2px solid var(--primary); color: var(--white); font-weight: 600; border-radius: 30px; font-size: 1.1rem; transition: var(--transition); text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }
.btn-secondary:hover { background-color: var(--primary); color: var(--secondary); text-shadow: none; }

.gallery-btn { color: var(--secondary) !important; border-color: var(--secondary) !important; }
.gallery-btn:hover, .gallery-btn.active { color: var(--white); background: var(--secondary) !important; }

/* Custom Font Scaling */
h1.font-olive {
    font-size: 5rem;
    line-height: 1.1;
}

h2.font-olive, .section-title h2.font-olive, .text-content h2.font-olive {
    font-size: 3.5rem;
}

.navbar nav a.font-olive {
    font-size: 1.4rem;
}

@media (max-width: 992px) {
    h1.font-olive { font-size: 4rem; }
    h2.font-olive, .section-title h2.font-olive, .text-content h2.font-olive { font-size: 3rem; }
}

@media (max-width: 768px) {
    h1.font-olive { font-size: 3.2rem; }
    h2.font-olive, .section-title h2.font-olive, .text-content h2.font-olive { font-size: 2.6rem; }
    .navbar nav a.font-olive { font-size: 1.6rem; } /* Mobile menu link size */
}

/* Custom Modals for Galleries */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background-color: rgba(17, 17, 17, 0.95);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.custom-modal-content {
    background-color: var(--secondary);
    margin: auto;
    padding: 40px 20px;
    border: 1px solid var(--primary);
    width: 95%;
    max-width: 1000px;
    border-radius: 15px;
    position: relative;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    color: var(--white);
}

.custom-modal-close {
    color: var(--white);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2001;
}

.custom-modal-close:hover,
.custom-modal-close:focus {
    color: var(--primary);
    text-decoration: none;
}

/* Fullscreen Gallery Modals */
.custom-modal-content.fullscreen-gallery {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    border: none;
    margin: 0;
    padding: 60px 10%;
    background-color: var(--secondary);
}

.fullscreen-gallery .custom-modal-close {
    position: fixed;
    top: 20px;
    right: 40px;
    font-size: 45px;
    z-index: 3000;
}

.fullscreen-gallery h2,
.fullscreen-gallery p {
    color: var(--white);
}

.gallery-category-title {
    color: var(--primary) !important;
    font-size: 2.2rem;
    margin: 60px 0 30px 0;
    text-align: left;
    border-bottom: 2px solid rgba(255, 184, 0, 0.3);
    padding-bottom: 10px;
}

/* Hero Section */

/* Talleres Modal Premium Improvements */
.benefit-card {
    background: white;
    color: #333;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-bottom: 4px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    border-bottom: 4px solid var(--primary);
}

.benefit-card:nth-child(even):hover {
    border-bottom: 4px solid var(--secondary);
}

.number-circle {
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 0 15px rgba(249, 160, 63, 0.5);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.benefit-card:hover .number-circle {
    box-shadow: 0 0 25px rgba(249, 160, 63, 0.9);
    transform: scale(1.1);
}

.benefit-card:nth-child(even) .number-circle {
    background: var(--secondary);
    box-shadow: 0 0 15px rgba(43, 45, 66, 0.5);
}

.benefit-card:nth-child(odd) .number-circle {
    background: var(--primary);
}

.benefit-card:nth-child(even):hover .number-circle {
    box-shadow: 0 0 25px rgba(43, 45, 66, 0.9);
}

.talleres-list {
    flex: 1;
    min-width: 300px;
    background: var(--bg-light);
    color: #333;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.talleres-list::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.talleres-list:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.3);
}

.talleres-list ul li {
    transition: transform 0.2s ease;
}
.talleres-list ul li:hover {
    transform: translateX(10px);
    color: var(--primary);
}

/* Gallery Premium Redesign */

/* Custom Scrollbar for Fullscreen Gallery */
.fullscreen-gallery::-webkit-scrollbar {
    width: 10px;
}
.fullscreen-gallery::-webkit-scrollbar-track {
    background: var(--secondary);
}
.fullscreen-gallery::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    border: 3px solid var(--secondary);
}
.fullscreen-gallery::-webkit-scrollbar-thumb:hover {
    background: #ffc233;
}

/* Category Title Enhancements */
.gallery-category-title {
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary), transparent);
    border-image-slice: 1;
    text-shadow: 0 2px 10px rgba(249, 160, 63, 0.3);
}

/* Hover Effects and Glow for Gallery Items */
.gallery-item {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(249, 160, 63, 0.4);
    z-index: 10;
}


/* Modal Open Animation (Cascading Effect) */
@keyframes galleryFadeUp {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

.custom-modal.show .gallery-item {
    opacity: 0;
    animation: galleryFadeUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Staggering the first 15 items for a cascading effect */
.custom-modal.show .gallery-item:nth-child(1) { animation-delay: 0.1s; }
.custom-modal.show .gallery-item:nth-child(2) { animation-delay: 0.15s; }
.custom-modal.show .gallery-item:nth-child(3) { animation-delay: 0.2s; }
.custom-modal.show .gallery-item:nth-child(4) { animation-delay: 0.25s; }
.custom-modal.show .gallery-item:nth-child(5) { animation-delay: 0.3s; }
.custom-modal.show .gallery-item:nth-child(6) { animation-delay: 0.35s; }
.custom-modal.show .gallery-item:nth-child(7) { animation-delay: 0.4s; }
.custom-modal.show .gallery-item:nth-child(8) { animation-delay: 0.45s; }
.custom-modal.show .gallery-item:nth-child(9) { animation-delay: 0.5s; }
.custom-modal.show .gallery-item:nth-child(10) { animation-delay: 0.55s; }
.custom-modal.show .gallery-item:nth-child(11) { animation-delay: 0.6s; }
.custom-modal.show .gallery-item:nth-child(12) { animation-delay: 0.65s; }
.custom-modal.show .gallery-item:nth-child(13) { animation-delay: 0.7s; }
.custom-modal.show .gallery-item:nth-child(14) { animation-delay: 0.75s; }
.custom-modal.show .gallery-item:nth-child(15) { animation-delay: 0.8s; }
.custom-modal.show .gallery-item:nth-child(n+16) { animation-delay: 0.85s; }

/* Premium Workshop List */
.premium-workshop-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.premium-workshop-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.premium-workshop-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transition: all 0.3s ease;
}

.premium-workshop-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 184, 0, 0.3);
}

.premium-workshop-item:hover::before {
    width: 6px;
    box-shadow: 0 0 15px var(--primary);
}

.premium-workshop-item .icon-wrapper {
    background: rgba(255, 184, 0, 0.15);
    color: var(--primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.premium-workshop-item:hover .icon-wrapper {
    background: var(--primary);
    color: #2B2D42;
    transform: rotate(10deg) scale(1.1);
}

.premium-workshop-item .workshop-title {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Modal Intro Header Styles */
.intro-highlights .highlight-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.intro-highlights .highlight-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.special-prices-banner {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary), #ff9500);
    color: #111;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 184, 0, 0.3);
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 184, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 184, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 184, 0, 0); }
}
/* Premium Benefits List */
.premium-benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.premium-benefit-item {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.premium-benefit-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 184, 0, 0.2);
}

.benefit-number {
    background: linear-gradient(135deg, var(--primary), #ff9500);
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.3rem;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255, 184, 0, 0.3);
    transform: rotate(-5deg);
    transition: all 0.3s ease;
}

.premium-benefit-item:hover .benefit-number {
    transform: rotate(0deg) scale(1.1);
}

.benefit-text {
    margin: 0;
    font-size: 1.15rem;
    color: #eee;
    line-height: 1.6;
}

.benefit-text strong {
    color: var(--primary);
}

/* Glow Text Animation for Highlights */
.glow-text {
    display: inline-block;
    position: relative;
    color: var(--primary);
    background: linear-gradient(to right, var(--primary) 20%, #FFF 40%, #FFF 60%, var(--primary) 80%);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    text-shadow: 0 0 10px rgba(255, 184, 0, 0.3);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}


/* Video Facade */


.video-facade {
    position: relative;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
/* Iframe that replaces video-facade — exact same box */
.video-player-iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 8px;
    background: #000;
    margin-bottom: 20px;
}
.video-facade .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}
.video-facade:hover .play-button {
    background-color: rgba(220, 38, 38, 0.9); /* A nice red on hover */
    transform: translate(-50%, -50%) scale(1.1);
}
.video-facade .play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
}

