/* =====================================================================
   JAGUAR TECH · Tecnología • Seguridad • Soporte
   site.css · Estilos del sitio público (modo claro / oscuro, responsive)
   ===================================================================== */

:root {
  --primary: #1557d6;
  --primary-2: #0f46b0;
  --primary-soft: #e8f0ff;
  --navy: #0a1f44;
  --navy-2: #0d2a5c;
  --gold: #c9a24a;
  --gold-2: #e0bf6e;
  --gold-soft: rgba(201, 162, 74, .16);
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8faff;
  --text: #0f1b33;
  --muted: #5b6b86;
  --border: #e3e8f1;
  --header-bg: rgba(255, 255, 255, .86);
  --shadow-sm: 0 1px 2px rgba(10, 31, 68, .06), 0 2px 8px rgba(10, 31, 68, .05);
  --shadow: 0 10px 30px rgba(10, 31, 68, .10);
  --shadow-lg: 0 24px 60px rgba(10, 31, 68, .20);
  --wa: #1fae55;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --primary: #4d8dff;
  --primary-2: #2f6fe8;
  --primary-soft: rgba(77, 141, 255, .14);
  --bg: #07101f;
  --surface: #0e1b33;
  --surface-2: #0b1729;
  --text: #e9eefb;
  --muted: #9db0cf;
  --border: #1c2d4d;
  --header-bg: rgba(7, 16, 31, .86);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow: 0 10px 30px rgba(0, 0, 0, .40);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ic { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; white-space: nowrap;
  padding: .82rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; line-height: 1.1; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 8px 20px rgba(21, 87, 214, .28); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(21, 87, 214, .38); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1405; box-shadow: 0 8px 20px rgba(201, 162, 74, .3); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(31, 174, 85, .28); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(4px); }
.btn-light:hover { background: rgba(255, 255, 255, .2); }
.btn-sm { padding: .62rem 1.05rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border); transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; flex: 0 1 auto; }
@media (min-width: 1025px) { .brand { flex: none; } .brand-tag { overflow: visible; } }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; color: var(--gold-2);
  background: linear-gradient(145deg, var(--navy-2), var(--navy)); box-shadow: 0 6px 16px rgba(10, 31, 68, .35), inset 0 0 0 1px rgba(224, 191, 110, .35);
}
.brand-mark .ic { width: 22px; height: 22px; }
.brand-logo { max-height: 44px; width: auto; max-width: 200px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-weight: 800; letter-spacing: .06em; font-size: 1.08rem; color: var(--text); }
.brand-name b { color: var(--primary); font-weight: 800; }
.brand-tag { font-size: .66rem; letter-spacing: .05em; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag i { color: var(--gold); font-style: normal; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: .55rem .95rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); transition: color .2s, background .2s; }
.main-nav a:hover { color: var(--text); background: var(--primary-soft); }
.main-nav a.active { color: var(--primary); background: var(--primary-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: transform .2s, border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.icon-btn .ic { width: 20px; height: 20px; }
.theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
.menu-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 1024px) {
  .main-nav, .header-actions .cta-desktop { display: none; }
  .menu-toggle { display: grid; }
  .mobile-menu {
    display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow); max-height: 0; overflow: hidden;
    transition: max-height .35s ease; visibility: hidden;
  }
  
  .site-header.menu-open .mobile-menu { max-height: calc(100vh - var(--header-h));visibility: visible;overflow-y: auto;overscroll-behavior: contain;}
  .mobile-menu .container { padding: 12px 20px 24px; display: grid; gap: 4px; }
  .mobile-menu a.nav-link { padding: .85rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
  .mobile-menu a.nav-link:hover, .mobile-menu a.nav-link.active { background: var(--primary-soft); color: var(--primary); }
  .mobile-menu .btn { margin-top: 10px; }
}
@media (max-width: 420px) {
  .brand-mark { width: 36px; height: 36px; }
  .header-actions { gap: 6px; }
  .brand-tag { font-size: .58rem; letter-spacing: .02em; }
  .brand-name { font-size: .98rem; }
}

/* ---------- Hero / Carrusel ---------- */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero-slides { position: relative; min-height: clamp(620px, 84vh, 780px); }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s; padding: 56px 0 150px;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slide-bg::after { content: ""; position: absolute; inset: 0; }
.slide-bg.v0 { background: radial-gradient(900px 500px at 85% 20%, rgba(21, 87, 214, .55), transparent 60%), linear-gradient(135deg, #0a1f44 0%, #0d2a5c 60%, #0b3a86 100%); }
.slide-bg.v1 { background: radial-gradient(800px 500px at 15% 90%, rgba(201, 162, 74, .25), transparent 60%), linear-gradient(135deg, #081a3a 0%, #0f3170 70%, #1557d6 130%); }
.slide-bg.v2 { background: radial-gradient(800px 500px at 90% 90%, rgba(77, 141, 255, .45), transparent 60%), linear-gradient(160deg, #0a1f44 0%, #123a80 100%); }
.slide-bg.v3 { background: radial-gradient(900px 500px at 10% 10%, rgba(201, 162, 74, .22), transparent 60%), linear-gradient(135deg, #0a1f44 0%, #0d2a5c 55%, #1557d6 140%); }
.slide-bg.v4 { background: radial-gradient(800px 520px at 80% 15%, rgba(77, 141, 255, .5), transparent 60%), linear-gradient(145deg, #07152f 0%, #0e2f6b 100%); }
.slide-bg.has-img::after { background: linear-gradient(90deg, rgba(7, 21, 47, .92) 0%, rgba(7, 21, 47, .7) 55%, rgba(7, 21, 47, .35) 100%); }
.slide-bg:not(.has-img)::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
}
.slide-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; width: 100%; }
.slide-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-2); font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.slide-kicker::before { content: ""; width: 34px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.slide-title { font-size: clamp(2rem, 5.2vw, 3.7rem); font-weight: 800; letter-spacing: -.02em; max-width: 16ch; }
.slide-text { margin-top: 20px; font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(233, 240, 255, .86); max-width: 52ch; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.slide.is-active .slide-kicker, .slide.is-active .slide-title, .slide.is-active .slide-text, .slide.is-active .slide-actions { animation: rise .8s both; }
.slide.is-active .slide-title { animation-delay: .08s; }
.slide.is-active .slide-text { animation-delay: .16s; }
.slide.is-active .slide-actions { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.slide-art { display: grid; place-items: center; position: relative; min-height: 300px; }
.art-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(224, 191, 110, .35); }
.art-ring.r1 { width: 300px; height: 300px; animation: spin 40s linear infinite; border-style: dashed; }
.art-ring.r2 { width: 220px; height: 220px; border-color: rgba(255, 255, 255, .18); }
.art-ring.r3 { width: 380px; height: 380px; border-color: rgba(255, 255, 255, .08); }
.art-core {
  width: 150px; height: 150px; border-radius: 34px; display: grid; place-items: center; color: var(--gold-2);
  background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 30px 60px rgba(0, 0, 0, .35), inset 0 0 40px rgba(77, 141, 255, .2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: float 6s ease-in-out infinite;
}
.art-core .ic { width: 64px; height: 64px; stroke-width: 1.4; }
.art-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px var(--gold); }
.art-dot.d1 { top: 12%; right: 18%; } .art-dot.d2 { bottom: 14%; left: 16%; background: #4d8dff; box-shadow: 0 0 18px #4d8dff; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-12px); } }

.hero-controls { position: absolute; z-index: 5; left: 0; right: 0; bottom: 92px; }
.hero-controls .container { display: flex; align-items: center; gap: 18px; }
.hero-arrow {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); transition: background .2s, transform .2s;
}
.hero-arrow:hover { background: rgba(255, 255, 255, .22); transform: scale(1.06); }
.hero-dots { display: flex; gap: 8px; align-items: center; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; cursor: pointer; background: rgba(255, 255, 255, .35); transition: width .3s, background .3s; }
.hero-dots button.is-active { width: 34px; background: var(--gold); }
.hero-count { margin-left: auto; font-size: .82rem; color: rgba(255, 255, 255, .7); letter-spacing: .1em; }

@media (max-width: 900px) {
  .slide-inner { grid-template-columns: 1fr; }
  .slide-art { display: none; }
  .slide { padding: 44px 0 150px; }
  .slide-title { max-width: 100%; }
  .hero-controls { bottom: 78px; }
}
@media (max-width: 480px) {
  .hero-count { display: none; }
  .slide-actions .btn { flex: 1 1 100%; }
}

/* ---------- Bloque de confianza ---------- */
.trust { position: relative; z-index: 6; margin-top: -58px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item {
  display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s, border-color .25s;
}
.trust-item:hover { transform: translateY(-4px); border-color: var(--gold); }
.trust-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--primary); background: var(--primary-soft); }
.trust-ic .ic { width: 24px; height: 24px; }
.trust-item strong { display: block; font-size: 1rem; line-height: 1.25; }
.trust-item span:not(.trust-ic) { display: block; font-size: .82rem; line-height: 1.35; color: var(--muted); margin-top: 2px; }
@media (max-width: 1024px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } .trust { margin-top: -44px; } }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--gold); opacity: .6; }
.section-head h2, .h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
@media (max-width: 720px) { .section { padding: 64px 0; } .section-head { margin-bottom: 36px; } }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.svc-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(201, 162, 74, .6); }
.svc-media { height: 150px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card:hover .svc-media img { transform: scale(1.06); }
.svc-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.svc-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 10px 20px rgba(21, 87, 214, .28);
  position: relative;
}
.svc-icon::after { content: ""; position: absolute; right: -3px; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--surface); }
.svc-icon .ic { width: 26px; height: 26px; }
.svc-media + .svc-body .svc-icon { margin-top: -52px; border: 3px solid var(--surface); }
.svc-card h3 { font-size: 1.2rem; }
.svc-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.svc-more { color: var(--primary); font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; width: fit-content; }
.svc-more:hover { color: var(--gold); }
.svc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.svc-actions .btn { flex: 1 1 auto; padding-left: 1rem; padding-right: 1rem; }

/* ---------- Detalle por solución ---------- */
.detail-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; position: sticky; top: calc(var(--header-h) + 16px); }
.tab {
  display: flex; align-items: center; gap: 12px; padding: .8rem .9rem; border-radius: var(--radius-sm); border: 0; background: transparent;
  color: var(--muted); font-weight: 600; font-size: .92rem; cursor: pointer; text-align: left; transition: background .2s, color .2s;
}
.tab .ic { width: 20px; height: 20px; }
.tab:hover { background: var(--primary-soft); color: var(--text); }
.tab.is-active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 8px 18px rgba(21, 87, 214, .28); }
.detail-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); min-height: 340px; }
.detail-panel.anim { animation: rise .5s both; }
.detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.detail-head .svc-icon { flex: none; }
.detail-head h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.detail-intro { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 12px; margin: 28px 0; }
.chip { display: flex; align-items: center; gap: 10px; padding: .75rem 1rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-weight: 500; font-size: .93rem; }
.chip .ic { color: var(--gold); width: 18px; height: 18px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .detail-wrap { grid-template-columns: 1fr; }
  .tabs { position: static; flex-direction: row; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px; scrollbar-width: thin; }
  .tab { white-space: nowrap; scroll-snap-align: start; }
  .detail-panel { padding: 26px 20px; }
}

