/* ==========================================================================
   TECNISERVICIOS — style.css
   Diseño premium adaptado a la marca
   ========================================================================== */

/* ------------------------------------------------------------------
   VARIABLES DE MARCA
   ------------------------------------------------------------------ */
:root {
    --dark:       #040e1c;
    --dark-blue:  #0A2540;
    --blue:       #1A5B9C;
    --blue-light: #2A75C3;
    --orange:     #F05E16;
    --orange-dk:  #C94D0F;
    --wa-green:   #25D366;
    --wa-dark:    #128C7E;
    --white:      #FFFFFF;
    --bg-light:   #F4F7FB;
    --bg-white:   #FFFFFF;
    --text:       #1a1a2e;
    --text-muted: #5a6a7a;
    --border:     rgba(26,91,156,0.12);

    --radius-sm:  8px;
    --radius-md:  16px;
    --radius-lg:  24px;
    --radius-xl:  36px;

    --shadow-sm:  0 4px 12px rgba(10,37,64,0.06);
    --shadow-md:  0 12px 32px rgba(10,37,64,0.10);
    --shadow-lg:  0 24px 64px rgba(10,37,64,0.16);
    --shadow-xl:  0 40px 100px rgba(10,37,64,0.22);

    --ease-out:   cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ------------------------------------------------------------------
   RESET Y BASE
   ------------------------------------------------------------------ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', 'Open Sans', sans-serif;
    color: var(--text);
    background: var(--bg-white);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.15;
}

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

ul { list-style: none; }

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ------------------------------------------------------------------
   KEYFRAMES
   ------------------------------------------------------------------ */
@keyframes gradientFlow {
    0%   { background-position: 0% 50%;   }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%;   }
}

@keyframes orbDrift1 {
    0%   { transform: translate(0,0)     scale(1);    }
    33%  { transform: translate(40px,-50px) scale(1.05); }
    66%  { transform: translate(-25px,30px) scale(0.95); }
    100% { transform: translate(0,0)     scale(1);    }
}

@keyframes orbDrift2 {
    0%   { transform: translate(0,0)     scale(1);    }
    40%  { transform: translate(-35px,40px) scale(0.95); }
    70%  { transform: translate(25px,-20px) scale(1.08); }
    100% { transform: translate(0,0)     scale(1);    }
}

@keyframes orbDrift3 {
    0%   { transform: translate(0,0) scale(1);    }
    50%  { transform: translate(20px,-35px) scale(1.06); }
    100% { transform: translate(0,0) scale(1);    }
}

@keyframes chipFloat1 {
    0%, 100% { transform: translateY(0)   rotate(-2deg); }
    50%      { transform: translateY(-12px) rotate(1deg); }
}

@keyframes chipFloat2 {
    0%, 100% { transform: translateY(0)   rotate(2deg); }
    50%      { transform: translateY(-14px) rotate(-1deg); }
}

@keyframes chipFloat3 {
    0%, 100% { transform: translateY(0)   rotate(1deg); }
    50%      { transform: translateY(-10px) rotate(-2deg); }
}

@keyframes chipFloat4 {
    0%, 100% { transform: translateY(0)   rotate(-1deg); }
    50%      { transform: translateY(-16px) rotate(2deg); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(240,94,22,.4), 0 8px 32px rgba(240,94,22,.2); }
    50%      { box-shadow: 0 0 40px rgba(240,94,22,.7), 0 8px 40px rgba(240,94,22,.4); }
}

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

@keyframes badgeDot {
    0%, 100% { opacity: 1; transform: scale(1);   }
    50%      { opacity: .6; transform: scale(1.4); }
}

@keyframes waPulse {
    0%   { box-shadow: 0 0 0 0   rgba(37,211,102,.8), 0 6px 24px rgba(37,211,102,.4); }
    60%  { box-shadow: 0 0 0 18px rgba(37,211,102,0), 0 6px 24px rgba(37,211,102,.4); }
    100% { box-shadow: 0 0 0 0   rgba(37,211,102,0), 0 6px 24px rgba(37,211,102,.4); }
}

@keyframes loaderSpin   { to { transform: rotate(360deg);  } }
@keyframes loaderSpinRv { to { transform: rotate(-360deg); } }
@keyframes loaderPulse  {
    0%, 100% { transform: scale(1);    opacity: 1;  }
    50%      { transform: scale(1.15); opacity: .7; }
}
@keyframes loaderBarFill { from { width: 0; } to { width: 100%; } }

@keyframes ripple {
    to { transform: scale(3); opacity: 0; }
}

