:root {
    --orange: #FF5500;
    --orange-mid: #FF6B1A;
    --orange-light: #FF8433;
    --orange-glow: rgba(255, 85, 0, 0.25);
    --black: #080808;
    --dark: #101010;
    --dark-2: #181818;
    --dark-3: #202020;
    --gray: #888;
    --gray-light: #aaa;
    --white: #F2F2F2;

    /* design tokens (v2 polish) */
    --grad-orange: linear-gradient(135deg, #FF8433 0%, #FF5500 52%, #DB3B00 100%);
    --grad-orange-soft: linear-gradient(135deg, rgba(255,132,51,0.18), rgba(219,59,0,0.06));
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-card: 0 28px 70px rgba(0,0,0,0.6);
    --shadow-orange: 0 14px 44px rgba(255,85,0,0.4);
    --hairline: rgba(255,255,255,0.07);
    --grid-line: rgba(255,255,255,0.022);
}

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

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

body {
    font-family: 'Barlow', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
}

/* ─── NOISE OVERLAY ─── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ════════════════════════
   NAVBAR
════════════════════════ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.2rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(8,8,8,0.92);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,85,0,0.15);
    padding: 0.9rem 3rem;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.9rem;
    letter-spacing: 3px;
    color: var(--white);
    text-decoration: none;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.logo-mark { width: 32px; height: 32px; display: block; flex-shrink: 0; }
.logo .logo-text span { color: var(--orange); }

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}
.nav-links a {
    color: rgba(242,242,242,0.65);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
    background: var(--orange) !important;
    color: var(--black) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
}
.nav-cta:hover {
    background: var(--orange-light) !important;
    box-shadow: 0 4px 20px var(--orange-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile menu */
#mobileMenu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}
#mobileMenu.open { display: flex; }
#mobileMenu a {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    letter-spacing: 3px;
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}
#mobileMenu a:hover { color: var(--orange); }
.menu-close {
    position: absolute;
    top: 1.5rem; right: 2rem;
    background: none; border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* Floating call button */
.float-call {
    position: fixed;
    bottom: 2rem; right: 2rem;
    z-index: 90;
    background: var(--orange);
    color: var(--black);
    width: 58px; height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 30px rgba(255,85,0,0.5);
    transition: all 0.3s;
    animation: float-pulse 3s ease-in-out infinite;
}
.float-call:hover { transform: scale(1.1); box-shadow: 0 10px 40px rgba(255,85,0,0.7); }
.float-call svg { width: 24px; height: 24px; stroke: var(--black); fill: none; stroke-width: 2.5; }
@keyframes float-pulse {
    0%,100% { box-shadow: 0 6px 30px rgba(255,85,0,0.5); }
    50% { box-shadow: 0 6px 50px rgba(255,85,0,0.8); }
}

/* ════════════════════════
   HERO
════════════════════════ */
#hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-left {
    position: absolute;
    inset: 0;
    background: var(--black);
}

.hero-panel {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 46%;
    background: linear-gradient(160deg, #FF6000 0%, #CC2200 100%);
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
    overflow: hidden;
}
.hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(0,0,0,0.08) 20px,
        rgba(0,0,0,0.08) 21px
    );
}
.hero-panel::after {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,150,0,0.4) 0%, transparent 70%);
}

.hero-glow {
    position: absolute;
    left: -200px; top: 50%;
    transform: translateY(-50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255,85,0,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5rem;
    padding-top: 100px;
    max-width: 680px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,85,0,0.12);
    border: 1px solid rgba(255,85,0,0.35);
    color: var(--orange);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}
.badge-dot {
    width: 7px; height: 7px;
    background: var(--orange);
    border-radius: 50%;
    animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4.5rem, 9.5vw, 9rem);
    line-height: 0.9;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 1.75rem;
}
.hero-title .orange { color: var(--orange); display: block; }

