/*
Theme Name: Boxsan Storage
Theme URI: https://boxsan.com.ar
Author: Boxsan
Author URI: https://boxsan.com.ar
Description: Tema profesional para Boxsan - Self Storage y Bauleras en Argentina. Espacios seguros para particulares, empresas y ecommerce.
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: boxsan
*/

/* ============================================================
   BOXSAN DESIGN SYSTEM — Tokens
============================================================ */
:root {
  /* Navy scale — anchored on brand Azul Seguridad #1B365D */
  --color-navy-950:#0D1A2E;
  --color-navy-900:#1B365D;
  --color-navy-800:#244676;
  --color-navy-700:#2E5890;
  --color-navy-600:#3B6AA8;
  --color-navy-300:#7C9AC0;

  /* Orange scale — anchored on brand Naranja Flex #E8961E */
  --color-orange-600:#B4730F;
  --color-orange-500:#CF8517;
  --color-orange-400:#E8961E;
  --color-orange-300:#F0AD4E;
  --color-orange-200:#F6CC87;
  --color-orange-100:#FDF3E1;

  /* Warm neutrals */
  --color-neutral-950:#0d0c0b;
  --color-neutral-900:#1c1a17;
  --color-neutral-700:#44403a;
  --color-neutral-600:#5c5750;
  --color-neutral-500:#78726a;
  --color-neutral-400:#9c958d;
  --color-neutral-300:#beb8b0;
  --color-neutral-200:#dddad5;
  --color-neutral-100:#eeece8;
  --color-neutral-50: #f8f7f4;

  /* Premium navy depth */
  --navy-deep:     #112542;

  /* Semantic aliases (kept for backwards compat with existing markup) */
  --primary:       var(--color-navy-900);
  --primary-mid:   var(--color-navy-800);
  --primary-light: var(--color-navy-700);
  --accent:        var(--color-orange-400);          /* #E8961E */
  --accent-dark:   var(--color-orange-500);
  --accent-light:  var(--color-orange-300);
  --accent-text:   #C77A00;                          /* legible naranja sobre blanco */
  --white:         #ffffff;
  --off-white:     #F4F7FA;                          /* gris azulado premium */
  --surface:       #F4F7FA;
  --light:         var(--color-neutral-100);
  --text:          var(--color-neutral-950);
  --text-mid:      #4A5568;                          /* navy-tinted body text */
  --text-light:    var(--color-neutral-400);
  --border:        #E2E8F0;                          /* navy-tinted border */
  --border-light:  #EDF2F7;
  --success:       #22c55e;

  /* Shadows (navy tinted) */
  --shadow-xs: 0 1px 2px rgba(27,54,93,.06);
  --shadow-sm: 0 1px 3px rgba(27,54,93,.08), 0 4px 12px rgba(27,54,93,.06);
  --shadow:    0 2px 6px rgba(27,54,93,.08), 0 6px 16px rgba(27,54,93,.07);
  --shadow-lg: 0 4px 16px rgba(27,54,93,.12), 0 8px 24px rgba(27,54,93,.08);
  --shadow-xl: 0 8px 24px rgba(27,54,93,.12), 0 24px 48px rgba(27,54,93,.10);

  /* Radii */
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill:9999px;

  --transition: all 200ms ease;

  /* Fonts */
  --font-head: 'Sora', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max-w: 1200px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p { line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }

::selection { background: rgba(232,150,30,.25); color: var(--text); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--color-neutral-300); border-radius: 9999px; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -.02em;
}

h1, .h1, h2, .h2 { font-weight: 800; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent-text);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0;
  margin-bottom: 12px;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.section-title span,
.section-title em { color: var(--accent-text); font-style: normal; font-weight: 800; }
/* Sobre fondos oscuros (Hero, Seguridad, Calculadora, Contacto, Proceso) los em vuelven al naranja brillante */
#hero .section-title em,
#hero .hero-headline .line-accent,
#seguridad .section-title em,
#calculadora .section-title em,
#contacto .section-title em,
#contacto .contact-cta-title em,
#proceso .section-title em { color: var(--accent); }

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.65;
}

.text-center { text-align: center; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(27,54,93,.06);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,150,30,.22);
}

.btn-secondary {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }

.btn-outline {
  background: transparent;
  color: var(--accent-text);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-ghost { background: transparent; color: var(--accent-text); }
.btn-ghost:hover { background: var(--color-orange-100); color: var(--accent-text); }

.btn-lg { padding: 14px 28px; font-size: .95rem; }
.btn-sm { padding: 9px 16px; font-size: .8125rem; }
.btn-xl { padding: 16px 32px; font-size: 1rem; font-weight: 700; }

/* ============================================================
   CTA GLOW — animated conic-gradient ring (key conversion CTAs only)
============================================================ */
@property --cta-glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.cta-glow {
  --cta-glow-angle: 0deg;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.005em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background:
    conic-gradient(
      from var(--cta-glow-angle),
      #B4730F 0%,
      #E8961E 25%,
      #F5C16C 50%,
      #E8961E 75%,
      #B4730F 100%
    );
  animation: cta-glow-spin 4.5s linear infinite;
  box-shadow:
    0 0 0 1px rgba(232, 150, 30, .25),
    0 14px 44px -12px rgba(232, 150, 30, .55),
    0 4px 14px rgba(10, 22, 40, .25);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1),
              box-shadow .35s ease;
}

.cta-glow::before {
  content: '';
  position: absolute;
  inset: 2.5px;
  border-radius: inherit;
  background: var(--color-navy-950);
  z-index: -1;
  transition: background .3s ease;
}

.cta-glow > * {
  position: relative;
  z-index: 1;
}

.cta-glow svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cta-glow .cta-arrow {
  width: 14px;
  height: 14px;
  transition: transform .3s ease;
}

.cta-glow:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(232, 150, 30, .4),
    0 22px 60px -12px rgba(232, 150, 30, .75),
    0 6px 18px rgba(10, 22, 40, .3);
}

.cta-glow:hover::before { background: var(--color-navy-800); }

.cta-glow:hover .cta-arrow { transform: translateX(4px); }

.cta-glow:active { transform: translateY(0); }

.cta-glow:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(232, 150, 30, .4),
    0 14px 44px -12px rgba(232, 150, 30, .55);
}

