@import url('https://use.typekit.net/agb1jie.css');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,700;1,300&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
    --brand-blue: #00AEEF;
    --brand-blue-dark: #0090c8;
    --black: #000000;
    --white: #ffffff;
    --border-light: #e8e8e8;
    --text-muted: #888;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET BASE */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "proxima-nova", "Barlow", sans-serif;
    background-color: var(--white);
    color: var(--black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased; 
}

.container { max-width: 1440px; margin: 0 auto; padding: 0 60px; }

/* REVEAL ANIMATIONS */
.reveal, .reveal-left, .reveal-right {
    opacity: 0; transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translate(0); }

/* ─── HEADER ─── */
.header {
    height: 90px; background: #ffffff; position: fixed; top: 0; width: 100%;
    z-index: 1000; border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; transition: box-shadow 0.4s ease, height 0.4s ease;
}
.header.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,0.08); height: 72px; }
.navbar { display: flex; width: 100%; align-items: center; justify-content: space-between; height: 100%; }
.logo img { height: 68px; display: block; }
.main-nav { flex-grow: 1; display: flex; justify-content: center; height: 100%; }
.main-nav ul { display: flex; list-style: none; height: 100%; align-items: center; gap: 8px; }
.nav-item {
    height: 100%; display: flex; align-items: center; font-weight: 700; font-size: 11px;
    text-transform: uppercase; letter-spacing: 2.5px; cursor: pointer; color: var(--black);
    text-decoration: none; padding: 0 20px; transition: color 0.3s;
}
.nav-item:hover { color: var(--brand-blue); }
.nav-item .arrow {
    display: inline-block; width: 0; height: 0; border-left: 4px solid transparent;
    border-right: 4px solid transparent; border-top: 5px solid currentColor;
    margin-left: 7px; flex-shrink: 0; position: relative; top: 1px;
}

/* ─── MEGA MENU ─── */
.mega-menu {
    display: none; position: fixed; top: 90px; left: 0; width: 100vw;
    background: var(--white); border-top: 3px solid var(--brand-blue);
    border-bottom: 1px solid var(--border-light); box-shadow: 0 12px 40px rgba(0,0,0,0.08); z-index: 9999;
}
.header.scrolled .mega-menu { top: 72px; }
.nav-item:hover .mega-menu, .mega-menu:hover { display: block; }
.mega-content { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
.mega-col { display: flex; flex-direction: column; padding: 14px 20px; border-right: 1px solid var(--border-light); gap: 6px; }
.mega-col:last-child { border-right: none; }
.mega-col:hover { background: #f9f9f9; }
.mega-col h3 { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--brand-blue); margin-bottom: 10px; }
.mega-col p { font-size: 13px; color: #777; margin-bottom: 18px; line-height: 1.6; flex-grow: 1; }
.mega-col a { color: var(--black); text-decoration: none; font-weight: 800; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; border-bottom: 1px solid var(--brand-blue); padding-bottom: 3px; align-self: flex-start; transition: color 0.2s; }
.mega-col a:hover { color: var(--brand-blue); }

/* ─── HEADER RIGHT (BOTÓN PREMIUM Y LOGO IG) ─── */
.header-right { display: flex; height: 100%; align-items: center; }
.header-right .cta-btn {
    background-color: var(--brand-blue); color: #ffffff; border: none; border-radius: 6px;
    padding: 0 24px; height: 40px; font-size: 11px; letter-spacing: 2px;
    text-transform: uppercase; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0, 174, 239, 0.25); text-decoration: none;
}
.header-right .cta-btn:hover {
    background-color: var(--brand-blue-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 174, 239, 0.4); color: #ffffff;
}
.header-right .social-link-header {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    margin-left: 20px; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
    border-radius: 50%; text-decoration: none; transition: transform 0.3s ease;
}
.header-right .social-link-header i { color: #ffffff; font-size: 22px; display: block; margin: 0; }
.header-right .social-link-header:hover { transform: scale(1.1); }

/* ─── HERO ─── */
.hero {
    height: 100vh; min-height: 700px; margin-top: 90px; position: relative;
    display: flex; align-items: center; justify-content: flex-start; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=2062&auto=format&fit=crop') center/cover no-repeat;
    transform: scale(1.05); animation: heroZoom 8s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1.0); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 55%, rgba(0,0,0,0.25) 100%); }