/* ------------------------------------------------------------------
   UTILITARIOS
   ------------------------------------------------------------------ */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.accent { color: var(--orange); }

.bg-light  { background: var(--bg-light); }
.bg-white  { background: var(--bg-white); }
.bg-dark   { background: var(--dark-blue); }

/* ------------------------------------------------------------------
   LOADER
   ------------------------------------------------------------------ */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .7s var(--ease-out), visibility .7s;
}

#page-loader.out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.loader-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #fff;
    letter-spacing: 2px;
    animation: loaderPulse 1.8s ease-in-out infinite;
}
.loader-logo span { color: var(--orange); }

.loader-spinner {
    position: relative;
    width: 72px;
    height: 72px;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}
.loader-ring-a {
    border-top-color: var(--orange);
    border-right-color: rgba(240,94,22,.25);
    animation: loaderSpin .9s linear infinite;
}
.loader-ring-b {
    inset: 12px;
    border-bottom-color: var(--blue-light);
    border-left-color: rgba(42,117,195,.25);
    animation: loaderSpinRv .6s linear infinite;
}
.loader-core {
    position: absolute;
    top: 50%; left: 50%;
    width: 10px; height: 10px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%,-50%);
    animation: loaderPulse .9s ease-in-out infinite;
}

.loader-progress-bar {
    width: 180px;
    height: 3px;
    background: rgba(255,255,255,.1);
    border-radius: 10px;
    overflow: hidden;
}
.loader-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--orange));
    border-radius: 10px;
    animation: loaderBarFill 1.8s var(--ease-out) forwards;
}

.loader-caption {
    font-size: .75rem;
    color: rgba(255,255,255,.4);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

/* ------------------------------------------------------------------
   HEADER / NAVBAR
   ------------------------------------------------------------------ */
#main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s ease, background .3s ease;
}

#main-header.scrolled {
    box-shadow: 0 4px 30px rgba(10,37,64,.1);
    background: rgba(255,255,255,.98);
}

/* Nav: 3 columnas — logo | links centrados | toggle */
.nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 14px 0;
    gap: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dark-blue);
    letter-spacing: -.5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-logo strong { color: var(--blue); }
.nav-logo svg { flex-shrink: 0; }

/* Links centrados en columna 2 */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: nowrap;
}

.nav-links a {
    font-weight: 600;
    font-size: .88rem;
    color: var(--text);
    position: relative;
    transition: color .25s ease;
    white-space: nowrap;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--orange);
    transition: width .3s var(--ease-out);
}
.nav-links a:hover { color: var(--orange); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--wa-green);
    color: #fff !important;
    padding: 9px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .82rem;
    transition: transform .3s var(--ease-out), background .3s ease, box-shadow .3s ease !important;
    box-shadow: 0 4px 16px rgba(37,211,102,.35);
    white-space: nowrap;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
    transform: translateY(-2px);
    background: var(--wa-dark) !important;
    box-shadow: 0 6px 20px rgba(37,211,102,.5);
    color: #fff !important;
}

/* Hamburguesa — columna 3, solo en móvil */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    justify-self: end;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--dark-blue);
    border-radius: 2px;
    transition: all .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg);  }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------
   BOTONES
   ------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .5px;
    cursor: pointer;
    border: none;
    transition: transform .3s var(--ease-out), box-shadow .3s ease, background .3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 6px 24px rgba(240,94,22,.35);
    animation: glow 3s ease-in-out infinite;
}
.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 40px rgba(240,94,22,.55);
    background: var(--orange-dk);
}
.btn-primary:active { transform: translateY(-1px) scale(.98); }

.btn-ghost {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 2px solid rgba(255,255,255,.3);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.6);
}

.btn-white {
    background: #fff;
    color: var(--dark-blue);
    box-shadow: var(--shadow-md);
}
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.5);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
    transform: translateY(-3px);
}

.btn-full { width: 100%; }

/* Ripple */
.btn-ripple .ripple-el {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    transform: scale(0);
    animation: ripple .6s ease-out forwards;
    pointer-events: none;
}

/* ------------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------------ */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 80px; /* offset header */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* Fondo degradado animado */
.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #030c17 0%, #0A2540 45%, #1A5B9C 100%);
    background-size: 300% 300%;
    animation: gradientFlow 14s ease infinite;
    z-index: 0;
}

/* Grid de puntos */
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .055;
    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 38px 38px;
}