.cta-glow.cta-glow-lg { padding: 18px 38px; font-size: 1.05rem; }
.cta-glow.cta-glow-xl { padding: 22px 46px; font-size: 1.125rem; }

@keyframes cta-glow-spin {
  to { --cta-glow-angle: 360deg; }
}

/* ── Heartbeat variant — double-pulse scale + expanding orange ring ── */
.cta-glow.cta-glow-heartbeat {
  animation:
    cta-glow-spin 4.5s linear infinite,
    cta-heartbeat 1.6s cubic-bezier(.4, 0, .6, 1) infinite;
}

.cta-glow.cta-glow-heartbeat::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -2;
  animation: cta-heartbeat-ring 1.6s cubic-bezier(.4, 0, .6, 1) infinite;
}

@keyframes cta-heartbeat {
  0%, 100% { transform: scale(1); }
  14%      { transform: scale(1.045); }
  28%      { transform: scale(1);     }
  42%      { transform: scale(1.032); }
  70%      { transform: scale(1);     }
}

@keyframes cta-heartbeat-ring {
  0%   { box-shadow: 0 0 0 0 rgba(232, 150, 30, .55); }
  50%  { box-shadow: 0 0 0 14px rgba(232, 150, 30, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 150, 30, 0); }
}

/* Prevent hover translateY from fighting the beat animation */
.cta-glow.cta-glow-heartbeat:hover { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .cta-glow { animation: none; }
  .cta-glow.cta-glow-heartbeat,
  .cta-glow.cta-glow-heartbeat::after { animation: none; }
}

/* ============================================================
   HEADER & NAV
============================================================ */
#site-header {
  position: fixed;
  top: 38px; left: 0; right: 0;
  z-index: 1000;
  transition: background 300ms ease, padding 300ms ease, box-shadow 300ms ease, top 300ms ease;
  padding: 0 24px;
  background: transparent;
}

#site-header.scrolled,
#site-header.on-inner-page {
  background: rgba(13,26,46,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232,150,30,.18);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}

#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
  padding: 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: auto;
  height: 58px;
  max-width: 64px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter:
    drop-shadow(0 0 14px rgba(232,150,30,.22))
    drop-shadow(0 2px 6px rgba(0,0,0,.45));
  transition: filter .35s ease, transform .35s ease;
}

.site-logo:hover .logo-mark {
  transform: scale(1.04) rotate(-1deg);
  filter:
    drop-shadow(0 0 18px rgba(232,150,30,.4))
    drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

.logo-wordmark {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .01em;
  line-height: 1;
}

.logo-wordmark span { color: var(--white); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.site-nav a {
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 180ms ease;
}

.site-nav a:hover { color: var(--accent); background: transparent; }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  font-size: .8125rem !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; transform: scale(1.02); }

.nav-cta-secondary {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: transparent !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  font-size: .8125rem !important;
  border: 1.5px solid rgba(255,255,255,.35) !important;
  transition: all 180ms ease;
}

.nav-cta-secondary:hover {
  background: rgba(255,255,255,.08) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-navy-950);
  z-index: 1100;
  flex-direction: column;
  padding: 76px 32px 32px;
  gap: 2px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, border-color .2s ease;
}

.mobile-nav-close:hover,
.mobile-nav-close:active {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.25);
}

/* ============================================================
   HERO
============================================================ */
#hero {
  min-height: 100vh;
  background: radial-gradient(ellipse at center, #1B365D 0%, #112542 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 150px 0 80px;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    radial-gradient(rgba(232,150,30,.025) 1px, transparent 1px);
  background-size: 32px 32px, 64px 64px;
  background-position: 0 0, 16px 16px;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17,37,66,0) 0%, rgba(17,37,66,.4) 100%),
    linear-gradient(115deg, transparent 0%, transparent 60%, rgba(232,150,30,.04) 100%);
  pointer-events: none;
  z-index: 0;
}

#hero > .container { position: relative; z-index: 1; }

.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* Dotted noise texture */
.hero-bg-lines {
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: radial-gradient(circle, #ffffff 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Warm orange glow */
.hero-bg-grad { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-bg-grad-1 {
  width: 600px; height: 600px;
  top: 20%; right: -10%;
  background: radial-gradient(circle, rgba(232,150,30,.18) 0%, transparent 70%);
}
.hero-bg-grad-2 { display: none; } /* remove cold blue glow */

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-inner { position: relative; padding: 0; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,150,30,.12);
  border: 1px solid rgba(232,150,30,.3);
  color: var(--accent);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-kicker-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2.2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 24px;
  text-transform: none;
}

.hero-headline .line-accent { color: var(--accent); display: inline; }
.hero-headline .line-thin { font-weight: 800; opacity: 1; color: var(--white); }

.hero-lead {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--color-navy-300);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 0;
  border-top: none;
  margin-top: 0;
}

.hero-stat {
  padding: 0;
  margin: 0;
  border: none;
}

.hero-stat-num {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.02em;
}

.hero-stat-label {
  font-family: var(--font-body);
  font-size: .75rem;
  color: var(--color-navy-300);
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

/* Hero right panel */
.hero-panel {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(16px);
  position: relative;
}

.hero-panel-label {
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.unit-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.unit-opt {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.unit-opt:hover,
.unit-opt.active {
  background: rgba(232,150,30,.14);
  border-color: var(--accent);
}

.unit-opt-size {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -.02em;
}

.unit-opt.active .unit-opt-size { color: var(--accent); }

.unit-opt-label {
  font-family: var(--font-body);
  font-size: .6875rem;
  color: var(--color-navy-300);
  margin-top: 4px;
}

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.security-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.chip {
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0;
}

.chip-green {
  background: rgba(34,197,94,.14);
  border: 1px solid rgba(34,197,94,.3);
  color: #4ade80;
}

.chip-blue {
  background: rgba(122,160,203,.14);
  border: 1px solid rgba(122,160,203,.2);
  color: var(--color-navy-300);
}

.hero-float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-float-1 { top: -16px; right: -16px; }
.hero-float-2 { bottom: -16px; left: -16px; animation-delay: 1.5s; }

.float-icon { font-size: 1.3rem; }
.float-text-title { font-family: var(--font-head); font-size: .8125rem; font-weight: 700; color: var(--text); }
.float-text-sub { font-size: .6875rem; color: var(--text-light); }

/* ============================================================
   PROMO BAR — top fixed marquee
============================================================ */
.promo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  background: linear-gradient(90deg, var(--color-orange-500) 0%, var(--accent) 50%, var(--color-orange-500) 100%);
  padding: 9px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.promo-track {
  display: flex;
  width: max-content;
  animation: promo-scroll 32s linear infinite;
}

.promo-track:hover { animation-play-state: paused; }

.promo-inner {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@keyframes promo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.promo-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 0 22px;
  white-space: nowrap;
  position: relative;
}

.promo-item::after {
  content: '';
  display: inline-block;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
}

.promo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-navy-950);
  color: var(--white);
  flex-shrink: 0;
}

.promo-icon svg { width: 13px; height: 13px; stroke-width: 2.2; }

/* ============================================================
   FOTOS MARQUEE
============================================================ */
#fotos-marquee {
  overflow: hidden;
  padding: 40px 0;
  background: var(--off-white);
  position: relative;
}

.fotos-marquee-row {
  display: flex;
  width: max-content;
  gap: 16px;
  margin-bottom: 16px;
}

.fotos-marquee-row:last-child { margin-bottom: 0; }

.fotos-row-a {
  animation: fotos-scroll-l 36s linear infinite;
}

.fotos-row-a:hover { animation-play-state: paused; }

@keyframes fotos-scroll-l {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.fotos-marquee-img {
  width: 280px;
  height: 180px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  display: block;
  cursor: zoom-in;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.fotos-marquee-img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.fotos-marquee-placeholder {
  width: 280px;
  height: 180px;
  border-radius: var(--radius);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-navy-800) 0%, var(--color-navy-900) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.25);
}

.fotos-marquee-placeholder svg { width: 36px; height: 36px; }

.fotos-fade-left,
.fotos-fade-right {
  pointer-events: none;
  position: absolute;
  inset-y: 0;
  width: 180px;
  z-index: 2;
}

.fotos-fade-left  { left: 0;  background: linear-gradient(to right,  var(--off-white), transparent); }
.fotos-fade-right { right: 0; background: linear-gradient(to left, var(--off-white), transparent); }

/* ============================================================
   FOTOS LIGHTBOX
============================================================ */
.fotos-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .88);
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  animation: lightbox-in 200ms ease forwards;
}