.hero-content { position: relative; z-index: 2; padding-left: 60px; max-width: 860px; animation: heroFadeUp 1s 0.3s var(--ease-out) both; }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow {
    font-family: 'Barlow', sans-serif; font-size: 11px; font-weight: 400; letter-spacing: 6px; text-transform: uppercase;
    color: var(--brand-blue); margin-bottom: 24px; display: flex; align-items: center; gap: 16px;
}
.hero-eyebrow::before { content: ''; display: inline-block; width: 40px; height: 1px; background: var(--brand-blue); }
.hero-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(4rem, 8vw, 8rem); font-weight: 400; line-height: 0.92; color: var(--white); letter-spacing: 2px; margin-bottom: 32px; }
.hero-title .accent { color: var(--brand-blue); }
.hero-subtitle { font-size: 17px; color: rgba(255,255,255,0.7); font-weight: 300; line-height: 1.6; max-width: 480px; margin-bottom: 50px; font-family: 'Barlow', sans-serif; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-hero-primary { padding: 18px 40px; background: var(--brand-blue); color: var(--white); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 2.5px; text-decoration: none; transition: background 0.3s, transform 0.3s; }
.btn-hero-primary:hover { background: var(--brand-blue-dark); transform: translateY(-2px); }
.btn-hero-secondary { padding: 18px 40px; background: transparent; color: var(--white); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 2.5px; text-decoration: none; border: 1px solid rgba(255,255,255,0.4); transition: border-color 0.3s, color 0.3s; }
.btn-hero-secondary:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.hero-scroll { position: absolute; bottom: 50px; left: 60px; z-index: 2; display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.4); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; animation: heroFadeUp 1s 0.8s var(--ease-out) both; }
.scroll-line { width: 60px; height: 1px; background: rgba(255,255,255,0.3); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: var(--brand-blue); animation: scrollLine 2s 1.5s ease-in-out infinite; }
@keyframes scrollLine { 0% { left: -100%; } 50% { left: 0%; } 100% { left: 100%; } }

/* ─── MARQUEE ─── */
.marquee-section { background: var(--brand-blue); padding: 18px 0; overflow: hidden; }
.marquee-track { display: flex; animation: marquee 25s linear infinite; white-space: nowrap; }
.marquee-item { font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: 4px; color: rgba(255,255,255,0.85); padding: 0 40px; display: flex; align-items: center; gap: 40px; }
.marquee-item::after { content: '◆'; font-size: 8px; color: rgba(255,255,255,0.5); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── INTRO STRIP ─── */
.intro-section { padding: 80px 0; background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; align-items: center; }
.intro-label { font-size: 11px; letter-spacing: 5px; text-transform: uppercase; color: var(--brand-blue); font-weight: 700; margin-bottom: 24px; display: flex; align-items: center; gap: 14px; }
.intro-label::before { content: ''; width: 30px; height: 1.5px; background: var(--brand-blue); }
.intro-heading { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.8rem, 4.5vw, 4.5rem); line-height: 0.95; color: var(--black); margin-bottom: 0; }
.intro-heading .line { display: block; }
.intro-heading .line-accent { color: var(--brand-blue); }
.intro-text { font-size: 16px; line-height: 1.7; color: #555; font-weight: 300; margin-bottom: 24px; }
.intro-features { display: flex; flex-direction: column; gap: 12px; }
.feature-row { display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.feature-row::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-blue); }

/* ─── CARDS SECTION ─── */
.section-cards { padding: 90px 0; background: #080808; color: var(--white); position: relative; overflow: hidden; }
.section-cards::before { content: 'ECOVEX'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: 'Bebas Neue', sans-serif; font-size: clamp(8rem, 18vw, 22rem); color: rgba(255,255,255,0.02); pointer-events: none; letter-spacing: 10px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
.section-title-label { font-size: 11px; letter-spacing: 5px; text-transform: uppercase; color: var(--brand-blue); font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.section-title-label::before { content: ''; width: 30px; height: 1.5px; background: var(--brand-blue); }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.5rem, 4vw, 4rem); line-height: 0.95; }
.section-subtitle { font-size: 14px; color: var(--text-muted); max-width: 360px; line-height: 1.6; text-align: right; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.card { background: #111; display: flex; flex-direction: column; position: relative; cursor: pointer; }
.card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--brand-blue); transition: width 0.5s var(--ease-out); }
.card:hover::after { width: 100%; }
.card-img-container { width: 100%; height: 320px; overflow: hidden; position: relative; }
.card-img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s, filter 0.8s; filter: grayscale(30%); }
.card:hover .card-img-container img { transform: scale(1.08); filter: grayscale(0%); }
.card-number { position: absolute; top: 20px; right: 20px; font-family: 'Bebas Neue', sans-serif; font-size: 4rem; color: rgba(255,255,255,0.1); line-height: 1; }
.card-body { padding: 28px 28px 32px; flex-grow: 1; display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,0.05); }
.card-body h2 { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; font-weight: 400; margin-bottom: 18px; line-height: 1; }
.card-body p { font-size: 14px; color: #999; margin-bottom: 24px; line-height: 1.65; flex-grow: 1; font-weight: 300; }
.card-btns { display: flex; flex-direction: column; gap: 10px; }
.btn { padding: 16px 20px; text-align: center; text-decoration: none; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; transition: all 0.3s; }
.btn-blue { background: var(--brand-blue); color: var(--white); }
.btn-blue:hover { background: var(--brand-blue-dark); }
.btn-outline { border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.6); }
.btn-outline:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