.hero-sub {
    font-size: 1.05rem;
    color: rgba(242,242,242,0.6);
    line-height: 1.7;
    max-width: 460px;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-tel-wrap { margin-bottom: 0.4rem; }

.hero-tel {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    letter-spacing: 5px;
    color: var(--orange);
    text-decoration: none;
    transition: text-shadow 0.3s;
    line-height: 1;
}
.hero-tel:hover { text-shadow: 0 0 40px rgba(255,85,0,0.6); }

.hero-tel-label {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 2.2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: var(--black);
    padding: 1rem 2.4rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-primary:hover {
    background: var(--orange-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255,85,0,0.45);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--white);
    padding: 1rem 2.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

.hero-stats { display: flex; gap: 2.5rem; }
.stat { border-left: 3px solid var(--orange); padding-left: 1rem; }
.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--white);
}
.stat-label {
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray);
    line-height: 1.4;
    margin-top: 2px;
}

.scroll-hint {
    position: absolute;
    bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: rgba(242,242,242,0.3);
    font-size: 0.65rem; letter-spacing: 3px; text-transform: uppercase;
    animation: nudge 2.2s ease-in-out infinite;
}
@keyframes nudge { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ════════════════════════
   SHARED SECTION STYLES
════════════════════════ */
section { position: relative; }

.section-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.section-head { text-align: center; margin-bottom: 4rem; }

.eyebrow {
    display: inline-block;
    color: var(--orange);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    line-height: 1;
    letter-spacing: 2px;
}
.section-title span { color: var(--orange); }

.section-desc {
    color: var(--gray);
    font-size: 1rem;
    max-width: 480px;
    margin: 1rem auto 0;
    line-height: 1.7;
}

/* ════════════════════════
   SERVICES
════════════════════════ */
#servicios { padding: 8rem 0; background: var(--dark); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.service-card {
    background: var(--dark-2);
    border: 1px solid rgba(255,255,255,0.055);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}
.service-card::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0; right: 0;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover {
    border-color: rgba(255,85,0,0.25);
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 50px rgba(255,85,0,0.08);
}
.service-card:hover::after { transform: scaleX(1); }

.svc-num {
    position: absolute;
    top: 1.5rem; right: 1.75rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    color: rgba(255,255,255,0.025);
    line-height: 1;
    transition: color 0.4s;
}
.service-card:hover .svc-num { color: rgba(255,85,0,0.07); }

.svc-icon {
    width: 62px; height: 62px;
    background: rgba(255,85,0,0.1);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s;
}
.service-card:hover .svc-icon {
    background: rgba(255,85,0,0.22);
    box-shadow: 0 0 25px rgba(255,85,0,0.25);
}
.svc-icon svg { width: 30px; height: 30px; stroke: var(--orange); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.svc-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.75rem;
}
.svc-desc { color: var(--gray); font-size: 0.9rem; line-height: 1.65; }

/* ════════════════════════
   WHY US
════════════════════════ */
#nosotros { padding: 8rem 0; background: var(--black); }

.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 6rem;
    align-items: center;
}

.nosotros-left .section-title { text-align: left; }
.nosotros-left .eyebrow { display: block; }

.nosotros-body {
    color: rgba(242,242,242,0.55);
    font-size: 1rem;
    line-height: 1.8;
    margin: 1.5rem 0 2.5rem;
}

.counters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.counter-box {
    background: var(--dark-2);
    border: 1px solid rgba(255,255,255,0.055);
    border-radius: 16px;
    padding: 1.5rem;
    transition: border-color 0.3s;
}
.counter-box:hover { border-color: rgba(255,85,0,0.3); }
.counter-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.2rem;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 4px;
}
.counter-lbl { color: var(--gray); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; }

.benefits { display: flex; flex-direction: column; gap: 1rem; }

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem;
    background: var(--dark-2);
    border: 1px solid rgba(255,255,255,0.055);
    border-radius: 16px;
    transition: all 0.3s;
}
.benefit:hover { border-color: rgba(255,85,0,0.25); transform: translateX(6px); }