.fotos-lightbox.open { display: flex; }

@keyframes lightbox-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fotos-lightbox-img {
  max-width: min(1100px, 95vw);
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  object-fit: contain;
  cursor: default;
  animation: lightbox-img-in 220ms cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes lightbox-img-in {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}

.fotos-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease;
  backdrop-filter: blur(4px);
}

.fotos-lightbox-close:hover { background: rgba(255,255,255,.22); }
.fotos-lightbox-close svg { width: 18px; height: 18px; }

/* ============================================================
   SERVICIOS
============================================================ */
#servicios { background: var(--off-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 22px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  transition: box-shadow 220ms ease, border-color 220ms ease, transform 220ms ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(27,54,93,.10), 0 0 0 1px rgba(232,150,30,.15);
}

.service-icon-wrap {
  line-height: 1;
  margin-bottom: 14px;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: var(--transition);
}

.service-icon-wrap svg { width: 28px; height: 28px; }

.service-card:hover .service-icon-wrap { transform: scale(1.1); }

/* ── Lucide icon alignment inside inline-text contexts ────── */
.trust-item-icon,
.amenity-icon,
.chip,
.footer-wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-item-icon svg,
.amenity-icon svg,
.chip svg { flex-shrink: 0; }

.float-icon,
.sec-icon-large,
.sec-item-icon,
.audience-icon,
.cowork-feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  line-height: 1;
}

.testi-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--color-orange-400);
}
.testi-stars svg { fill: currentColor; }

.service-title {
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}

.service-desc {
  font-family: var(--font-body);
  font-size: .8125rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ============================================================
   UNIDADES
============================================================ */
#unidades { background: var(--off-white); }

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.unit-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  transition: box-shadow 220ms ease, border-color 220ms ease, transform 220ms ease;
  position: relative;
}

.unit-box:hover {
  box-shadow: 0 12px 32px rgba(27,54,93,.10), 0 0 0 1px rgba(232,150,30,.15);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.unit-box.featured { border: 2px solid var(--accent); }

.unit-featured-tag {
  position: absolute;
  top: 0; right: 16px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .625rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
  z-index: 1;
}

.unit-header {
  background: var(--white);
  padding: 24px 22px 0;
  text-align: left;
  position: relative;
}

.unit-header::before {
  content: attr(data-category);
}

.unit-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0;
  text-transform: none;
}

.unit-sqm {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-light);
  margin-top: 6px;
  letter-spacing: .01em;
}

.unit-body { padding: 16px 22px 24px; }

.unit-example {
  font-family: var(--font-body);
  font-size: .8125rem;
  color: var(--text-mid);
  font-style: normal;
  margin-bottom: 14px;
  line-height: 1.55;
}

.unit-feat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.unit-feat {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .75rem;
  color: var(--color-neutral-700);
  line-height: 1.5;
}

.feat-check { color: var(--success); font-weight: 700; flex-shrink: 0; }

/* ============================================================
   CALCULADORA
============================================================ */
#calculadora {
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.calc-inner { position: relative; z-index: 2; text-align: center; }
.calc-inner .section-title { color: var(--text); }
.calc-inner .section-tag { background: transparent; color: var(--accent); }
.calc-inner .section-subtitle { color: var(--text-mid); }

.calc-container {
  max-width: 980px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  min-height: 300px;
}

/* ============================================================
   SEGURIDAD — dark navy per design
============================================================ */
#seguridad {
  background: radial-gradient(ellipse at center, #1B365D 0%, #112542 100%);
  position: relative;
  overflow: hidden;
}

#seguridad::before {
  content: '';
  position: absolute;
  top: 50%; left: 60%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(232,150,30,.08) 0%, transparent 70%);
  pointer-events: none;
}

#seguridad::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mix-blend-mode: screen;
}

#seguridad .container { position: relative; z-index: 1; }

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

#seguridad .section-title { color: var(--white); }
#seguridad .section-title em { color: var(--accent); }
#seguridad .section-tag { color: var(--accent); }

.security-visual-wrap { position: relative; }