/* Canvas partículas */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Canvas chispas eléctricas */
#sparks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Orbes */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 1;
}
.orb-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(42,117,195,.35) 0%, transparent 70%);
    top: -200px; right: -150px;
    animation: orbDrift1 20s ease-in-out infinite;
}
.orb-2 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(240,94,22,.2) 0%, transparent 70%);
    bottom: 0; left: -100px;
    animation: orbDrift2 16s ease-in-out infinite;
}
.orb-3 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(26,91,156,.4) 0%, transparent 70%);
    top: 50%; left: 45%;
    animation: orbDrift3 22s ease-in-out infinite;
}

/* Contenido centrado del hero */
.hero-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 0 100px;
    gap: 0;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50px;
    padding: 10px 24px;
    margin-bottom: 28px;
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.92);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}
.hero-badge.in { opacity: 1; transform: translateY(0); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.hero-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
    background-size: 200%;
    animation: shimmer 3.5s ease-in-out infinite;
}

.badge-dot {
    width: 8px; height: 8px;
    background: var(--orange);
    border-radius: 50%;
    flex-shrink: 0;
    animation: badgeDot 1.6s ease-in-out infinite;
}

/* Título — más grande para mayor impacto */
.hero-title {
    font-size: clamp(3rem, 7.5vw, 6.5rem);
    color: #fff;
    line-height: 1.0;
    margin-bottom: 24px;
    max-width: 920px;
}

.hero-title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
}
.hero-title-accent {
    display: block;
    color: var(--orange);
    opacity: 0;
    transform: translateY(40px);
}
.hero-title .in { opacity: 1; transform: translateY(0); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }

/* Subtítulo */
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,.82);
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
}
.hero-subtitle.in { opacity: 1; transform: translateY(0); transition: opacity .7s var(--ease-out) .3s, transform .7s var(--ease-out) .3s; }

/* CTAs */
.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
}
.hero-ctas.in { opacity: 1; transform: translateY(0); transition: opacity .7s var(--ease-out) .5s, transform .7s var(--ease-out) .5s; }

/* Visual con imagen y chips */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px) scale(.97);
}
.hero-visual.in {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity .9s var(--ease-out) .3s, transform .9s var(--ease-out) .3s;
}

.hero-img-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
}
.hero-img-frame img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
    transition: transform .1s ease-out;
}
.hero-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,91,156,.18) 0%, transparent 60%);
    pointer-events: none;
}

/* Chips flotantes */
.hero-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
    white-space: nowrap;
    opacity: 0;
    transition: opacity .6s var(--ease-out);
}
.hero-chip.in { opacity: 1; }

.chip-top-left    { top: -22px;  left: -20px;  animation: chipFloat1 6s ease-in-out infinite; }
.chip-top-right   { top: -22px;  right: -20px; animation: chipFloat2 7s ease-in-out infinite 1s; }
.chip-bottom-left { bottom: 20px; left: -20px;  animation: chipFloat3 8s ease-in-out infinite .5s; }
.chip-bottom-right{ bottom: 20px; right: -20px; animation: chipFloat4 6.5s ease-in-out infinite 1.5s; }

.chip-icon {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chip-icon svg { width: 20px; height: 20px; }
.chip-icon-orange { background: var(--orange); }
.chip-icon-blue   { background: var(--blue);   }
.chip-icon-green  { background: var(--wa-green); }

.chip-info strong { display: block; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .9rem; }
.chip-info span   { font-size: .72rem; opacity: .7; }

/* Stats row */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 60px;
    opacity: 0;
    transform: translateY(20px);
}
.hero-stats.in { opacity: 1; transform: translateY(0); transition: opacity .7s var(--ease-out) .8s, transform .7s var(--ease-out) .8s; }

.hstat {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}
.hstat-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    line-height: 1;
    color: #fff;
}
.hstat-sym {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--orange);
    line-height: 1;
}
.hstat-label {
    font-size: .72rem;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}
.hstat-sep {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,.15);
}

/* Trust row */
.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 28px;
    opacity: 0;
    transform: translateY(15px);
}
.hero-trust.in { opacity: 1; transform: translateY(0); transition: opacity .6s var(--ease-out) 1s, transform .6s var(--ease-out) 1s; }

.trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.6);
    font-size: .82rem;
}
.trust-item svg { width: 14px; height: 14px; fill: var(--orange); flex-shrink: 0; }

/* Divisor de onda */
.hero-wave {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    line-height: 0;
    z-index: 2;
}
.hero-wave svg { display: block; width: 100%; }

/* ------------------------------------------------------------------
   SECCIONES GENERALES
   ------------------------------------------------------------------ */
.section {
    padding: 100px 0;
}

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