.benefit-ico {
    width: 46px; height: 46px; min-width: 46px;
    background: var(--orange);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.benefit-ico svg { width: 22px; height: 22px; stroke: var(--black); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.benefit-body h4 { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.benefit-body p { color: var(--gray); font-size: 0.85rem; line-height: 1.55; }

/* ════════════════════════
   GALLERY
════════════════════════ */
#galeria { padding: 8rem 0; background: var(--dark); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 240px 220px;
    gap: 1rem;
}
.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.gallery-item:nth-child(1) { grid-column: span 2; }
.gallery-item:nth-child(5) { grid-column: span 2; }

.gal-bg { position: absolute; inset: 0; transition: transform 0.6s ease; }
.gallery-item:hover .gal-bg { transform: scale(1.06); }

.gal-bg-1 { background: linear-gradient(135deg, #0d0500 0%, #2a0e00 40%, #FF4400 100%); }
.gal-bg-2 { background: linear-gradient(135deg, #00050d 0%, #001a2e 40%, #0066FF 100%); }
.gal-bg-3 { background: linear-gradient(135deg, #050005 0%, #1a0030 40%, #8800FF 100%); }
.gal-bg-4 { background: linear-gradient(135deg, #050a00 0%, #0a2000 40%, #22AA00 100%); }
.gal-bg-5 { background: linear-gradient(135deg, #0d0400 0%, #330a00 40%, #FF2200 100%); }
.gal-bg-6 { background: linear-gradient(135deg, #000a0d 0%, #001a2a 40%, #00AAFF 100%); }

.gal-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 40%);
}

.gal-icon {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0.75rem;
}
.gal-icon-wrap {
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.gal-icon-wrap svg { width: 26px; height: 26px; stroke: rgba(255,255,255,0.5); fill: none; stroke-width: 1.5; stroke-linecap: round; }
.gal-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.35);
}

.gal-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    display: flex; align-items: flex-end;
    padding: 1.5rem;
}
.gallery-item:hover .gal-overlay { opacity: 1; }
.gal-overlay-text { transform: translateY(10px); transition: transform 0.4s; }
.gallery-item:hover .gal-overlay-text { transform: translateY(0); }
.gal-overlay-text h4 { font-weight: 700; font-size: 0.95rem; color: var(--white); }
.gal-overlay-text span { font-size: 0.78rem; color: var(--orange); }

/* ════════════════════════
   COVERAGE
════════════════════════ */
#cobertura { padding: 8rem 0; background: var(--black); }

.cobertura-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.cobertura-visual { display: flex; align-items: center; justify-content: center; }

.radar {
    width: 380px; height: 380px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.radar-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,85,0,0.15);
}
.radar-ring:nth-child(1) { width: 100%; height: 100%; animation: radar-pulse 3s ease-in-out infinite 0s; }
.radar-ring:nth-child(2) { width: 72%; height: 72%; animation: radar-pulse 3s ease-in-out infinite 0.3s; }
.radar-ring:nth-child(3) { width: 46%; height: 46%; animation: radar-pulse 3s ease-in-out infinite 0.6s; }
@keyframes radar-pulse {
    0%,100% { border-color: rgba(255,85,0,0.15); }
    50% { border-color: rgba(255,85,0,0.4); }
}

.radar-sweep {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: conic-gradient(rgba(255,85,0,0.15) 0deg, transparent 70deg, transparent 360deg);
    animation: radar-sweep 4s linear infinite;
}
@keyframes radar-sweep { from{transform:rotate(0)} to{transform:rotate(360deg)} }

.radar-center {
    position: relative;
    width: 100px; height: 100px;
    background: var(--dark-2);
    border: 2px solid rgba(255,85,0,0.4);
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 2;
}
.radar-center svg { width: 30px; height: 30px; stroke: var(--orange); fill: none; stroke-width: 1.8; }
.radar-center-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--orange);
    margin-top: 2px;
}

.radar-dot {
    position: absolute;
    width: 10px; height: 10px;
    background: var(--orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--orange);
    animation: dot-blink 2s ease-in-out infinite;
}
.radar-dot:nth-child(4)  { top: 8%;   left: 38%; animation-delay: 0s; }
.radar-dot:nth-child(5)  { top: 38%;  right: 6%; animation-delay: 0.5s; }
.radar-dot:nth-child(6)  { bottom: 12%; left: 20%; animation-delay: 1s; }
.radar-dot:nth-child(7)  { bottom: 30%; right: 18%; animation-delay: 1.5s; }
.radar-dot:nth-child(8)  { top: 25%;  left: 8%;  animation-delay: 0.8s; }
@keyframes dot-blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.3;transform:scale(0.5)} }

.zones { display: flex; flex-direction: column; gap: 0.75rem; }

.zone {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.1rem 1.4rem;
    background: var(--dark-2);
    border: 1px solid rgba(255,255,255,0.055);
    border-radius: 12px;
    transition: all 0.3s;
}
.zone:hover { border-color: rgba(255,85,0,0.3); background: var(--dark-3); }
.zone-dot { width: 9px; height: 9px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 7px var(--orange); flex-shrink: 0; }
.zone-name { font-weight: 600; font-size: 0.95rem; color: var(--white); }
.zone-tag { margin-left: auto; background: rgba(255,85,0,0.12); color: var(--orange); padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; }

.cobertura-cta { margin-top: 2rem; }

/* ════════════════════════
   FAQ
════════════════════════ */
#faq { padding: 8rem 0; background: var(--dark); }

.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-item {
    background: var(--dark-2);
    border: 1px solid rgba(255,255,255,0.055);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(255,85,0,0.3); }

.faq-q {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.4rem 1.75rem;
    cursor: pointer;
    user-select: none;
    gap: 1rem;
}
.faq-q h4 { font-weight: 600; font-size: 0.97rem; color: var(--white); line-height: 1.4; }

.faq-toggle {
    width: 30px; height: 30px; min-width: 30px;
    background: rgba(255,85,0,0.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.faq-toggle svg { width: 14px; height: 14px; stroke: var(--orange); fill: none; stroke-width: 2.5; transition: transform 0.3s; }
.faq-item.open .faq-toggle { background: var(--orange); }
.faq-item.open .faq-toggle svg { stroke: var(--black); transform: rotate(45deg); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-a { max-height: 260px; }

.faq-a-inner {
    padding: 0 1.75rem 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.25rem;
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.75;
}

/* ════════════════════════
   CONTACT
════════════════════════ */
#contacto { padding: 8rem 0; background: var(--black); }

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 6rem;
    align-items: start;
}

.contact-left .section-title { text-align: left; font-size: clamp(2.5rem, 4.5vw, 4.2rem); }
.contact-left .eyebrow { display: block; }
.contact-left p { color: rgba(242,242,242,0.55); line-height: 1.75; margin: 1.25rem 0 2.5rem; }

.contact-details { display: flex; flex-direction: column; gap: 1.1rem; }
.cdet { display: flex; align-items: center; gap: 1rem; }
.cdet-ico {
    width: 44px; height: 44px; min-width: 44px;
    background: rgba(255,85,0,0.12);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
}
.cdet-ico svg { width: 20px; height: 20px; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; }
.cdet-text span { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); }
.cdet-text strong { font-size: 0.97rem; color: var(--white); font-weight: 600; }

.contact-form {
    background: var(--dark-2);
    border: 1px solid rgba(255,255,255,0.055);
    border-radius: 24px;
    padding: 2.5rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.fgrp { margin-bottom: 1rem; }
.fgrp label {
    display: block;
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: rgba(242,242,242,0.45);
    margin-bottom: 0.45rem;
}
.fgrp input,
.fgrp select,
.fgrp textarea {
    width: 100%;
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    color: var(--white);
    font-family: 'Barlow', sans-serif;
    font-size: 0.93rem;
    transition: all 0.3s;
    outline: none;
    -webkit-appearance: none;
}
.fgrp input:focus, .fgrp select:focus, .fgrp textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255,85,0,0.08);
}
.fgrp input::placeholder, .fgrp textarea::placeholder { color: rgba(255,255,255,0.18); }
.fgrp select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    color: rgba(255,255,255,0.5);
}
.fgrp select option { background: #202020; color: var(--white); }
.fgrp select.has-value { color: var(--white); }
.fgrp textarea { resize: vertical; min-height: 110px; }

.form-submit {
    width: 100%;
    padding: 1.05rem;
    background: var(--orange);
    color: var(--black);
    border: none;
    border-radius: 50px;
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}
.form-submit:hover:not(:disabled) {
    background: var(--orange-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,85,0,0.4);
}
.form-submit:disabled { opacity: 0.7; cursor: default; }

.form-note { text-align: center; color: var(--gray); font-size: 0.78rem; margin-top: 1rem; }

/* ════════════════════════
   FOOTER
════════════════════════ */
footer {
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.055);
    padding: 4rem 3rem 2.5rem;
}

.footer-wrap { max-width: 1200px; margin: 0 auto; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.055);
    margin-bottom: 2rem;
}

.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; letter-spacing: 3px; color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.footer-logo .logo-mark { width: 38px; height: 38px; }
.footer-logo .logo-text span { color: var(--orange); }
.footer-brand p { color: rgba(242,242,242,0.45); font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.5rem; }

.socials { display: flex; gap: 0.6rem; }
.social-btn {
    width: 38px; height: 38px;
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray); text-decoration: none;
    transition: all 0.3s;
}
.social-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--black); }
.social-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.footer-col h4 { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--white); margin-bottom: 1.4rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a { color: rgba(242,242,242,0.45); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: rgba(242,242,242,0.3); font-size: 0.82rem; }
.footer-bottom span { color: var(--orange); }