.security-visual-main {
  background: linear-gradient(140deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.security-visual-inner { text-align: center; color: rgba(255,255,255,.7); }

.sec-icon-large { font-size: 5rem; margin-bottom: 12px; }
.sec-visual-label {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
}
.sec-visual-sub { font-size: .8125rem; margin-top: 4px; color: var(--color-navy-300); }

.security-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.sec-stat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.sec-stat-num {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.02em;
}

.sec-stat-label {
  font-family: var(--font-body);
  font-size: .6875rem;
  color: var(--color-navy-300);
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0;
}

#seguridad .security-list p,
#seguridad p { color: var(--color-navy-300); }

.security-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.security-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  transition: var(--transition);
}

.security-item:hover {
  border-color: rgba(232,150,30,.4);
  background: rgba(255,255,255,.06);
}

.sec-item-icon {
  font-size: 1.375rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
}

.sec-item-title {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  font-size: .875rem;
}

.sec-item-desc {
  font-family: var(--font-body);
  font-size: .75rem;
  color: var(--color-navy-300);
  line-height: 1.6;
}

/* ============================================================
   PARA QUIÉN
============================================================ */
#para-quien { background: var(--off-white); }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.audience-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  transition: box-shadow 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.audience-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(27,54,93,.10), 0 0 0 1px rgba(232,150,30,.15);
}

.audience-head {
  padding: 28px 24px 20px;
  background: transparent;
  border-bottom: 1px solid var(--color-neutral-100);
}

.audience-card:nth-child(2) .audience-head,
.audience-card:nth-child(3) .audience-head { background: transparent; }

.audience-icon { font-size: 2rem; margin-bottom: 12px; line-height: 1; }

.audience-title {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
}

.audience-sub {
  font-family: var(--font-body);
  font-size: .8125rem;
  color: var(--text-mid);
  margin-top: 4px;
}

.audience-body { background: transparent; padding: 20px 24px 28px; display: flex; flex-direction: column; }

.audience-uses { flex: 1; }

.audience-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 700;
  text-align: center;
  transition: background 180ms ease, transform 180ms ease;
  text-decoration: none;
}

.audience-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  color: var(--white);
}

.audience-uses { display: flex; flex-direction: column; gap: 8px; }

.audience-use {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .8125rem;
  color: var(--color-neutral-700);
  line-height: 1.55;
}

.audience-use-arrow { color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ============================================================
   COWORKING
============================================================ */
#coworking { background: var(--off-white); }

.cowork-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}

.cowork-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.cowork-feat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--color-neutral-100);
  text-align: left;
  transition: var(--transition);
}

.cowork-feat:hover { box-shadow: var(--shadow-sm); border-color: var(--color-neutral-200); }

.cowork-feat-icon { font-size: 1.5rem; margin-bottom: 8px; line-height: 1; }
.cowork-feat-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .875rem;
  color: var(--text);
  margin-bottom: 3px;
}
.cowork-feat-desc { font-family: var(--font-body); font-size: .75rem; color: var(--text-mid); }

.cowork-panel {
  background: var(--color-navy-950);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--white);
  position: sticky;
  top: 100px;
}

.cowork-panel-title {
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.amenity-list { display: flex; flex-direction: column; gap: 0; }

.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-body);
  font-size: .875rem;
  color: rgba(255,255,255,.82);
}

.amenity-item:last-child { border-bottom: none; }
.amenity-icon { font-size: 1.125rem; width: 22px; text-align: center; }

/* ============================================================
   PROCESO
============================================================ */
#proceso { background: var(--off-white); }

.process-inner { text-align: center; }
.process-inner .section-title { color: var(--text); }
.process-inner .section-tag { background: transparent; color: var(--accent); }
.process-inner p { color: var(--text-mid) !important; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}

.process-steps::before { display: none; }

.process-step {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}

.step-num {
  width: 48px; height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  box-shadow: none;
}

.step-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.step-desc {
  font-family: var(--font-body);
  font-size: .8125rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ============================================================
   TESTIMONIOS
============================================================ */
#testimonios { background: var(--off-white); }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  transition: box-shadow 220ms ease, border-color 220ms ease, transform 220ms ease;
  position: relative;
}

.testi-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(27,54,93,.10), 0 0 0 1px rgba(232,150,30,.15);
  transform: translateY(-2px);
}

.testi-card::before { display: none; }

.testi-stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testi-text {
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--color-neutral-700);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.testi-author { display: flex; align-items: center; gap: 12px; }

.testi-avatar {
  width: 40px; height: 40px;
  background: var(--color-navy-950);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8125rem;
  color: var(--white);
  font-family: var(--font-head);
  flex-shrink: 0;
}

.testi-name { font-family: var(--font-body); font-weight: 600; font-size: .8125rem; color: var(--text); }
.testi-role { font-family: var(--font-body); font-size: .6875rem; color: var(--text-light); }

/* ============================================================
   FAQ — compact trigger + modal
============================================================ */
#faq { background: var(--off-white); }

.faq-compact {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.faq-compact-head .section-tag { margin-bottom: 14px; }

.faq-compact-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin: 0 0 14px;
}

.faq-compact-title em { color: var(--accent); font-style: normal; }

.faq-compact-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-mid);
  margin: 0 auto 28px;
  max-width: 540px;
}

/* ── Trigger card ──────────────────────────────────────── */
.faq-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--color-neutral-200);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  color: var(--text);
  transition: transform .35s cubic-bezier(.2,.8,.2,1),
              box-shadow .35s ease,
              border-color .25s ease;
  box-shadow: 0 1px 2px rgba(27,54,93,.04);
}

.faq-trigger::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, var(--accent) 60%, transparent 90%);
  opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  transition: opacity .35s ease;
  pointer-events: none;
}

.faq-trigger:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 16px 40px -18px rgba(232,150,30,.35), 0 2px 8px rgba(27,54,93,.06);
}

.faq-trigger:hover::after { opacity: 1; }

.faq-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232,150,30,.35);
}

.faq-trigger-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-orange-100);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-trigger-icon svg { width: 22px; height: 22px; }

.faq-trigger-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.faq-trigger-eyebrow {
  font-family: var(--font-mono, var(--font-body));
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.faq-trigger-title {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}

.faq-trigger-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: .78rem;
  color: var(--text-light);
  margin-top: 4px;
}

