﻿/* ==========================================================================
   VACOMX — Sistema de diseño 2026
   Paleta navy + azul eléctrico + cian/ámbar. Glassmorphism y degradados.
   ========================================================================== */

:root {
    --navy-900: #070b22;
    --navy-800: #0b1235;
    --navy-700: #111a4a;
    --blue-600: #2f6bff;
    --blue-500: #4d82ff;
    --cyan-400: #19d3da;
    --amber-400: #ffb020;
    --ink: #0d1226;
    --slate: #5b6478;
    --muted: #8b93a7;
    --line: #e7eaf3;
    --bg: #f6f8fe;
    --white: #ffffff;

    --grad-primary: linear-gradient(135deg, #2f6bff 0%, #19d3da 100%);
    --grad-warm: linear-gradient(135deg, #ff8a00 0%, #ffb020 100%);
    --grad-dark: radial-gradient(1200px 600px at 15% -10%, rgba(47,107,255,.45), transparent 60%),
                 radial-gradient(900px 500px at 95% 10%, rgba(25,211,218,.30), transparent 55%),
                 linear-gradient(160deg, #070b22 0%, #0b1235 60%, #111a4a 100%);

    --shadow-sm: 0 2px 8px rgba(16,24,64,.06);
    --shadow-md: 0 12px 30px rgba(16,24,64,.10);
    --shadow-lg: 0 30px 60px rgba(16,24,64,.18);
    --radius: 18px;
    --radius-sm: 12px;
    --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    margin: 0;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--ink);
}

a { color: var(--blue-600); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cyan-400); }

.container-x { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--blue-600);
    padding: 7px 14px; border-radius: 999px;
    background: rgba(47,107,255,.10);
}
.eyebrow.on-dark { color: #aecbff; background: rgba(255,255,255,.08); }

.section-title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin: 18px 0 14px; }
.section-lead { color: var(--slate); font-size: 1.08rem; max-width: 720px; }
.text-grad { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Botones ---------- */
.btn-x {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .98rem;
    padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-grad { background: var(--grad-primary); color: #fff; box-shadow: 0 10px 24px rgba(47,107,255,.35); }
.btn-grad:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(47,107,255,.45); color:#fff; }
.btn-warm { background: var(--grad-warm); color: #1a1300; box-shadow: 0 10px 24px rgba(255,176,32,.35); }
.btn-warm:hover { transform: translateY(-3px); color:#1a1300; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.16); color:#fff; transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--blue-600); border: 1.5px solid rgba(47,107,255,.4); }
.btn-outline:hover { background: var(--blue-600); color: #fff; }

/* ---------- Navbar ---------- */
.nav-x {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    transition: background .3s ease, box-shadow .3s ease;
}
.nav-x.scrolled { background: rgba(8,12,34,.92); backdrop-filter: blur(14px); box-shadow: var(--shadow-md); }

/* Barra superior de contacto */
.topbar-strip { background: rgba(0,0,0,.28); border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar-strip .inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 22px; padding: 9px 0; font-size: .84rem; color: #c7d2ee; }
.topbar-strip a { color: #c7d2ee; } .topbar-strip a:hover { color: #fff; }
.topbar-strip .grp { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-strip i { color: var(--cyan-400); margin-right: 5px; }
@media (max-width: 940px) { .topbar-strip { display: none; } }

.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 13px; color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.02rem; line-height: 1.15; letter-spacing: -.01em; max-width: 340px; }
.brand:hover { color:#fff; }
.brand-logo {
    width: 50px; height: 50px; flex: 0 0 50px; border-radius: 50%; background: #fff;
    display: grid; place-items: center; padding: 4px; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand small { display:block; font-family:'Inter',sans-serif; font-weight:500; font-size:.66rem; letter-spacing:.04em; color:#9fb4e6; text-transform:none; margin-top:2px; }
/* Compatibilidad: marca tipo letra (no usada en el header, queda para fallback) */
.brand-mark { width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--grad-primary);color:#fff;font-weight:800; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #d7def2; font-weight: 500; padding: 9px 15px; border-radius: 10px; font-size: .96rem; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.10); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 940px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute; top: 100%; right: 16px; left: 16px; flex-direction: column; align-items: stretch;
        background: rgba(8,12,34,.96); backdrop-filter: blur(14px); padding: 12px; border-radius: 16px; gap: 4px;
        box-shadow: var(--shadow-lg); display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links .btn-x { justify-content: center; margin-top: 6px; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff; padding: 170px 0 120px; overflow: hidden;
    background:
        linear-gradient(155deg, rgba(7,11,34,.94) 0%, rgba(11,18,53,.84) 55%, rgba(17,26,74,.74) 100%),
        radial-gradient(900px 500px at 92% 0%, rgba(25,211,218,.22), transparent 55%),
        url('../img/banners/hero.jpg');
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 26px 26px; opacity: .5; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); color: #fff; margin: 18px 0 20px; }
.hero p.lead { color: #c7d2ee; font-size: 1.15rem; max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 48px; }
.hero-stats .num { font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 700; background: var(--grad-primary); -webkit-background-clip: text; background-clip:text; color: transparent; }
.hero-stats .lbl { color: #9fb0d6; font-size: .9rem; }

.hero-visual { position: relative; min-height: 360px; }
.hero-card {
    position: absolute; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(12px); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 14px; color:#fff;
}
.hero-card .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.3rem; color:#fff; }
.hero-card .t { font-weight: 600; font-family:'Space Grotesk',sans-serif; }
.hero-card .s { font-size: .82rem; color:#aebbdc; }
.hc1 { top: 10%; left: 4%; animation: float 6s ease-in-out infinite; }
.hc2 { top: 44%; right: 0; animation: float 7s ease-in-out infinite .6s; }
.hc3 { bottom: 6%; left: 18%; animation: float 8s ease-in-out infinite 1.2s; }
.hero-orb { position: absolute; inset: 0; margin: auto; width: 300px; height: 300px; border-radius: 50%; background: var(--grad-primary); filter: blur(8px); opacity: .35; }
.hero-ring { position:absolute; inset:0; margin:auto; width: 360px; height: 360px; border-radius:50%; border: 1.5px dashed rgba(255,255,255,.25); animation: spin 28s linear infinite; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 940px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero { padding: 140px 0 80px; }
}

/* ---------- Wave divider ---------- */
.wave { display:block; width:100%; height:60px; }

/* ---------- Tarjetas de servicio ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.scard {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
    box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.scard:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(47,107,255,.3); }
.scard .ic {
    width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem;
    color: #fff; background: var(--grad-primary); margin-bottom: 18px; box-shadow: 0 10px 22px rgba(47,107,255,.3);
}
.scard.alt .ic { background: var(--grad-warm); color:#1a1300; box-shadow: 0 10px 22px rgba(255,176,32,.3); }
.scard h3 { font-size: 1.22rem; margin: 0 0 10px; }
.scard ul { margin: 0; padding-left: 18px; color: var(--slate); font-size: .96rem; }
.scard ul li { margin-bottom: 4px; }
.scard p { color: var(--slate); margin: 0; }

/* ---------- Catálogo ---------- */
.cat-search { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 680px; margin: 0 auto 44px; flex-wrap: wrap; }
.cat-search-field { position: relative; flex: 1 1 300px; }
.cat-search-field i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.05rem; pointer-events: none; }
.cat-search-field input { width: 100%; padding: 14px 18px 14px 48px; border: 1.5px solid var(--line); border-radius: 999px; font-family: inherit; font-size: 1rem; background: #fff; box-shadow: var(--shadow-sm); transition: border-color .2s ease, box-shadow .2s ease; }
.cat-search-field input:focus { outline: 0; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(47,107,255,.12); }
.cat-search .btn-x { padding: 14px 24px; flex: 0 0 auto; }
.cat-search .btn-clear { width: 50px; height: 50px; padding: 0; justify-content: center; flex: 0 0 auto; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.chip {
    font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .9rem;
    padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--slate);
    cursor: pointer; transition: all .2s ease;
}
.chip:hover { border-color: var(--blue-600); color: var(--blue-600); }
.chip.active { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(47,107,255,.3); }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.pcard {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pcard .thumb { position: relative; aspect-ratio: 4/3; background: #f0f3fb; display: grid; place-items: center; overflow: hidden; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: transform .4s ease; }
.pcard:hover .thumb img { transform: scale(1.06); }
.pcard .badge-marca {
    position: absolute; top: 12px; left: 12px; z-index: 2; font-family: 'Space Grotesk', sans-serif; font-weight: 600;
    font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
    background: rgba(8,12,34,.85); color: #fff; padding: 5px 11px; border-radius: 999px;
}
.pcard .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.pcard h3 { font-size: 1.05rem; margin: 0 0 8px; }
.pcard p { color: var(--slate); font-size: .92rem; margin: 0 0 16px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .foot { display: flex; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- Marcas ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.brand-chip {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 26px 16px;
    display: grid; place-items: center; min-height: 110px; text-align: center; transition: all .25s ease;
    box-shadow: var(--shadow-sm);
}
.brand-chip:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(47,107,255,.3); }
.brand-chip img { max-width: 100%; max-height: 56px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: all .25s ease; }
.brand-chip:hover img { filter: grayscale(0); opacity: 1; }
.brand-chip .name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--ink); font-size: 1.05rem; }

/* ---------- Franja CTA ---------- */
.cta-band { background: var(--grad-dark); color: #fff; border-radius: 28px; padding: 60px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band p { color: #c7d2ee; max-width: 620px; margin: 12px auto 28px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea, .field select {
    width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-size: .98rem;
    font-family: inherit; background: #fbfcff; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: 0; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(47,107,255,.12); background:#fff;
}
.info-card { background: var(--grad-dark); color: #fff; border-radius: var(--radius); padding: 34px; }
.info-row { display: flex; gap: 14px; margin-bottom: 22px; }
.info-row .ic { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.10); font-size: 1.1rem; }
.info-row .t { font-weight: 600; font-family: 'Space Grotesk', sans-serif; margin-bottom: 2px; }
.info-row .s { color: #b9c5e6; font-size: .92rem; }
.info-row .s a { color:#b9c5e6; } .info-row .s a:hover{ color:#fff; }

.alert-x { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; }
.alert-ok { background: rgba(25,211,218,.14); color: #0a7a80; border: 1px solid rgba(25,211,218,.4); }
.alert-err { background: rgba(255,90,90,.12); color: #b42323; border: 1px solid rgba(255,90,90,.35); }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .cta-band { padding: 40px 24px; } }

/* ---------- Page header (subpáginas) ---------- */
.page-head {
    color: #fff; padding: 150px 0 70px; text-align: center; position: relative; overflow:hidden;
    background:
        linear-gradient(150deg, rgba(7,11,34,.92) 0%, rgba(11,18,53,.86) 60%, rgba(17,26,74,.80) 100%),
        url('../img/banners/banner.jpg');
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.page-head::after { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 26px 26px; opacity:.5; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); position: relative; z-index: 2; }
.page-head p { color: #c7d2ee; position: relative; z-index: 2; max-width: 640px; margin: 14px auto 0; }
.breadcrumb-x { display:flex; gap:8px; justify-content:center; color:#9fb0d6; font-size:.9rem; position:relative; z-index:2; margin-bottom: 14px; }
.breadcrumb-x a { color:#9fb0d6; } .breadcrumb-x a:hover{ color:#fff; }

/* ---------- Misión / Visión ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mv-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.mv-card::before { content:""; position:absolute; top:0; left:0; width:5px; height:100%; background: var(--grad-primary); z-index:1; }
.mv-img { width: calc(100% + 76px); height: 240px; object-fit: cover; margin: -38px -38px 26px -38px; display:block; }
.mv-card.warm::before { background: var(--grad-warm); }
.mv-card .ic { width:60px; height:60px; border-radius:16px; display:grid; place-items:center; font-size:1.6rem; color:#fff; background: var(--grad-primary); margin-bottom:20px; }
.mv-card.warm .ic { background: var(--grad-warm); color:#1a1300; }
@media (max-width: 760px) { .mv-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #c2cbe4; padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 1rem; margin: 0 0 18px; }
.footer a { color: #aab4d0; display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer .brand { margin-bottom: 16px; }
.footer p { color: #97a2c2; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .86rem; color: #8893b5; }
.footer-bottom a { display:inline; color:#9fb0d6; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Animación reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Franja de logos de marcas ---------- */
.logo-strip { background:#fff; padding:40px 0; border-bottom:1px solid var(--line); }
.logo-strip .head { text-align:center; color:var(--muted); font-size:.82rem; letter-spacing:.14em; text-transform:uppercase; font-family:'Space Grotesk',sans-serif; font-weight:600; margin-bottom:26px; }
.logo-strip .row { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:38px; }
.logo-strip img { height:48px; max-width:140px; object-fit:contain; filter:grayscale(1); opacity:.62; transition:filter .25s ease, opacity .25s ease, transform .25s ease; }
.logo-strip img:hover { filter:none; opacity:1; transform:scale(1.06); }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 1200;
    display: inline-flex; align-items: center; gap: 10px;
    background: #25d366; color: #fff; padding: 14px 18px; border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .98rem;
    box-shadow: 0 12px 28px rgba(37,211,102,.45); transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 16px 34px rgba(37,211,102,.55); }
.wa-float i { font-size: 1.5rem; line-height: 1; }
.wa-float .wa-text { white-space: nowrap; }
.wa-float::before {
    content: ""; position: absolute; inset: 0; border-radius: 999px; z-index: -1;
    background: #25d366; animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
    0% { transform: scale(1); opacity: .55; }
    70% { transform: scale(1.35); opacity: 0; }
    100% { opacity: 0; }
}
@media (max-width: 560px) {
    .wa-float { padding: 14px; right: 16px; bottom: 16px; }
    .wa-float .wa-text { display: none; }
}

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mx-auto { margin-left:auto; margin-right:auto; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
