/* OBS360 - 2050 APEX iOS HYPER-INTEGRITY */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Montserrat:wght@700;800&display=swap');

:root {
    --primary: #1e3a8a;
    --primary-light: #2563eb;
    --primary-dark: #0f172a;
    --secondary: #84cc16;
    --secondary-glow: rgba(132, 204, 22, 0.4);
    --text-main: #1f2937;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-soft: #f8fafc;
    --bg-dark: #0f172a;
    --glass: rgba(255, 255, 255, 0.75);
    --ios-blur: blur(20px);
    --transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    --shadow-ios: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body { font-family: var(--font-main); background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; width: 100%; overflow-x: hidden; }

/* Structural Fixes */
img { max-width: 100%; height: auto; display: inline-block; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; width: 100%; position: relative; }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: var(--transition); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: var(--transition); }
.reveal-stagger.active > * { opacity: 1; transform: translateY(0); }

/* HYPER-MODERN iOS HEADER (Cápsula Flotante) */
header { 
    position: fixed; 
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 92%; 
    max-width: 1300px; 
    z-index: 2000; 
    background: var(--glass); 
    backdrop-filter: var(--ios-blur); 
    -webkit-backdrop-filter: var(--ios-blur);
    border-radius: 100px; 
    border: 1px solid rgba(255, 255, 255, 0.4); 
    height: 78px; 
    box-shadow: var(--shadow-ios);
    display: flex;
    align-items: center;
    padding: 0 32px;
    transition: var(--transition);
}
header.scrolled { top: 10px; width: 95%; background: rgba(255, 255, 255, 0.92); box-shadow: 0 10px 40px rgba(0,0,0,0.05); }

nav { width: 100%; display: flex; justify-content: space-between; align-items: center; }

/* Perfect One-Line Logo Group */
.logo { display: flex; align-items: center; gap: 18px; text-decoration: none; padding-right: 20px; }
.logo img:first-child { height: 36px; width: auto; flex-shrink: 0; }
.logo div { border-left: 1px solid rgba(0,0,0,0.1); height: 26px; padding-left: 18px; display: flex; align-items: center; flex-shrink: 0; }
.logo img:last-child { height: 28px; width: auto; opacity: 0.9; }

.nav-links { display: flex; gap: 32px; list-style: none; margin: 0 20px; }
.nav-links a { 
    text-decoration: none; 
    color: var(--text-main); 
    font-weight: 700; 
    font-size: 13px; 
    text-transform: uppercase; 
    letter-spacing: 0.08em; 
    opacity: 0.6;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}
.nav-links a:hover { opacity: 1; color: var(--primary); }
.nav-links a::after { content: ""; position: absolute; bottom: -4px; left: 50%; width: 0; height: 3px; background: var(--secondary); border-radius: 10px; transition: var(--transition); transform: translateX(-50%); }
.nav-links a:hover::after { width: 16px; }

.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

/* Language Selector */
.lang-selector { display: flex; background: rgba(0,0,0,0.05); padding: 4px; border-radius: 40px; }
.lang-btn { background: transparent; border: none; padding: 7px 14px; border-radius: 40px; font-size: 10px; font-weight: 800; cursor: pointer; color: var(--text-muted); transition: var(--transition); }
.lang-btn.active { background: white; color: var(--primary); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* Buttons */
.btn-primary { background: linear-gradient(135deg, var(--secondary), #65a30d); color: white; padding: 14px 28px; border-radius: 40px; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; transition: var(--transition); box-shadow: 0 8px 20px rgba(132, 204, 22, 0.25); border: none; font-size: 13px; text-transform: uppercase; white-space: nowrap; }
.btn-primary:hover { transform: scale(1.05) translateY(-2px); box-shadow: 0 15px 30px rgba(132, 204, 22, 0.4); }

/* Hero Refined */
section { padding: 120px 0; overflow: hidden; }
.hero { min-height: 90vh; padding-top: 160px; display: flex; align-items: center; background: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 40%); }
.hero-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: center; }
.hero-content h1 { font-family: var(--font-heading); font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -0.05em; font-weight: 800; margin-bottom: 24px; color: var(--primary-dark); }

/* Logo Carousel FIXED SIZE */
.logo-carousel { padding: 40px 0; background: white; border-top: 1px solid rgba(0,0,0,0.02); }
.logo-carousel-container { overflow: hidden; white-space: nowrap; }
.carousel-track { display: flex; gap: 80px; width: max-content; animation: scrollInfinite 40s linear infinite; align-items: center; }
.logo-item img { height: 45px; width: auto; filter: grayscale(1) opacity(0.3); transition: 0.4s; object-fit: contain; }
.logo-item:hover img { filter: grayscale(0) opacity(1); transform: scale(1.15); }

/* Cards 2050 */
.advantages-grid, .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-top: 60px; }
.adv-card, .service-card { background: white; padding: 50px 40px; border-radius: 40px; border: 1px solid rgba(0,0,0,0.03); transition: var(--transition); position: relative; }
.adv-card:hover { transform: translateY(-12px); box-shadow: 0 40px 80px -10px rgba(0,0,0,0.06); border-color: var(--secondary); }
.adv-card i { font-size: 2.2rem; color: var(--secondary); margin-bottom: 24px; display: flex; align-items: center; justify-content: center; width: 70px; height: 70px; background: var(--bg-soft); border-radius: 20px; transition: var(--transition); }
.adv-card:hover i { background: var(--secondary); color: white; transform: rotate(15deg); }