.faq-trigger-more { color: var(--accent); font-weight: 600; }

.faq-trigger-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-navy-950);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

.faq-trigger-arrow svg { width: 16px; height: 16px; }

.faq-trigger:hover .faq-trigger-arrow { transform: translateX(4px); }

.faq-compact-foot {
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--text-light);
  margin: 28px 0 0;
}

.faq-compact-foot a {
  color: var(--accent);
  font-weight: 600;
  margin-left: 4px;
}

.faq-compact-foot a:hover { color: var(--accent-dark); }

/* ── Accordion items (used inside modal) ────────────── */
.faq-list {
  display: block;
  padding: 0;
  margin: 0;
  list-style: none;
}

.faq-list > .faq-item + .faq-item { margin-top: 8px; }

.faq-item {
  display: block;
  flex: 0 0 auto;
  background: var(--white);
  border: 1px solid var(--color-neutral-200);
  border-radius: 10px;
  overflow: visible;
  height: auto !important;
  max-height: none !important;
  min-height: 0;
  transition: border-color .2s ease, background .2s ease;
}

.faq-item.open { border-color: var(--accent); background: var(--color-orange-100); }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  user-select: none;
  line-height: 1.35;
  border-radius: 10px;
}

.faq-q:hover { background: var(--off-white); }

.faq-item.open .faq-q { background: transparent; }

.faq-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform .25s ease;
  line-height: 1;
}

.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 18px 16px;
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--text-mid);
  line-height: 1.65;
  height: auto;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}

.faq-item.open .faq-a { display: block !important; }

/* ============================================================
   BOXSAN MODAL — native <dialog>
============================================================ */
.boxsan-modal {
  padding: 0;
  border: none;
  background: transparent;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  inset: 0;
  color: var(--text);
  overflow: hidden;
}

.boxsan-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.boxsan-modal::backdrop {
  background: rgba(6, 13, 26, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: boxsan-modal-fade .2s ease;
}

@keyframes boxsan-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes boxsan-modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.boxsan-modal[open] .boxsan-modal-card {
  animation: boxsan-modal-in .25s cubic-bezier(.2,.8,.2,1);
}

.boxsan-modal-card {
  display: flex;
  flex-direction: column;
  width: calc(100% - 32px);
  max-width: 640px;
  max-height: min(85vh, 720px);
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 24px 80px -20px rgba(27,54,93,.55),
    0 8px 24px rgba(27,54,93,.25);
}

.boxsan-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--color-neutral-200);
  background: var(--white);
}

.boxsan-modal-head-text { flex: 1; min-width: 0; }

.boxsan-modal-eyebrow {
  display: inline-block;
  font-family: var(--font-mono, var(--font-body));
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.boxsan-modal-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.boxsan-modal-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--color-neutral-200);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.boxsan-modal-close:hover {
  background: var(--color-navy-950);
  color: #fff;
  border-color: var(--color-navy-900);
}

.boxsan-modal-body {
  position: relative;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 24px;
  scroll-padding-bottom: 32px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-neutral-300) transparent;
  overscroll-behavior: contain;
}

/* Always leave ~48px of breathing room after the last item so
   the bottom entry can scroll up above the fold when expanded. */
.boxsan-modal-body::after {
  content: "";
  display: block;
  height: 48px;
}

.boxsan-modal-body::-webkit-scrollbar { width: 8px; }
.boxsan-modal-body::-webkit-scrollbar-track { background: transparent; }
.boxsan-modal-body::-webkit-scrollbar-thumb {
  background: var(--color-neutral-300);
  border-radius: 999px;
}

.boxsan-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1px solid var(--color-neutral-200);
  background: var(--off-white);
}

.boxsan-modal-foot-text {
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--text-mid);
}

/* prevent body scroll when modal open */
body.modal-open { overflow: hidden; }

/* ============================================================
   CONTACTO — dark navy per design
============================================================ */
#contacto {
  background: var(--color-navy-950);
  position: relative;
  overflow: hidden;
}

#contacto::before {
  content: '';
  position: absolute;
  bottom: -20%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,150,30,.07) 0%, transparent 70%);
  pointer-events: none;
}

#contacto .container { position: relative; z-index: 1; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-cta-tag { margin-bottom: 12px; }
.contact-cta-tag .section-tag { color: var(--accent); }

.contact-cta-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}

.contact-cta-title em { color: var(--accent); font-style: normal; }

.contact-cta-body {
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--color-navy-300);
  line-height: 1.65;
  margin-bottom: 28px;
}

.contact-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.contact-reasons {
  background: transparent;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.contact-reasons-title {
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.contact-reason {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-size: .875rem;
  color: rgba(255,255,255,.82);
  padding: 5px 0;
}

.reason-check { color: var(--success); font-weight: 700; flex-shrink: 0; }

/* Contact form (light card on dark bg) */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: none;
}

.form-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 22px;
  letter-spacing: -.01em;
}

.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  color: var(--color-neutral-700);
  margin-bottom: 5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-neutral-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--text);
  background: var(--white);
  transition: border 180ms ease;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-light); }

.form-textarea { resize: vertical; min-height: 90px; }

.form-submit { width: 100%; justify-content: center; font-size: .875rem; }

.form-feedback {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .8125rem;
  text-align: center;
}

.form-feedback.success { background: #f0fdf4; color: #166534; border: 1px solid rgba(34,197,94,.3); }
.form-feedback.error { background: #fef2f2; color: #991b1b; border: 1px solid rgba(239,68,68,.3); }

/* Validación por campo */
.form-input.has-error,
.form-select.has-error,
.form-textarea.has-error {
  border-color: #dc2626;
  background: #fef2f2;
}

.form-input.has-error:focus,
.form-select.has-error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.form-error {
  display: none;
  margin-top: 6px;
  font-size: .75rem;
  color: #dc2626;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.4;
}

.form-error.show { display: block; }

/* ============================================================
   FOOTER
============================================================ */
#site-footer {
  background: var(--color-navy-950);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}

.footer-grid,
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .site-logo .logo-icon,
#site-footer .logo-icon {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
}

#site-footer .logo-mark { width: auto; height: 50px; max-width: 56px; }

.footer-brand .logo-text,
#site-footer .logo-text {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
}

#site-footer .logo-text span { color: var(--white); }