/* ─── CATALOG PREVIEW ─── */
.catalog-preview-section { padding: 80px 0; background: #111; }
.catalog-preview-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; background: #1a1a1a; border: 1px solid rgba(0, 174, 239, 0.15); border-radius: 16px; padding: 48px; position: relative; overflow: hidden; }
.catalog-preview-wrapper::before { content: ''; position: absolute; top: -100px; left: -100px; width: 300px; height: 300px; background: rgba(0, 174, 239, 0.08); filter: blur(80px); border-radius: 50%; }
.catalog-preview-text { position: relative; z-index: 2; }
.catalog-preview-text p { color: #aaa; margin-bottom: 32px; line-height: 1.7; font-size: 15px; font-weight: 300; }
.catalog-mockup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: perspective(1000px) rotateY(-12deg) rotateX(4deg); transition: transform 0.5s ease; }
.catalog-preview-wrapper:hover .catalog-mockup-grid { transform: perspective(1000px) rotateY(-4deg) rotateX(2deg); }
.catalog-mockup-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; border: 1px solid #333; opacity: 0.9; transition: opacity 0.3s; }
.catalog-preview-wrapper:hover .catalog-mockup-grid img { opacity: 1; }
.catalog-mockup-grid img:nth-child(2) { transform: translateY(-20px); }
.btn-catalog-animated { display: inline-flex; align-items: center; gap: 12px; background: linear-gradient(90deg, #00AEEF, #007bb5, #00AEEF); background-size: 200% 100%; color: #fff; text-decoration: none; padding: 18px 32px; border-radius: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; animation: bg-shift 4s infinite linear; }
@keyframes bg-shift { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

/* ─── TRUST SECTION ─── */
.trust-section { padding: 80px 0; background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; max-width: 1000px; margin: 0 auto; }
.trust-card { padding: 36px 28px; background: var(--white); border: 1px solid var(--border-light); transition: transform 0.4s; position: relative; overflow: hidden; }
.trust-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--brand-blue); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out); }
.trust-card:hover { border-color: transparent; transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,174,239,0.08); }
.trust-card:hover::before { transform: scaleX(1); }
.trust-icon { font-size: 1.8rem; margin-bottom: 16px; display: block; }
.trust-card h3 { font-size: 15px; font-weight: 800; text-transform: uppercase; margin-bottom: 14px; }
.trust-card p { font-size: 14px; color: #666; line-height: 1.6; font-weight: 300; }

/* ─── CONTACT CTA ─── */
.cta-section { position: relative; min-height: 500px; display: flex; align-items: center; }
.cta-bg { position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?q=80&w=1973&auto=format&fit=crop') center/cover no-repeat; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.92) 60%, rgba(0,0,0,0.6) 100%); }
.cta-content { position: relative; z-index: 2; padding: 70px 60px; max-width: 720px; }
.cta-content .section-title { color: var(--white); margin-bottom: 24px; }
.cta-content p { font-size: 16px; color: rgba(255,255,255,0.65); font-weight: 300; line-height: 1.65; margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 16px; }
.btn-cta-primary { padding: 20px 52px; background: var(--brand-blue); color: var(--white); font-weight: 700; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; text-decoration: none; transition: background 0.3s, transform 0.3s; }
.btn-cta-primary:hover { background: var(--brand-blue-dark); transform: translateY(-2px); }
.btn-cta-secondary { padding: 20px 52px; background: transparent; color: var(--white); font-weight: 700; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; text-decoration: none; border: 1px solid rgba(255,255,255,0.3); transition: border-color 0.3s, color 0.3s; }
.btn-cta-secondary:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

/* ─── UBICACIÓN ─── */
.ubicacion-section { background: #080808; position: relative; }
.ubicacion-grid { display: grid; grid-template-columns: 420px 1fr; min-height: 600px; }
.ubicacion-info { padding: 90px 60px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid rgba(255,255,255,0.06); position: relative; z-index: 1; }
.ubicacion-info::before { content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 100%; background: var(--brand-blue); }
.ubicacion-dato { display: flex; gap: 20px; align-items: flex-start; margin-top: 36px; }
.ubicacion-icon { font-size: 1.2rem; margin-top: 2px; }
.ubicacion-dato strong { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--brand-blue); font-weight: 700; margin-bottom: 6px; }
.ubicacion-dato div { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.8; }
.ubicacion-dato a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.3s; }
.ubicacion-dato a:hover { color: var(--brand-blue); }
.ubicacion-mapa { position: relative; min-height: 600px; }
.ubicacion-mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapa-badge { position: absolute; bottom: 30px; left: 30px; background: rgba(0,0,0,0.88); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); border-left: 2px solid var(--brand-blue); padding: 16px 24px; display: flex; align-items: center; gap: 14px; z-index: 10; }
.mapa-badge strong { display: block; color: var(--white); font-size: 13px; font-weight: 700; }
.mapa-badge span { font-size: 12px; color: rgba(255,255,255,0.45); }