/* ════════════════════════
   FADE-IN ANIMATIONS
════════════════════════ */
.fade {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade.show { opacity: 1; transform: translateY(0); }
.fade-d1 { transition-delay: 0.1s; }
.fade-d2 { transition-delay: 0.2s; }
.fade-d3 { transition-delay: 0.3s; }
.fade-d4 { transition-delay: 0.4s; }
.fade-d5 { transition-delay: 0.5s; }
.fade-d6 { transition-delay: 0.6s; }

/* ════════════════════════
   RESPONSIVE
════════════════════════ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2,1fr); }
    .nosotros-grid { grid-template-columns: 1fr; gap: 3rem; }
    .cobertura-wrap { grid-template-columns: 1fr; gap: 3rem; }
    .cobertura-visual { display: none; }
    .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-rows: 220px 200px 200px; }
    .gallery-item:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 768px) {
    #navbar { padding: 1rem 1.5rem; }
    #navbar.scrolled { padding: 0.75rem 1.5rem; }
    .nav-links { display: none; }
    .hamburger { display: flex; }

    .hero-content { padding: 0 1.5rem; padding-top: 90px; }
    .hero-panel { display: none; }
    .hero-glow { left: -50px; width: 100vw; }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; }

    .section-wrap { padding: 0 1.5rem; }

    #servicios, #nosotros, #galeria, #cobertura, #faq, #contacto { padding: 5rem 0; }

    .services-grid { grid-template-columns: 1fr; }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 180px);
    }
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(5) { grid-column: span 1; }

    .form-row { grid-template-columns: 1fr; }

    footer { padding: 3rem 1.5rem 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .float-call { bottom: 1.5rem; right: 1.5rem; }
}

/* ════════════════════════
   NAV ACTIVE STATE
════════════════════════ */
.nav-links a.active { color: var(--orange); }

/* ════════════════════════
   SERVICE CARD AS LINK
════════════════════════ */
a.service-card { text-decoration: none; color: inherit; display: block; }
.svc-more {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 1.25rem;
    color: var(--orange);
    font-size: 0.76rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px;
}
.svc-more svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s; }
.service-card:hover .svc-more svg { transform: translateX(4px); }