.footer-tagline,
.footer-brand-desc {
  font-family: var(--font-body);
  font-size: .8125rem;
  line-height: 1.65;
  color: var(--color-navy-300);
  margin: 14px 0 16px;
}

.footer-social, .footer-socials { display: flex; gap: 8px; }

.social-link, .social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  transition: var(--transition);
  color: rgba(255,255,255,.6);
}

.social-link:hover, .social-btn:hover { background: var(--accent); color: var(--white); }

.footer-col-title {
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-navy-300);
  margin-bottom: 14px;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }

.footer-links a {
  font-family: var(--font-body);
  font-size: .8125rem;
  color: rgba(255,255,255,.7);
}

.footer-links a:hover { color: var(--accent); }

.footer-contact-item,
.footer-contact-row {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: .8125rem;
  color: rgba(255,255,255,.7);
}

.footer-contact-item a { color: rgba(255,255,255,.7); }
.footer-contact-item a:hover { color: var(--accent); }

.footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: rgba(255,255,255,.5);
  flex-shrink: 0;
}

.footer-contact-icon svg { display: block; }

.footer-wa-cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom { padding: 24px 0; }

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-body);
}

.footer-bottom,
.footer-bottom .container,
.footer-bottom span {
  font-size: .75rem;
  color: var(--color-navy-300);
}

.footer-bottom-links,
.footer-legal { display: flex; gap: 16px; }

.footer-bottom-links a,
.footer-legal a {
  font-family: var(--font-body);
  font-size: .75rem;
  color: var(--color-navy-300);
}

.footer-bottom-links a:hover,
.footer-legal a:hover { color: var(--white); }

/* ============================================================
   WHATSAPP FLOAT
============================================================ */
.whatsapp-float, .wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.whatsapp-tooltip, .wa-tooltip {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  transition: opacity .5s;
}

.whatsapp-btn, .wa-btn {
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.45);
  transition: var(--transition);
}

.whatsapp-btn:hover, .wa-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 26px rgba(37,211,102,.55);
}