/* ─── FOOTER & REDES SOCIALES (LIMPIO Y CENTRADO) ─── */
.footer { background: #050505; padding: 100px 0 0; color: var(--white); }
.footer-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 80px; max-width: 1000px; margin: 0 auto; padding-bottom: 80px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-col-brand { max-width: 300px; }
.footer-logo img { height: 60px; margin-bottom: 28px; display: block; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.7; font-weight: 300; margin-bottom: 32px; }
.footer-col h4 { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--brand-blue); font-weight: 700; margin-bottom: 28px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: var(--brand-blue); }
.footer-address { font-size: 14px; line-height: 1.9; color: rgba(255,255,255,0.45); font-weight: 300; }
.footer-address strong { color: rgba(255,255,255,0.75); font-weight: 600; display: block; margin-bottom: 4px; font-size: 13px; }

/* Contenedor y Botones Sociales */
.footer-social { display: flex; gap: 15px; margin-top: 15px; }
.social-btn {
    width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 22px; transition: transform 0.3s ease; color: #ffffff;
}
.social-btn i { color: #ffffff; }
.social-btn:hover { transform: scale(1.1); }
.bg-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.bg-wa { background-color: #25D366; }
.bg-fb { background-color: #1877F2; }

.footer-bottom { padding: 28px 0; display: flex; align-items: center; justify-content: center; margin-top: 48px; }
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,0.25); letter-spacing: 0.5px; text-align: center; }

/* ─── HAMBURGER & MOBILE MENU ─── */
.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: 1px solid var(--border-light); cursor: pointer; padding: 10px; border-radius: 2px; margin-left: auto; }
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--black); transition: all 0.35s ease; transform-origin: center; }

@media (max-width: 1024px) {
    .main-nav { display: none !important; }
    .header-right { display: none !important; }
    .hamburger { display: flex; }
    .logo { position: absolute; left: 50%; transform: translateX(-50%); }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE MOBILE — versión limpia y definitiva
   ════════════════════════════════════════════════════════════════ */

/* ─── CAROUSEL CONTROLS — styled para ambos carruseles ─── */
.carousel-controls {
    display: none; /* oculto en desktop */
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}
.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.18);
    background: transparent;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
    line-height: 1;
}
.carousel-btn:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    transform: scale(1.08);
}
/* Trust section botones (fondo blanco) */
#trustCarouselControls .carousel-btn {
    border-color: rgba(0,0,0,0.15);
    color: var(--black);
}
#trustCarouselControls .carousel-btn:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: var(--white);
}
.carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}
.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
    background: var(--brand-blue);
    transform: scale(1.3);
}
#trustCarouselControls .carousel-dot {
    background: rgba(0,0,0,0.18);
}
#trustCarouselControls .carousel-dot.active {
    background: var(--brand-blue);
}

/* ─── MEGA MENU: texto sin herencias raras ─── */
.mega-col p {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
}