/* ════════════════════════
   PAGE HERO (páginas internas)
════════════════════════ */
.page-hero {
    position: relative;
    padding: 12rem 0 5rem;
    background: radial-gradient(circle at 78% 25%, rgba(255,85,0,0.10), transparent 55%), var(--black);
    border-bottom: 1px solid rgba(255,255,255,0.055);
    overflow: hidden;
}
.page-hero .section-wrap { position: relative; z-index: 2; }

.breadcrumb {
    display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--gray); margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--gray); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { color: rgba(255,255,255,0.2); }
.breadcrumb .current { color: var(--orange); }

.page-hero .hero-icon {
    width: 78px; height: 78px;
    background: rgba(255,85,0,0.1);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
}
.page-hero .hero-icon svg { width: 38px; height: 38px; stroke: var(--orange); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.page-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.92; letter-spacing: 2px;
    color: var(--white);
}
.page-hero h1 span { color: var(--orange); }

.page-lead {
    color: rgba(242,242,242,0.6);
    font-size: 1.08rem; line-height: 1.75;
    max-width: 580px; margin-top: 1.5rem;
}

.page-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; align-items: center; }

/* ════════════════════════
   SERVICE DETAIL BODY
════════════════════════ */
.service-body { padding: 7rem 0; background: var(--dark); }