/* ---------- GPS ---------- */
.gps { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #0b3a86 100%); color: #fff; position: relative; overflow: hidden; }
.gps::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 90% 0%, rgba(201, 162, 74, .18), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(77, 141, 255, .3), transparent 60%); pointer-events: none; }
.gps .container { position: relative; }
.gps .section-head p { color: rgba(233, 240, 255, .8); }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; align-items: stretch; max-width: 1040px; margin: 0 auto; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px 28px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .3s, border-color .3s, background .3s;
}
.plan:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .1); }
.plan.featured { border: 1.5px solid var(--gold); background: rgba(255, 255, 255, .11); box-shadow: 0 24px 60px rgba(0, 0, 0, .35), 0 0 0 4px rgba(201, 162, 74, .1); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1405; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .9rem; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 1.3rem; }
.plan-desc { color: rgba(233, 240, 255, .75); font-size: .93rem; min-height: 2.9em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.plan-price strong { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.plan-price strong.quote { font-size: 1.2rem; color: var(--gold-2); }
.plan-price span { color: rgba(233, 240, 255, .7); font-size: .9rem; }
.plan-features { display: grid; gap: 10px; flex: 1; align-content: start; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.plan-features .ic { color: var(--gold-2); margin-top: 3px; width: 17px; height: 17px; }
.gps-note { text-align: center; margin-top: 30px; color: rgba(233, 240, 255, .7); font-size: .9rem; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.about-copy .h2 { margin: 6px 0 22px; }
.about-copy p { color: var(--muted); font-size: 1.05rem; margin-bottom: 16px; }
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--gold-soft); border: 1px solid rgba(201, 162, 74, .4); margin: 22px 0 28px; color: var(--text); }
.callout .ic { color: var(--gold); width: 24px; height: 24px; margin-top: 2px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.about-card { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 24px; padding: 34px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.about-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 162, 74, .35), transparent 70%); }
.about-card h3 { font-size: 1.15rem; margin-bottom: 22px; color: var(--gold-2); letter-spacing: .04em; }
.info-list { display: grid; gap: 20px; position: relative; z-index: 1; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic-wrap { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--gold-2); flex: none; }
.info-list small { display: block; color: rgba(233, 240, 255, .65); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.info-list span.v { font-weight: 600; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Mayoreo ---------- */
.wholesale-box { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 48px; box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; position: relative; overflow: hidden; }
.wholesale-box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.wholesale-box .h2 { margin: 6px 0 16px; }
.wholesale-box p.lead { color: var(--muted); font-size: 1.05rem; }
.wh-note { margin-top: 16px; font-size: .92rem; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.wh-note .ic { color: var(--gold); margin-top: 3px; }
.wh-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px; }
.wholesale-box .btn { margin-top: 26px; }
@media (max-width: 900px) { .wholesale-box { grid-template-columns: 1fr; padding: 30px 22px 30px 26px; } }

/* ---------- Marcas ---------- */
.brands-title { text-align: center; font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 700; margin-bottom: 30px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); padding: 6px 0; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee.static .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.brand-chip {
  display: inline-flex; align-items: center; justify-content: center; min-width: 168px; height: 76px; padding: 0 26px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-weight: 800; letter-spacing: .04em; font-size: 1.02rem;
  color: var(--muted); white-space: nowrap; transition: color .25s, border-color .25s, transform .25s;
}
a.brand-chip:hover, .brand-chip:hover { color: var(--primary); border-color: var(--gold); transform: translateY(-2px); }
.brand-chip img { max-height: 40px; max-width: 130px; width: auto; object-fit: contain; }
.brands-disclaimer { text-align: center; color: var(--muted); font-size: .78rem; margin-top: 22px; opacity: .85; }

/* ---------- Publicaciones ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-media { position: relative; height: 180px; background: linear-gradient(135deg, var(--navy), var(--navy-2) 60%, #0b3a86); display: grid; place-items: center; color: rgba(224, 191, 110, .85); overflow: hidden; }
.post-media .ic { width: 54px; height: 54px; stroke-width: 1.2; }
.post-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-date { position: absolute; left: 14px; top: 14px; z-index: 2; background: rgba(10, 31, 68, .85); color: var(--gold-2); font-size: .74rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; letter-spacing: .04em; }
.post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-body h3 { font-size: 1.12rem; line-height: 1.3; }
.post-body p { color: var(--muted); font-size: .93rem; flex: 1; }
.post-more { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 700; font-size: .9rem; background: none; border: 0; padding: 0; cursor: pointer; width: fit-content; }
.post-more:hover { color: var(--gold); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: border-color .25s, transform .25s; }
a.contact-card:hover { border-color: var(--gold); transform: translateX(4px); }
.contact-card .trust-ic { width: 46px; height: 46px; }
.contact-card small { display: block; color: var(--muted); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.contact-card strong { font-size: 1rem; word-break: break-word; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: .93rem; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .84rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--surface-2);
  color: var(--text); font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.field .err { color: #dc2626; font-size: .8rem; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #dc2626; }
.field.invalid .err { display: block; }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: 12px; text-align: center; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } .form-card { padding: 24px 18px; } }

/* ---------- Síguenos ---------- */
.follow { padding: 64px 0; text-align: center; }
.follow h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 8px; }
.follow p { color: var(--muted); margin-bottom: 26px; }
.social-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.social-btn {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); box-shadow: var(--shadow-sm); transition: transform .25s, color .25s, border-color .25s, background .25s;
}
.social-btn .ic { width: 26px; height: 26px; }
.social-btn img { width: 28px; height: 28px; object-fit: contain; }
a.social-btn:hover { transform: translateY(-5px); color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; }
.social-btn.disabled { opacity: .55; cursor: default; border-style: dashed; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--navy) 0%, #06122b 100%); color: rgba(233, 240, 255, .82); padding: 68px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name b { color: var(--gold-2); }
.site-footer .brand-tag { color: rgba(233, 240, 255, .6); }
.footer-about { margin-top: 18px; font-size: .92rem; max-width: 36ch; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; letter-spacing: .04em; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--gold); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: var(--gold-2); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.footer-contact .ic { color: var(--gold-2); margin-top: 3px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social .social-btn { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.footer-social .social-btn .ic { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; text-align: center; font-size: .85rem; color: rgba(233, 240, 255, .6); }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Botones flotantes ---------- */
.fab-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 26px rgba(31, 174, 85, .5); transition: transform .25s;
}
.fab-wa:hover { transform: scale(1.08); }
.fab-wa .ic { width: 30px; height: 30px; }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.5); opacity: 0; } }
.to-top {
  position: fixed; right: 26px; bottom: 90px; z-index: 89; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--gold-2); border: 1px solid rgba(224, 191, 110, .4); cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Modal y toast ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 12, 28, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-dialog { position: relative; background: var(--surface); border-radius: 24px; max-width: 720px; width: 100%; max-height: 88vh; overflow: auto; box-shadow: var(--shadow-lg); animation: rise .35s both; }