/* ─── HAMBURGER ─── */
.hamburger { 
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1.5px solid rgba(0,0,0,0.15);
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--black);
    border-radius: 2px;
    transition: transform 0.32s ease, opacity 0.25s ease;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MOBILE MENU — panel deslizante oscuro ─── */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 88vw);
    height: 100dvh;
    background: #0a0a0a;
    z-index: 1050;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    border-left: 3px solid var(--brand-blue);
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}
.mobile-menu.open { right: 0; }

/* Inner layout */
.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 80px 0 32px;
}

/* Nav links */
.mobile-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 24px;
}

/* Link simple */
.mobile-nav-link {
    display: block;
    padding: 16px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--brand-blue); }

/* Grupo con desplegable */
.mobile-nav-group { border-bottom: 1px solid rgba(255,255,255,0.07); }

/* Botón título del grupo */
.mobile-nav-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
    font-family: inherit;
}
.mobile-nav-title:hover,
.mobile-nav-title.open { color: var(--brand-blue); }

/* Icono + del acordeón */
.mobile-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    font-size: 15px;
    line-height: 1;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, transform 0.25s;
}
.mobile-nav-title.open .mobile-arrow {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
    transform: rotate(45deg);
}

/* Sub-links acordeón */
.mobile-nav-sub {
    display: none;
    flex-direction: column;
    padding: 4px 0 12px 14px;
}
.mobile-nav-sub.open { display: flex; }
.mobile-nav-sub a {
    display: block;
    padding: 11px 0;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: color 0.2s, padding-left 0.2s;
}
.mobile-nav-sub a:hover { color: var(--brand-blue); padding-left: 6px; }
.mobile-nav-sub a:last-child { border-bottom: none; }

/* Footer del menú */
.mobile-menu-footer {
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}
.mobile-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    background: var(--brand-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.25s;
    font-family: inherit;
}
.mobile-cta-btn:hover { background: var(--brand-blue-dark); }

/* Backdrop */
.menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.menu-backdrop.visible { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

/* ─── GLOBAL: overflow ─── */
html, body { overflow-x: hidden; width: 100%; }
img { max-width: 100%; height: auto; }

/* ════════════════════════════════════════════════
   TABLET ≤ 1024px — ocultar nav desktop, mostrar hamburguesa
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .main-nav,
    .header-right { display: none !important; }
    .hamburger { display: flex; }

    /* Logo centrado con el hamburger a la derecha */
    .navbar {
        position: relative;
        padding: 0 20px;
        justify-content: flex-start;
    }
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 5;
    }
    .logo img { height: 58px; }
    .hamburger { margin-left: auto; }
}