.service-intro { max-width: 780px; margin: 0 auto 3.5rem; text-align: center; }
.service-intro h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    letter-spacing: 1.5px; line-height: 1.05; margin-bottom: 1.25rem;
}
.service-intro h2 span { color: var(--orange); }
.service-intro p { color: var(--gray-light); font-size: 1rem; line-height: 1.85; }

.feature-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1rem; max-width: 940px; margin: 0 auto;
}
.feature {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--dark-2); border: 1px solid rgba(255,255,255,0.055);
    border-radius: 16px; padding: 1.6rem;
    transition: all 0.3s;
}
.feature:hover { border-color: rgba(255,85,0,0.25); transform: translateY(-5px); }
.feature-ico {
    width: 44px; height: 44px; min-width: 44px;
    background: rgba(255,85,0,0.12); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.feature-ico svg { width: 21px; height: 21px; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-text h4 { font-size: 0.98rem; font-weight: 700; color: var(--white); margin-bottom: 0.35rem; }
.feature-text p { color: var(--gray); font-size: 0.87rem; line-height: 1.6; }

/* ════════════════════════
   CTA BAND
════════════════════════ */
.cta-band { padding: 6rem 0; background: var(--black); text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(255,85,0,0.12), transparent 60%);
    pointer-events: none;
}
.cta-band .section-wrap { position: relative; z-index: 2; }
.cta-band h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    letter-spacing: 2px; line-height: 1; margin-bottom: 1rem;
}
.cta-band h2 span { color: var(--orange); }
.cta-band p { color: var(--gray); max-width: 480px; margin: 0 auto 2.2rem; line-height: 1.7; }
.cta-actions { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; align-items: center; }
.cta-tel {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem; letter-spacing: 3px;
    color: var(--orange); text-decoration: none;
}
.cta-tel:hover { text-shadow: 0 0 30px rgba(255,85,0,0.6); }

/* ════════════════════════
   INNER PAGE RESPONSIVE
════════════════════════ */
@media (max-width: 768px) {
    .page-hero { padding: 8.5rem 0 3.5rem; }
    .service-body { padding: 4rem 0; }
    .feature-grid { grid-template-columns: 1fr; }
    .cta-band { padding: 4rem 0; }
}