/* ============================================================
   SCROLL ANIMATIONS
============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-up:nth-child(2) { transition-delay: .06s; }
.fade-up:nth-child(3) { transition-delay: .12s; }
.fade-up:nth-child(4) { transition-delay: .18s; }
.fade-up:nth-child(5) { transition-delay: .24s; }
.fade-up:nth-child(6) { transition-delay: .30s; }
.fade-up:nth-child(7) { transition-delay: .36s; }
.fade-up:nth-child(8) { transition-delay: .42s; }

.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;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .security-grid { grid-template-columns: 1fr; }
  .security-visual-wrap { display: none; }
  .cowork-layout { grid-template-columns: 1fr; }
  .cowork-panel { position: static; }
  .footer-grid, .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* ── Base type scale override ────────────────── */
  html { font-size: 16px; }
  body { font-size: 1rem; line-height: 1.55; }
  h1, .h1 { font-size: 2rem; line-height: 1.1; letter-spacing: -.03em; }
  h2, .h2 { font-size: 1.625rem; line-height: 1.18; letter-spacing: -.025em; }
  h3, .h3 { font-size: 1.15rem; line-height: 1.25; }
  h4, .h4 { font-size: 1rem; }
  p, .body { font-size: .95rem; line-height: 1.55; }

  /* ── Layout & nav ───────────────────────────── */
  .container { padding: 0 18px; }
  .section-pad { padding: 40px 0; }
  .site-nav { display: none; }
  .hamburger { display: flex; }

  /* ── Hide tangential sections on mobile ─────── */
  #trust-bar,
  #para-quien,
  #precios,
  #testimonios,
  .hero-float { display: none !important; }

  /* ── Promo bar (mobile) ─────────────────────── */
  .promo-bar { padding: 7px 0; }
  .promo-item { font-size: .6875rem; padding: 0 14px; letter-spacing: .03em; gap: 6px; }
  .promo-icon { width: 20px; height: 20px; }
  .promo-icon svg { width: 11px; height: 11px; }
  #site-header { top: 32px; }
  #site-header .container { height: 60px; }
  .logo-mark { height: 38px !important; max-width: 44px; }
  .logo-wordmark { font-size: .95rem; }

  /* ── Hero ───────────────────────────────────── */
  #hero { padding: 132px 0 40px; min-height: auto; }
  .hero-bg-grad-1 { width: 260px; height: 260px; top: 0; right: -50%; opacity: .6; }
  .hero-kicker {
    margin-bottom: 14px;
    font-size: .6rem;
    padding: 3px 9px;
    letter-spacing: .05em;
  }
  .hero-kicker-dot { width: 5px; height: 5px; }
  .hero-headline {
    font-size: 2.6rem !important;
    margin-bottom: 18px;
    line-height: 1.05;
    letter-spacing: -.03em;
  }
  .hero-lead {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 24px;
    color: var(--color-navy-200);
  }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 22px; }
  .hero-actions .btn { justify-content: center; padding: 11px 16px; font-size: .85rem; }
  .hero-actions .btn-secondary { display: none; }
  .hero-stats { gap: 12px 20px; }
  .hero-stat-num { font-size: 1rem; }
  .hero-stat-label { font-size: .625rem; line-height: 1.25; }

  /* ── Section heads ──────────────────────────── */
  .section-head { margin-bottom: 22px; }
  .section-tag { font-size: .7rem; margin-bottom: 8px; letter-spacing: .08em; }
  .section-title {
    font-size: 1.625rem !important;
    letter-spacing: -.025em;
    line-height: 1.18;
  }
  .section-sub, .section-subtitle { font-size: .95rem; line-height: 1.5; margin-top: 8px; }

  /* ── Buttons ────────────────────────────────── */
  .btn, .btn-lg, .btn-sm {
    padding: 11px 16px;
    font-size: .9rem;
    border-radius: 8px;
  }

  /* ── Service cards — horizontal auto-scroll on mobile ── */
  .services-grid {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-neutral-300) transparent;
    padding: 4px 16px 12px;
    margin: 0 -18px;
    scroll-behavior: auto;
  }
  .services-grid::-webkit-scrollbar { height: 4px; }
  .services-grid::-webkit-scrollbar-thumb { background: var(--color-neutral-300); border-radius: 4px; }
  .services-grid::-webkit-scrollbar-track { background: transparent; }
  .services-grid::after {
    content: "";
    flex: 0 0 4px;
  }
  .service-card {
    flex: 0 0 230px;
    padding: 14px;
    box-shadow: none;
    border: 1px solid var(--color-neutral-200);
  }
  .service-card:hover { transform: none; box-shadow: none; border-color: var(--color-neutral-300); }
  .service-card:hover .service-icon-wrap { transform: none; }
  .service-icon-wrap { width: 38px; height: 38px; font-size: 1.1rem; margin-bottom: 8px; }
  .service-title { font-size: .98rem; margin-bottom: 6px; }
  .service-desc { font-size: .85rem; line-height: 1.5; }

  /* ── Security items — horizontal scroll on mobile ── */
  .security-list {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.25) transparent;
    padding: 4px 16px 12px;
    margin: 0 -18px;
  }
  .security-list::-webkit-scrollbar { height: 4px; }
  .security-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 4px; }
  .security-list::-webkit-scrollbar-track { background: transparent; }
  .security-list::after {
    content: "";
    flex: 0 0 4px;
  }
  .security-item {
    flex: 0 0 240px;
    scroll-snap-align: start;
    padding: 14px;
    box-shadow: none;
    display: block;
  }
  .sec-item-icon { font-size: 1.1rem; margin-bottom: 8px; }
  .sec-item-title { font-size: .85rem; margin-bottom: 4px; line-height: 1.25; }
  .sec-item-desc { font-size: .75rem; line-height: 1.5; }

  /* ── Unit cards — horizontal swipe carousel on mobile ── */
  .units-grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-neutral-300) transparent;
    padding: 4px 18px 14px;
    margin: 0 -18px;
    scroll-behavior: smooth;
  }
  .units-grid::-webkit-scrollbar { height: 4px; }
  .units-grid::-webkit-scrollbar-thumb { background: var(--color-neutral-300); border-radius: 4px; }
  .units-grid::-webkit-scrollbar-track { background: transparent; }
  .units-grid::after {
    content: "";
    flex: 0 0 6px;
  }
  .unit-box {
    flex: 0 0 78%;
    max-width: 290px;
    scroll-snap-align: center;
    box-shadow: none;
    border-radius: 12px;
  }
  .unit-box:hover { transform: none; box-shadow: none; }
  .unit-header { padding: 14px 14px 0; }
  .unit-body { padding: 8px 14px 16px; }
  .unit-name { font-size: 1.25rem; line-height: 1.15; }
  .unit-sqm { font-size: .72rem; margin-top: 4px; }
  .unit-example { font-size: .85rem; margin-bottom: 10px; }
  .unit-feat { font-size: .82rem; gap: 6px; }
  .unit-feat-list { margin-bottom: 12px; gap: 6px; }
  .unit-featured-tag { font-size: .65rem; padding: 2px 8px; }

  /* Hint visual: gradiente lateral derecho indica que hay más cards */
  #unidades .container { position: relative; }
  #unidades .container::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 28px;
    background: linear-gradient(to left, var(--off-white), transparent);
    pointer-events: none;
    z-index: 2;
  }

  /* ── Process ────────────────────────────────── */
  .process-steps { grid-template-columns: 1fr; gap: 8px; }
  .process-step { padding: 14px; box-shadow: none; }

  /* ── FAQ ────────────────────────────────────── */
  .faq-compact-title { font-size: 1.55rem; }
  .faq-compact-body { font-size: 1rem; margin-bottom: 20px; }
  .faq-trigger { padding: 18px; gap: 14px; border-radius: 14px; }
  .faq-trigger-icon { width: 42px; height: 42px; border-radius: 10px; }
  .faq-trigger-icon svg { width: 20px; height: 20px; }
  .faq-trigger-title { font-size: 1.05rem; }
  .faq-trigger-eyebrow { font-size: .7rem; }
  .faq-trigger-preview { font-size: .82rem; gap: 2px 8px; }
  .faq-trigger-arrow { width: 36px; height: 36px; }
  .faq-trigger-arrow svg { width: 16px; height: 16px; }
  .faq-compact-foot { font-size: .9rem; margin-top: 20px; }

  /* Modal accordion */
  .faq-item { border-radius: 8px; }
  .faq-q { padding: 14px 16px; font-size: .95rem; line-height: 1.35; }
  .faq-a { padding: 0 16px 14px; font-size: .9rem; line-height: 1.55; }
  .faq-toggle { font-size: 1.2rem; }

  /* Modal sizing */
  .boxsan-modal-card { width: calc(100% - 16px); max-height: calc(100vh - 24px); border-radius: 14px; }
  .boxsan-modal-head { padding: 16px 18px 14px; }
  .boxsan-modal-title { font-size: 1.05rem; }
  .boxsan-modal-body { padding: 14px 18px; }
  .boxsan-modal-foot { padding: 12px 18px; flex-wrap: wrap; }

  /* ── Calculadora — escalada para tablet ── */
  .calc-container {
    padding: 4px;
    overflow: hidden;
    border-radius: 10px;
    height: 720px;
    min-height: 0;
  }
  #calcumate-root {
    transform: scale(.82);
    transform-origin: top left;
    width: calc(100% / .82);
    margin-bottom: 0;
  }

  /* ── Contact ────────────────────────────────── */
  .contact-layout { gap: 18px; grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 16px 14px; box-shadow: none; border-radius: 10px; }
  .contact-cta-title { font-size: 1.25rem; line-height: 1.2; }
  .contact-reasons-title { font-size: 1rem; }
  .form-input, .form-select, .form-textarea {
    padding: 10px 12px;
    font-size: .875rem;
  }
  .form-label { font-size: .75rem; }

  /* ── Footer ─────────────────────────────────── */
  .footer-grid, .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px 18px;
  }
  /* Brand y Contacto a ancho completo, Servicios + Información en 2 columnas */
  .footer-grid > .footer-brand { grid-column: 1 / -1; }
  .footer-grid > *:last-child  { grid-column: 1 / -1; }

  .footer-bottom .container { flex-direction: column; text-align: center; gap: 8px; }
  #site-footer { padding: 32px 0 16px; }
  .footer-bottom { padding: 16px 0; font-size: .75rem; }
  .footer-col-title { margin-bottom: 8px; font-size: .75rem; letter-spacing: .08em; }
  .footer-links li { margin-bottom: 4px; }
  .footer-links a { font-size: .8rem; }
  .footer-tagline { font-size: .8rem; }
  .footer-contact-item { font-size: .8rem; margin-bottom: 6px; }
  .logo-icon { width: 28px; height: 28px; }
  .logo-mark { width: auto; height: 44px; max-width: 50px; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .container { padding: 0 16px; }
  .section-pad { padding: 32px 0; }
  #hero { padding: 120px 0 30px; }
  .hero-headline { font-size: 2.2rem !important; }
  .logo-wordmark { font-size: .85rem; }
  .logo-mark { height: 34px !important; max-width: 40px; }

  /* CTA glow — adapt to narrow viewports */
  .cta-glow { white-space: normal; line-height: 1.25; padding: 15px 24px; font-size: 1rem; }
  .cta-glow.cta-glow-lg { padding: 16px 26px; font-size: 1.05rem; }
  .cta-glow.cta-glow-xl { padding: 18px 30px; font-size: 1.1rem; }
  .cta-glow svg { width: 20px; height: 20px; }
  .hero-lead { font-size: 1rem; }
  .hero-stats { gap: 10px 18px; }
  .hero-stat-num { font-size: 1rem; }
  .hero-stat-label { font-size: .68rem; }
  .section-title { font-size: 1.4rem !important; }
  .section-head { margin-bottom: 18px; }

  /* Carousels: narrower cards + edge bleed */
  .services-grid, .security-list { padding: 4px 14px 10px; margin: 0 -16px; }
  .service-card { flex: 0 0 215px; padding: 14px; }
  .security-item { flex: 0 0 225px; padding: 14px; }

  .unit-header { padding: 12px 12px 0; }
  .unit-body { padding: 8px 12px 14px; }
  .unit-dims { font-size: 1.25rem; }
  .faq-q { padding: 12px 14px; font-size: .9rem; }
  .faq-a { padding: 0 14px 12px; font-size: .85rem; }
  .contact-form-wrap { padding: 14px 12px; }
  .btn, .btn-lg { padding: 11px 16px; font-size: .9rem; }

  /* Calcumate — escalada más grande pero usable en celulares */
  .calc-container { height: 680px; }
  #calcumate-root { transform: scale(.76); transform-origin: top left; width: calc(100% / .76); margin-bottom: 0; }
}