.section-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--dark-blue);
    margin-bottom: 16px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-tag {
    display: inline-block;
    background: rgba(26,91,156,.1);
    color: var(--blue);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 50px;
    margin-bottom: 14px;
}
.section-tag-light {
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.85);
}

/* ------------------------------------------------------------------
   REVEAL (entrada al scroll)
   ------------------------------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------------------------------
   SERVICIOS GRID
   ------------------------------------------------------------------ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.service-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform .35s var(--ease-out), box-shadow .35s ease;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.sc-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.sc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.service-card:hover .sc-img img { transform: scale(1.08); }

.sc-tag {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--orange);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 50px;
    z-index: 2;
}

.sc-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sc-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(26,91,156,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}
.sc-icon svg { width: 26px; height: 26px; fill: var(--blue); }

.sc-body h3 {
    font-size: 1.2rem;
    color: var(--dark-blue);
    margin-bottom: 14px;
}

.sc-list {
    flex: 1;
    margin-bottom: 20px;
}
.sc-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.5;
}
.sc-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--orange);
    flex-shrink: 0;
}

.sc-cta {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .85rem;
    color: var(--blue);
    transition: color .25s ease, letter-spacing .25s ease;
}
.sc-cta:hover { color: var(--orange); letter-spacing: .5px; }

/* ------------------------------------------------------------------
   BENEFICIOS GRID
   ------------------------------------------------------------------ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.benefit-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform .35s var(--ease-out), box-shadow .35s ease;
    position: relative;
    overflow: hidden;
}
.benefit-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease-out);
}
.benefit-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.benefit-card:hover::before { transform: scaleX(1); }

.bc-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, rgba(26,91,156,.12), rgba(42,117,195,.06));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.bc-icon svg { width: 30px; height: 30px; fill: var(--blue); }

.benefit-card h3 {
    font-size: 1.1rem;
    color: var(--dark-blue);
    margin-bottom: 12px;
}
.benefit-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

/* ------------------------------------------------------------------
   CTA BANNER
   ------------------------------------------------------------------ */
.cta-banner {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}
.cta-banner-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue) 0%, var(--dark-blue) 100%);
    z-index: 0;
}
.cta-banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

.cta-banner-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-banner-text h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: #fff;
    margin-bottom: 10px;
}
.cta-banner-text p { color: rgba(255,255,255,.8); font-size: 1rem; }

.cta-banner-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ------------------------------------------------------------------
   PROCESO
   ------------------------------------------------------------------ */
.process-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.process-line {
    position: absolute;
    top: 36px; left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--orange));
    opacity: .25;
    z-index: 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ps-num {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--blue);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: background .35s ease, color .35s ease, transform .35s var(--ease-out), box-shadow .35s ease;
}
.process-step:hover .ps-num {
    background: var(--blue);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(26,91,156,.35);
}

.ps-content h3 {
    font-size: 1.05rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}
.ps-content p { color: var(--text-muted); font-size: .88rem; line-height: 1.6; }

/* ------------------------------------------------------------------
   LOGÍSTICA / ZONA DE SERVICIO
   ------------------------------------------------------------------ */
.logistics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.logistics-info { display: flex; flex-direction: column; gap: 28px; }

.li-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.li-icon {
    width: 48px; height: 48px;
    background: rgba(26,91,156,.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.li-icon svg { width: 24px; height: 24px; fill: var(--blue); }

.li-item h4 {
    font-size: 1rem;
    color: var(--dark-blue);
    margin-bottom: 4px;
}
.li-item p { color: var(--text-muted); font-size: .9rem; line-height: 1.5; }

.logistics-map iframe {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* ------------------------------------------------------------------
   CONTACTO
   ------------------------------------------------------------------ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 48px;
    align-items: start;
}

.ci-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ci-whatsapp {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--wa-green);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    color: #fff;
    transition: transform .3s var(--ease-out), box-shadow .3s ease;
    box-shadow: 0 6px 20px rgba(37,211,102,.35);
}
.ci-whatsapp svg { width: 36px; height: 36px; flex-shrink: 0; }
.ci-whatsapp strong { display: block; font-size: 1rem; }
.ci-whatsapp span  { font-size: .85rem; opacity: .85; }
.ci-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(37,211,102,.5); }

.ci-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    line-height: 1.5;
}
.ci-detail svg { width: 20px; height: 20px; fill: var(--orange); flex-shrink: 0; margin-top: 2px; }