/* ════════════════════════════════════════════
   AESTHETIC POLISH v2
   Atmósfera, motion de entrada y micro-interacciones.
   Se aplica a las 13 páginas vía el CSS compartido.
════════════════════════════════════════════ */

/* ── Rejilla técnica sutil en secciones oscuras ── */
#servicios, #galeria, #faq, .service-body {
    background-color: var(--dark);
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 72px 72px;
}
.page-hero {
    background-color: var(--black);
    background-image:
        radial-gradient(circle at 78% 18%, rgba(255,85,0,0.14), transparent 52%),
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: auto, 72px 72px, 72px 72px;
}

/* ── Acento de degradado en titulares ── */
.hero-title .orange,
.section-title span,
.page-hero h1 span,
.cta-band h2 span,
.service-intro h2 span,
.counter-num {
    background: var(--grad-orange);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ── Pequeño guion editorial antes del eyebrow ── */
.eyebrow::before {
    content: '';
    display: inline-block;
    width: 22px; height: 2px;
    background: var(--orange);
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 2px;
}

/* ── Barra de progreso de scroll ── */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px; width: 0;
    background: var(--grad-orange);
    box-shadow: 0 0 12px rgba(255,85,0,0.6);
    z-index: 300;
    transition: width 0.08s linear;
}

/* ── Navbar: subrayado animado + sombra al hacer scroll ── */
#navbar.scrolled { box-shadow: 0 10px 40px rgba(0,0,0,0.45); }
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0; bottom: -7px;
    width: 100%; height: 2px;
    background: var(--orange);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.32s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta { background: var(--grad-orange) !important; }
.logo { transition: text-shadow 0.3s; }
.logo:hover { text-shadow: 0 0 28px rgba(255,85,0,0.5); }

/* ── Botones: degradado + barrido de brillo ── */
.btn-primary, .form-submit, .nav-cta {
    background: var(--grad-orange);
    position: relative;
    overflow: hidden;
}
.btn-primary::after, .form-submit::after {
    content: '';
    position: absolute;
    top: 0; left: -130%;
    width: 55%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s var(--ease);
    pointer-events: none;
}
.btn-primary:hover::after, .form-submit:hover:not(:disabled)::after { left: 150%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-orange); }
.btn-ghost { position: relative; overflow: hidden; }
.btn-ghost:hover {
    border-color: var(--orange);
    color: var(--orange);
    box-shadow: 0 0 0 1px rgba(255,85,0,0.25), 0 12px 32px rgba(255,85,0,0.12);
}
.float-call { background: var(--grad-orange); }