.modal-media { height: 200px; background: linear-gradient(135deg, var(--navy), var(--navy-2) 60%, #0b3a86); position: relative; overflow: hidden; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 30px 32px 34px; }
.modal-body .post-date { position: static; display: inline-block; margin-bottom: 12px; }
.modal-body h3 { font-size: 1.5rem; margin-bottom: 16px; }
.modal-body p { color: var(--muted); margin-bottom: 14px; }
.modal-close { position: absolute; right: 14px; top: 14px; z-index: 3; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 300; background: var(--navy); color: #fff; padding: .85rem 1.3rem; border-radius: 999px; box-shadow: var(--shadow-lg); border: 1px solid rgba(224, 191, 110, .5); font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Varios ---------- */
.about-copy .eyebrow::after { display: none; }
.marquee.static .dup { display: none; }
.brand-fallback-text { font-weight: 800; letter-spacing: .04em; }
.slide.has-img .slide-art { display: none; }

/* ---------- Placeholders de imagen ---------- */
.no-img img { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee .dup { display: none; }
}
@media print { .site-header, .fab-wa, .to-top, .hero-controls { display: none !important; } }
@media (max-width: 1024px) {

  .site-header.menu-open .mobile-menu {
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    visibility: visible;
  }

  .mobile-menu .mobile-gps-btn {
    display: flex !important;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    margin: 12px 0 10px;
    padding: 12px;
    position: relative;
    visibility: visible;
    opacity: 1;
  }
}