/* Formulario */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cf-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cf-group label {
    font-weight: 600;
    font-size: .85rem;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.cf-group input,
.cf-group select,
.cf-group textarea {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: #fff;
    font-size: .95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color .25s ease, background .25s ease;
    outline: none;
    resize: vertical;
}
.cf-group input::placeholder,
.cf-group textarea::placeholder { color: rgba(255,255,255,.35); }
.cf-group select option { background: var(--dark-blue); color: #fff; }

.cf-group input:focus,
.cf-group select:focus,
.cf-group textarea:focus {
    border-color: var(--orange);
    background: rgba(255,255,255,.1);
}

/* ------------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------------ */
.site-footer {
    background: var(--dark);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 16px;
}
.footer-logo strong { color: var(--blue-light); }

.footer-brand p {
    color: rgba(255,255,255,.5);
    font-size: .9rem;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 340px;
}

.footer-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--wa-green);
    color: #fff;
    padding: 12px 22px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    transition: transform .3s var(--ease-out), background .3s ease;
    animation: waPulse 2.5s ease-in-out infinite;
}
.footer-wa svg { width: 22px; height: 22px; }
.footer-wa:hover { transform: translateY(-2px); background: var(--wa-dark); }

.footer-col h4 {
    font-size: .85rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--orange);
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
    color: rgba(255,255,255,.5);
    font-size: .88rem;
    transition: color .25s ease, padding-left .25s ease;
}
.footer-col ul a:hover { color: var(--orange); padding-left: 6px; }

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,.5);
    font-size: .88rem;
    margin-bottom: 14px;
    line-height: 1.5;
}
.footer-contact-list svg { width: 18px; height: 18px; fill: var(--orange); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
    padding: 20px 0;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom p { color: rgba(255,255,255,.3); font-size: .8rem; }

/* ------------------------------------------------------------------
   WHATSAPP FLOTANTE (esquina inferior IZQUIERDA)
   ------------------------------------------------------------------ */
.wa-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 9000;
    width: 62px; height: 62px;
    background: var(--wa-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37,211,102,.5);
    animation: waPulse 2.5s ease-in-out infinite;
    transition: transform .3s var(--ease-spring), background .3s ease;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover {
    transform: scale(1.12);
    background: var(--wa-dark);
}

.wa-tooltip {
    position: absolute;
    left: 74px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-blue);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .78rem;
    padding: 7px 14px;
    border-radius: 50px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    box-shadow: var(--shadow-md);
}
.wa-tooltip::before {
    content: '';
    position: absolute;
    right: 100%; top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--dark-blue);
}
.wa-float:hover .wa-tooltip { opacity: 1; }

/* ------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------ */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .logistics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .process-track { grid-template-columns: repeat(2, 1fr); }
    .process-line  { display: none; }
    .contact-layout { grid-template-columns: 1fr; }
    .cf-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* Nav mobile — grid 2 columnas: logo | hamburger */
    .nav-container {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        padding: 12px 0;
        gap: 0;
    }

    /* Logo ocupa columna 1 */
    .nav-logo {
        grid-column: 1;
        grid-row: 1;
        font-size: 1.15rem;
    }
    .nav-logo svg { width: 24px; height: 24px; }

    /* Toggle columna 2 */
    .nav-toggle {
        display: flex;
        grid-column: 2;
        grid-row: 1;
    }

    /* Links: panel deslizable debajo del header */
    .nav-links {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        gap: 0;
        overflow: hidden;
        max-height: 0;
        transition: max-height .4s var(--ease-out), padding .4s ease;
        background: rgba(255,255,255,.98);
    }
    .nav-links.open {
        max-height: 400px;
        padding: 20px 0;
        gap: 18px;
    }
    .nav-cta {
        width: auto;
        padding: 12px 28px;
        justify-content: center;
    }

    /* Hero chips solo top */
    .chip-bottom-left,
    .chip-bottom-right { display: none; }
    .chip-top-left  { left: -10px; top: -10px; }
    .chip-top-right { right: -10px; top: -10px; }
    .hero-chip { padding: 10px 12px; gap: 8px; }
    .chip-icon { width: 30px; height: 30px; }
    .chip-icon svg { width: 16px; height: 16px; }
    .chip-info strong { font-size: .8rem; }
    .chip-info span   { display: none; }

    /* Hero stats */
    .hstat-sep { display: none; }
    .hero-stats { gap: 20px; }

    /* Hero trust */
    .hero-trust { gap: 14px; }

    /* CTA banner */
    .cta-banner-inner { flex-direction: column; text-align: center; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }

    /* Section padding */
    .section { padding: 70px 0; }
}

@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { width: 100%; }
    .process-track { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
}