/* ── Tarjetas de servicio: profundidad y icono que se enciende ── */
.service-card { background: linear-gradient(180deg, var(--dark-2) 0%, #141414 100%); }
.service-card:hover {
    box-shadow: var(--shadow-card), 0 0 70px rgba(255,85,0,0.1);
    border-color: rgba(255,85,0,0.35);
}
.service-card:hover .svc-icon { background: var(--grad-orange); box-shadow: 0 8px 26px rgba(255,85,0,0.4); }
.service-card:hover .svc-icon svg { stroke: #0a0a0a; }
.feature:hover .feature-ico { background: var(--grad-orange); }
.feature:hover .feature-ico svg { stroke: #0a0a0a; }

/* ── Hero: capas animadas ── */
.hero-panel { background: linear-gradient(160deg, #FF6A00 0%, #C71E00 100%); }
.hero-panel::before { background-size: 200% 200%; animation: stripe-pan 20s linear infinite; }
.hero-panel::after { animation: glow-pulse 5.5s ease-in-out infinite; }
.hero-glow { animation: glow-drift 9s ease-in-out infinite alternate; }
@keyframes stripe-pan { from { background-position: 0 0; } to { background-position: 200% 0; } }
@keyframes glow-pulse { 0%,100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.18); } }
@keyframes glow-drift { from { opacity: 0.65; } to { opacity: 1; transform: translateY(-50%) scale(1.12); } }

/* ── Entrada escalonada en carga (hero + cabeceras internas) ── */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

#hero .hero-content > *,
#hero .scroll-hint,
.page-hero .section-wrap > * {
    opacity: 0;
    animation: rise 0.85s var(--ease-out) forwards;
}
#hero .hero-content > *:nth-child(1) { animation-delay: 0.15s; }
#hero .hero-content > *:nth-child(2) { animation-delay: 0.27s; }
#hero .hero-content > *:nth-child(3) { animation-delay: 0.39s; }
#hero .hero-content > *:nth-child(4) { animation-delay: 0.50s; }
#hero .hero-content > *:nth-child(5) { animation-delay: 0.59s; }
#hero .hero-content > *:nth-child(6) { animation-delay: 0.68s; }
#hero .hero-content > *:nth-child(7) { animation-delay: 0.77s; }
#hero .scroll-hint { animation-delay: 1.05s; }

.page-hero .section-wrap > *:nth-child(1) { animation-delay: 0.08s; }
.page-hero .section-wrap > *:nth-child(2) { animation-delay: 0.18s; }
.page-hero .section-wrap > *:nth-child(3) { animation-delay: 0.28s; }
.page-hero .section-wrap > *:nth-child(4) { animation-delay: 0.38s; }
.page-hero .section-wrap > *:nth-child(5) { animation-delay: 0.48s; }

/* ── Pantallas de poca altura: comprimir el hero para que las
   estadísticas entren sin cortarse ── */
@media (max-height: 860px) and (min-width: 769px) {
    #hero .hero-content { padding-top: 88px; }
    .hero-title { font-size: clamp(3.2rem, 6vw, 5rem); margin-bottom: 1.1rem; }
    .hero-sub { margin-bottom: 1.4rem; }
    .hero-tel { font-size: clamp(2rem, 3.6vw, 3rem); }
    .hero-tel-label { margin-bottom: 1.3rem; }
    .hero-actions { margin-bottom: 1.8rem; }
}

/* ── Botón flotante "Instalar app" + instrucciones iOS ── */
#install-btn {
    position: fixed;
    bottom: 2rem; left: 2rem;
    z-index: 90;
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--dark-2);
    color: var(--white);
    border: 1px solid rgba(255,85,0,0.45);
    padding: 0.7rem 1.15rem;
    border-radius: 50px;
    font-family: 'Barlow', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 10px 34px rgba(0,0,0,0.5);
    transition: all 0.3s var(--ease);
}
#install-btn.show { display: inline-flex; }
#install-btn:hover {
    border-color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(255,85,0,0.25);
}
#install-btn svg {
    width: 18px; height: 18px;
    stroke: var(--orange); fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

#ios-install {
    position: fixed;
    bottom: 5.6rem; left: 2rem;
    z-index: 95;
    max-width: 270px;
    display: none;
    background: var(--dark-2);
    border: 1px solid rgba(255,85,0,0.35);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: 0 16px 44px rgba(0,0,0,0.6);
}
#ios-install.open { display: block; }
#ios-install p { color: var(--gray-light); font-size: 0.85rem; line-height: 1.55; }
#ios-install strong { color: var(--white); }
.ios-close {
    position: absolute; top: 6px; right: 10px;
    background: none; border: none;
    color: var(--gray); font-size: 1rem; cursor: pointer; line-height: 1;
}

@media (max-width: 768px) {
    #install-btn { bottom: 1.5rem; left: 1.5rem; }
    #ios-install { bottom: 5rem; left: 1.5rem; }
}

/* ── Respeto por usuarios con movimiento reducido ── */
@media (prefers-reduced-motion: reduce) {
    #hero .hero-content > *,
    #hero .scroll-hint,
    .page-hero .section-wrap > *,
    .hero-panel::before,
    .hero-panel::after,
    .hero-glow { animation: none !important; opacity: 1 !important; transform: none !important; }
    html { scroll-behavior: auto; }
}