/* ════════════════════════════════════════════════
   MÓVIL ≤ 768px
   ════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* CONTAINER */
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    /* HEADER */
    .header { height: 68px; }
    .header.scrolled { height: 60px; }
    .logo img { height: 46px; }

    /* SECTION CARDS — header centrado */
    .section-cards .section-header {
        text-align: center;
        align-items: center;
    }
    .section-cards .section-title { text-align: center; }
    .section-cards .section-subtitle { text-align: center; }

    /* HERO */
    .hero { margin-top: 68px; min-height: calc(100dvh - 68px); }
    .hero-content {
        text-align: center;
        padding: 40px 20px 60px;
        max-width: 100%;
    }
    .hero-eyebrow { justify-content: center; font-size: 10px; }
    .hero-eyebrow::before { display: none; }
    .hero-title { font-size: clamp(2.4rem, 10vw, 3.4rem); line-height: 1.05; }
    .hero-subtitle { font-size: 15px; margin: 16px auto 32px; max-width: 92%; }
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .hero-actions a { width: 100%; max-width: 300px; text-align: center; }
    .hero-scroll { display: none; }

    /* SECTION TITLES */
    .section-title { font-size: clamp(2rem, 9vw, 2.8rem) !important; }
    .section-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .section-subtitle { text-align: center; max-width: 100%; }

    /* INTRO */
    .intro-section { padding: 60px 0; }
    .intro-grid { grid-template-columns: 1fr !important; gap: 36px; }
    .intro-heading { font-size: clamp(2.2rem, 9vw, 2.8rem); }
    .intro-text { font-size: 15px; }

    /* CARDS SECTION — carousel */
    .section-cards { padding: 60px 0; }
    .carousel-wrapper { overflow: hidden; position: relative; }
    .cards-grid {
        display: flex !important;
        flex-wrap: nowrap;
        transition: transform 0.42s cubic-bezier(0.4,0,0.2,1);
        width: 100%;
        grid-template-columns: unset !important;
    }
    .card { flex: 0 0 100%; min-width: 100%; }
    .card-img-container { height: 260px; }
    .card-body h2 { font-size: 1.8rem; }
    .card-body p { font-size: 14px; }
    .card-btns { flex-direction: column; gap: 8px; }
    .card-btns a { text-align: center; }
    .carousel-controls { display: flex !important; }

    /* CATALOG PREVIEW */
    .catalog-preview-section { padding: 50px 0; }
    .catalog-preview-wrapper {
        grid-template-columns: 1fr !important;
        gap: 32px;
        padding: 32px 24px;
    }
    .catalog-preview-text { text-align: center; }
    .catalog-mockup-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        transform: none !important;
        width: 100%;
    }
    .catalog-mockup-grid img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        aspect-ratio: unset;
    }
    .catalog-mockup-grid img:nth-child(2) { transform: none; }
    .catalog-mockup-grid img:nth-child(3) { display: none; } /* 3 col → 2 col */

    /* TRUST / NUESTRA DIFERENCIA */
    .trust-section { padding: 60px 0; }
    .trust-section > .container > div:first-child { text-align: center; }
    .trust-carousel-wrapper { overflow: hidden; position: relative; }
    .trust-grid {
        display: flex !important;
        flex-wrap: nowrap;
        transition: transform 0.42s cubic-bezier(0.4,0,0.2,1);
    }
    .trust-card { flex: 0 0 100%; min-width: 100%; }
    #trustCarouselControls { display: flex !important; }

    /* UBICACION */
    .ubicacion-grid {
        grid-template-columns: 1fr !important;
        min-height: unset;
    }
    .ubicacion-info {
        padding: 52px 24px 40px;
        border-right: none;
        text-align: center;
        align-items: center;
    }
    .ubicacion-info::before { display: none; }
    .ubicacion-dato {
        justify-content: center;
        text-align: left;
    }
    .ubicacion-mapa { min-height: 320px; height: 320px; }
    .mapa-badge { left: 50%; transform: translateX(-50%); white-space: nowrap; }

    /* CTA */
    .cta-content { padding: 60px 20px; text-align: center; }
    .cta-content p { max-width: 92%; margin-left: auto; margin-right: auto; }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .cta-buttons a { width: 100%; max-width: 300px; text-align: center; }

    /* FOOTER */
    .footer { padding-top: 56px; }
    .footer-grid {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 40px;
        max-width: 100%;
        padding: 0 20px 40px;
    }
    .footer-col-brand { max-width: 100%; display: flex; flex-direction: column; align-items: center; }
    .footer-logo img { margin-bottom: 16px; }
    .footer-col { width: 100%; }
    .footer-col h4 { text-align: center; }
    .footer-links { align-items: center; }
    .footer-social { justify-content: center; }
    .footer-address { text-align: center; }
    .footer-bottom { margin-top: 10px; padding: 20px 0; }
}

/* ════════════════════════════════════════════════
   TABLET INTERMEDIA 769px – 1024px
   ════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
    .container { padding: 0 32px; }
    .hero-title { font-size: clamp(3rem, 7vw, 5rem); }
    .intro-grid { grid-template-columns: 1fr 1fr !important; gap: 48px; }
    .cards-grid { grid-template-columns: 1fr 1fr !important; }
    .card { flex: unset; min-width: unset; }
    .catalog-preview-wrapper { grid-template-columns: 1fr !important; }
    .catalog-mockup-grid { transform: none !important; }
    .catalog-mockup-grid img:nth-child(2) { transform: none; }
    .ubicacion-grid { grid-template-columns: 380px 1fr !important; }
    .footer-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        max-width: 700px !important;
        gap: 48px;
    }
}

/* ════════════════════════════════════════════════
   DESKTOP — FOOTER centrado y ordenado
   ════════════════════════════════════════════════ */
@media (min-width: 1025px) {
    .footer-grid {
        display: flex;
        justify-content: center;
        gap: 80px;
        max-width: 900px;
        margin: 0 auto;
        padding-bottom: 48px;
    }
    .footer-col-brand { max-width: 260px; }
    .mobile-menu, .menu-backdrop { display: none !important; }
    .carousel-controls, #trustCarouselControls { display: none !important; }
}