.service-card { background: var(--bg-dark); border: 1px solid rgba(255,255,255,0.05); }
.service-card h3 { color: white; margin-bottom: 16px; font-weight: 700; }
.service-card p { color: rgba(255,255,255,0.5); }
.service-card i { font-size: 2rem; color: var(--secondary); margin-bottom: 24px; width: 64px; height: 64px; background: rgba(255,255,255,0.05); border-radius: 18px; display: flex; align-items: center; justify-content: center; }

/* Impact Section */
.impact-dashboard { background: white; border-radius: 48px; border: 1px solid rgba(0,0,0,0.03); overflow: hidden; display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; box-shadow: var(--shadow-ios); }
.impact-info { padding: 80px 60px; }
.impact-visual { background: var(--bg-soft); height: 100%; display: flex; align-items: center; justify-content: center; padding: 40px; }
.impact-visual img { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); }
.stat-card { border-left: 4px solid var(--secondary); padding-left: 24px; margin-bottom: 32px; }
.stat-card h3 { font-size: 3rem; color: var(--primary-dark); font-weight: 800; letter-spacing: -2px; }

/* THE APEX FOOTER */
footer { padding: 40px 0 80px; background: white; }
.footer-wrap { background: var(--bg-dark); border-radius: 64px; padding: 12px; position: relative; overflow: hidden; }
.footer-inner { background: rgba(255,255,255,0.01); border-radius: 54px; padding: 80px; position: relative; z-index: 2; border: 1px solid rgba(255,255,255,0.04); }
.footer-inner::after { 
    content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; 
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.08) 0%, transparent 60%); 
    animation: rotateGradient 30s linear infinite; pointer-events: none; 
}

.footer-grid { display: grid; grid-template-columns: 1.8fr 1.2fr; gap: 80px; align-items: start; position: relative; z-index: 3; }
.footer-cta-block h2 { color: white; font-size: clamp(2.5rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -0.06em; margin-bottom: 30px; }
.footer-cta-block p { color: rgba(255,255,255,0.4); font-size: 1.2rem; margin-bottom: 48px; max-width: 500px; }
.footer-nav-block h3 { color: var(--secondary); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.9rem; margin-bottom: 32px; font-weight: 800; }
.footer-nav-block ul { list-style: none; line-height: 2.8; }
.footer-nav-block li { color: rgba(255,255,255,0.4); font-weight: 600; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 12px; }
.footer-nav-block li:hover { color: white; transform: translateX(10px); }

.footer-copy { margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.04); text-align: center; color: rgba(255,255,255,0.2); font-size: 0.85rem; font-weight: 500; }

/* WhatsApp */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background: #22c55e; color: white; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3); z-index: 3000; transition: var(--transition); text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1) rotate(10deg); }

@keyframes scrollInfinite { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes rotateGradient { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Mobile */
@media (max-width: 1100px) {
    header { width: 95%; padding: 0 20px; }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 60px; }
    .hero-grid, .impact-dashboard { grid-template-columns: 1fr; text-align: center; }
    .impact-info { padding: 60px 40px; }
}