/* ============================================================
   BLOG — single post + index
============================================================ */
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Asegurar que el primer bloque de las páginas internas no quede
   tapado por el header fijo */
.blog-index .section-pad:first-child { padding-top: 140px; }
body:not(.home):not(.page-template-front-page) #main-content > section:first-child:not(#hero) { padding-top: 140px; }

/* ── Single post hero ─────────────────────────────────────── */
.blog-single .article-hero {
  padding: 100px 0 32px;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}
.article-back-link {
  display: inline-block;
  color: var(--text-mid);
  font-size: .9rem;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 200ms ease;
}
.article-back-link:hover { color: var(--accent); }
.article-title {
  font-family: 'Sora', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--navy-deep);
  margin: 0 0 20px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .875rem;
  color: var(--text-mid);
  margin-bottom: 32px;
}
.article-featured-image { margin-top: 32px; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.article-img { width: 100%; height: auto; display: block; }

/* ── Article content typography ──────────────────────────── */
.article-content {
  padding: 32px 0 48px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2d3748;
}
.article-content h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--navy-deep);
  margin: 48px 0 16px;
  line-height: 1.25;
}
.article-content h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 32px 0 12px;
}
.article-content p { margin: 0 0 20px; }
.article-content ul, .article-content ol { margin: 0 0 24px; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--accent); }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  background: var(--off-white);
  padding: 16px 24px;
  margin: 28px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-mid);
}
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 24px 0; }
.article-content strong { font-weight: 700; color: var(--navy-deep); }

/* ── CTA dentro del artículo ─────────────────────────────── */
.article-cta {
  background: linear-gradient(135deg, #1B365D 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 40px 32px;
  border-radius: 16px;
  margin: 48px 0;
  text-align: center;
}
.article-cta-tag {
  display: inline-block;
  background: rgba(232,150,30,.15);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.article-cta-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--white);
}
.article-cta-body {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  line-height: 1.65;
  margin: 0 0 28px;
}
.article-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.article-cta .btn-outline { color: var(--white); border-color: rgba(255,255,255,.3); }
.article-cta .btn-outline:hover { background: var(--white); color: var(--navy-deep); }

/* ── Links a páginas relacionadas ─────────────────────────── */
.article-related-links { margin: 48px 0; }
.article-related-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--navy-deep);
}
.article-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.article-related-card {
  display: block;
  padding: 16px 18px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--navy-deep);
  transition: border-color 200ms ease, transform 200ms ease;
}
.article-related-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.article-related-card strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.article-related-card span { display: block; font-size: .8rem; color: var(--text-mid); }

/* ── Blog index ──────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0 0 48px;
}
.blog-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(27,54,93,.1); }
.blog-card-link { display: block; text-decoration: none; color: inherit; }
.blog-card-image { aspect-ratio: 16/9; overflow: hidden; background: var(--off-white); }
.blog-card-img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-card-date {
  display: block;
  font-size: .75rem;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.blog-card-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy-deep);
  margin: 0 0 10px;
}
.blog-card-excerpt {
  font-size: .85rem;
  line-height: 1.55;
  color: var(--text-mid);
  margin: 0 0 16px;
}
.blog-card-cta {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent-text);
}

/* ── Paginación ──────────────────────────────────────────── */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.blog-pagination a, .blog-pagination span {
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy-deep);
  text-decoration: none;
  font-size: .9rem;
  transition: all 200ms ease;
}
.blog-pagination a:hover { background: var(--off-white); border-color: var(--accent); }
.blog-pagination .current { background: var(--navy-deep); color: var(--white); border-color: var(--navy-deep); }

/* Mobile blog */
@media (max-width: 768px) {
  .article-title { font-size: 1.75rem; }
  .article-content { font-size: 1rem; }
  .article-content h2 { font-size: 1.35rem; }
  .article-content h3 { font-size: 1.1rem; }
  .article-related-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-cta { padding: 28px 20px; }
  .article-cta-title { font-size: 1.2rem; }
}
