/* Variables */
:root {
    --color-bg: #050505;
    --color-bg-alt: #0D0D0D;
    --color-accent: #54E346; 
    --color-accent-hover: #3DC930;
    --color-text: #F1F1F1;
    --color-text-muted: #9E9E9E;
    
    --font-heading: 'Oswald', 'Impact', 'Teko', sans-serif;
    --font-body: 'Inter', 'Roboto', 'Helvetica Neue', sans-serif;
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background-color: var(--color-bg); color: var(--color-text); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul { list-style: none; }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section-padding { padding: 6rem 0; }
.bg-darker { background-color: var(--color-bg-alt); }
.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

/* Typography */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); text-transform: uppercase; line-height: 1.1; letter-spacing: 1px; }
.hero-title { font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 1rem; text-shadow: 0 4px 20px rgba(0,0,0,0.9); }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--color-text-muted); max-width: 600px; margin-bottom: 2.5rem; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.section-heading { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
.section-sub { color: var(--color-text-muted); font-size: 1.1rem; font-style: italic; }

/* 🌟 ANIMACIÓN 1: Glow en los textos importantes */
.glow-text {
    animation: neonGlow 2.5s ease-in-out infinite alternate;
}
@keyframes neonGlow {
    from { text-shadow: 0 0 5px rgba(84, 227, 70, 0.4), 0 0 15px rgba(84, 227, 70, 0.2); }
    to { text-shadow: 0 0 12px rgba(84, 227, 70, 0.9), 0 0 25px rgba(84, 227, 70, 0.6); }
}

/* Buttons */
.btn-accent, .btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 1rem 2rem; font-family: var(--font-heading); font-size: 1.25rem;
    letter-spacing: 1px; text-transform: uppercase; cursor: pointer; border: none; border-radius: 2px;
    transition: all var(--transition-fast);
}
.btn-accent { background-color: var(--color-accent); color: #000; font-weight: bold; }
.btn-accent:hover { background-color: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(84, 227, 70, 0.4); }
.btn-outline { background-color: transparent; border: 2px solid var(--color-text); color: var(--color-text); }
.btn-outline:hover { background-color: var(--color-text); color: var(--color-bg); }

/* 🌟 ANIMACIÓN 2: Botón Principal "Latido" de Conversión */
.pulse-btn { animation: pulse 2.5s infinite cubic-bezier(0.66, 0, 0, 1); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(84, 227, 70, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(84, 227, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(84, 227, 70, 0); }
}
.pulse-btn-subtle { animation: pulseSubtle 3s infinite; }
@keyframes pulseSubtle {
    0% { box-shadow: 0 0 0 0 rgba(84, 227, 70, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(84, 227, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(84, 227, 70, 0); }
}

/* Header */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 1rem 0; transition: background-color var(--transition-fast), padding var(--transition-fast); }
.header.scrolled { background-color: rgba(5, 5, 5, 0.95); backdrop-filter: blur(10px); padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.logo img { height: 50px; width: auto; display: block; filter: drop-shadow(0 0 10px rgba(84, 227, 70, 0.5)); transition: filter 0.3s; }
.logo:hover img { filter: drop-shadow(0 0 15px rgba(84, 227, 70, 0.8)); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.9rem; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background-color: var(--color-accent); transition: width var(--transition-fast); }
.nav-links a:hover::after { width: 100%; box-shadow: 0 0 10px var(--color-accent); }
.btn-primary-nav { background-color: var(--color-accent); color: #000; padding: 0.6rem 1.2rem; font-weight: bold; text-transform: uppercase; font-family: var(--font-heading); font-size: 1rem; border-radius: 2px; }
.btn-primary-nav:hover { background-color: var(--color-accent-hover); }

/* Mobile Menu */
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: transparent; border: none; cursor: pointer; }
.menu-toggle .bar { width: 25px; height: 3px; background-color: var(--color-text); transition: var(--transition-fast); }

/* 🌟 ANIMACIÓN 3: Hero Effect "Ken Burns" lento y elegante */
.hero { height: 100vh; min-height: 600px; display: flex; align-items: center; position: relative; padding: 0 5%; overflow: hidden; background-color: #050505; }
.hero-bg-anim {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; z-index: 0;
    animation: kenburns 30s infinite alternate ease-in-out;
}
@keyframes kenburns {
    0% { transform: scale(1); filter: brightness(1); }
    100% { transform: scale(1.15); filter: brightness(0.7); }
}
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(180deg, rgba(5,5,5,0.6) 0%, rgba(5,5,5,1) 100%); z-index: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, rgba(84, 227, 70, 0.1) 0%, transparent 70%); z-index: 1; pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Grids */
.layout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* 🌟 ANIMACIÓN 4: Elemento Flotante en Sección Filosofía */
.floating { animation: float 6s ease-in-out infinite; }
@keyframes float {
    0% { transform: translateY(0px); box-shadow: 0 0 20px rgba(84, 227, 70, 0.15); }
    50% { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(84, 227, 70, 0.35); }
    100% { transform: translateY(0px); box-shadow: 0 0 20px rgba(84, 227, 70, 0.15); }
}

.real-image { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; display: block; filter: contrast(1.1); }
.cinematic-img { height: 500px; border-radius: 4px; box-shadow: -20px 20px 0px rgba(84, 227, 70, 0.1); position: relative; overflow: hidden; background-color: #111; }

/* 🌟 ANIMACIÓN 5: Escáner de luz sobre la imagen de filosofía */
.cinematic-img::after { 
    content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 15%; 
    background: linear-gradient(to bottom, transparent, rgba(84, 227, 70, 0.5), transparent); 
    animation: scan 6s linear infinite; z-index: 10; pointer-events: none; 
}
@keyframes scan {
    0% { top: -20%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 120%; opacity: 0; }
}

/* 🌟 ANIMACIÓN 6: Facility Cards con Zoom en la imagen y Bordes */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.facility-card { 
    background: #111; padding: 1.5rem; border-radius: 4px; border: 1px solid #222; 
    transition: all 0.4s ease; position: relative; overflow: hidden;
}
.facility-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: var(--color-accent); transform: scaleX(0); transition: transform 0.4s ease; transform-origin: left;
    box-shadow: 0 0 10px var(--color-accent);
}
.facility-card:hover { transform: translateY(-10px); border-color: var(--color-accent); box-shadow: 0 10px 30px rgba(84, 227, 70, 0.15); }
.facility-card:hover::before { transform: scaleX(1); }

.card-img-container { overflow: hidden; border-radius: 2px; margin-bottom: 1rem; position: relative; background: #000; }
.card-img-real { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.8s ease, filter 0.8s ease; filter: grayscale(50%) contrast(1.1); }
.facility-card:hover .card-img-real { transform: scale(1.15); filter: grayscale(0%) contrast(1.2); }
.facility-card h4 { font-size: 1.5rem; margin: 1rem 0 0.5rem; transition: color 0.3s; }
.facility-card:hover h4 { color: var(--color-accent); }

/* 🌟 ANIMACIÓN 7: Services Interactivos */
.services-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.service-item { display: flex; align-items: flex-start; gap: 1.5rem; background: #0D0D0D; padding: 2rem; border-radius: 4px; border-left: 4px solid #333; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; }
.service-item:hover { background: #151515; border-left: 4px solid var(--color-accent); box-shadow: inset 10px 0 20px -10px rgba(84,227,70,0.4), 0 5px 25px rgba(84,227,70,0.1); transform: translateX(8px); }
.service-icon { color: #555; flex-shrink: 0; transition: all 0.4s ease; }
.service-item:hover .service-icon { color: var(--color-accent); transform: rotate(15deg) scale(1.2); filter: drop-shadow(0 0 5px var(--color-accent)); }
.service-info h4 { font-size: 1.5rem; margin-bottom: 0.5rem; transition: color 0.3s; }
.service-item:hover .service-info h4 { color: #fff; }
.service-info p { color: var(--color-text-muted); font-size: 0.95rem; }

/* 🌟 ANIMACIÓN 8: Map Location Glow Border */
.glow-border { transition: box-shadow 0.4s ease, border-color 0.4s ease; border: 1px solid transparent; }
.glow-border:hover { box-shadow: 0 0 25px rgba(84,227,70,0.3); border-color: rgba(84,227,70,0.5); }
.map-placeholder { height: 400px; border-radius: 4px; overflow: hidden; background-color: #111; }
.contact-list li { margin-bottom: 1.5rem; }
.contact-list strong { color: var(--color-accent); font-family: var(--font-heading); font-size: 1.2rem; letter-spacing: 1px; }
.hover-glow-border:hover { box-shadow: 0 0 15px rgba(84,227,70,0.4); border-color: var(--color-accent); }

/* Footer */
.footer { background-color: #020202; padding: 4rem 5% 2rem; border-top: 1px solid #111; position: relative; overflow: hidden;}
.footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(84,227,70,0.3), transparent); }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--color-text-muted); margin-top: 0.5rem;}
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid #111; font-size: 0.85rem; color: #666; }
.credits .wif-brand { color: #485A71; font-weight: bold; }

/* Floating WhatsApp */
.floating-whatsapp { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #25D366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 1000; transition: transform var(--transition-fast); }
.floating-whatsapp:hover { transform: scale(1.15); animation: none; box-shadow: 0 0 25px rgba(37,211,102,0.6); }

/* Scroll Animaciones Base */
.fade-in-up, .slide-in-left, .slide-in-right, .scale-up { opacity: 0; visibility: hidden; will-change: transform, opacity; }
.fade-in-up { transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.slide-in-left { transform: translateX(-50px); transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.slide-in-right { transform: translateX(50px); transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.scale-up { transform: scale(0.95); transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.is-visible { opacity: 1; visibility: visible; transform: translate(0) scale(1); }

@media (max-width: 768px) {
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%; background-color: rgba(5, 5, 5, 0.98);
        flex-direction: column; align-items: center; padding: 2rem 0; gap: 1.5rem;
        border-bottom: 1px solid #111; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }
    .nav-links.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .btn-primary-nav { display: none; }
    .menu-toggle { display: flex; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons a { width: 100%; text-align: center; }
}
