/* ══════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════ */
:root {
  /* Backgrounds */
  --bg-deep:    #060e1a;
  --bg-base:    #0a1628;
  --bg-surface: #0f1f38;
  --navy:       #0a1628;
  --navy2:      #0f1f38;
  --navy3:      #162e4e;

  /* Glass */
  --glass:        rgba(255,255,255,0.06);
  --glass-2:      rgba(255,255,255,0.10);
  --glass-border: rgba(255,255,255,0.10);
  --glass-border-2: rgba(255,255,255,0.20);

  /* Accents */
  --gold:      #c4921a;
  --gold2:     #d9a820;
  --gold-glow: rgba(196,146,26,0.30);
  --sky:       #4e9ec8;
  --sky2:      #78bdd8;
  --sky-glow:  rgba(78,158,200,0.25);
  --yellow:    #f5c842;
  --red:       #e05555;
  --green:     #4caa78;

  /* Text */
  --white:   #eef4fb;
  --text:    rgba(200,218,236,0.88);
  --muted:   rgba(200,215,228,0.42);
  --divider: rgba(200,215,228,0.10);
  --divider2:rgba(200,215,228,0.06);
  --silver:  #bccedd;
  --silver2: #dce8f2;

  /* Effects */
  --blur-glass: blur(20px) saturate(160%);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.05) inset;
  --shadow-glow-gold: 0 0 40px rgba(196,146,26,0.20);
  --shadow-glow-sky:  0 0 40px rgba(78,158,200,0.20);
  --radius: 12px;
  --radius-sm: 8px;
  --ease-out: cubic-bezier(0.22,1,0.36,1);
  --ease-in-out: cubic-bezier(0.4,0,0.2,1);
}

/* ══════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; color-scheme:dark; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* ── Animated Mesh Background ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 800px 600px at 80% -10%, rgba(78,158,200,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 600px 500px at -10% 90%, rgba(196,146,26,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 500px 400px at 50% 110%, rgba(78,158,200,0.06) 0%, transparent 65%);
  animation: ambientShift 18s ease-in-out infinite alternate;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  opacity: 0.5;
}
@keyframes ambientShift {
  0%   { opacity: 0.8; transform: scale(1)    rotate(0deg); }
  50%  { opacity: 1.0; transform: scale(1.05) rotate(1deg); }
  100% { opacity: 0.8; transform: scale(1)    rotate(-1deg); }
}

/* ══════════════════════════════════════════
   SCROLL PROGRESS
══════════════════════════════════════════ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300;
  background: linear-gradient(90deg, var(--gold2), var(--sky), var(--sky2));
  transform-origin: left; transform: scaleX(0);
  pointer-events: none;
  box-shadow: 0 0 8px rgba(120,189,216,0.6);
}

/* ══════════════════════════════════════════
   NAV — GLASSMORPHISM
══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(6,14,26,0.75);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
}
.nav-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px 10px 18px; gap: 12px;
}
.nav-brand {
  display: inline-flex; align-items: center; text-decoration: none;
  padding: 4px 0;
  border: none; background: none;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.nav-brand:hover {
  transform: perspective(500px) rotateY(-5deg) translateZ(4px);
}

/* ── Logo frame with animated border ── */
.logo-frame {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.nav-brand-logo {
  height: 88px; width: auto; display: block;
  mix-blend-mode: screen; opacity: 0.95;
  position: relative; z-index: 1;
}
.logo-frame-svg {
  position: absolute;
  inset: -3px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}
.logo-frame-rect {
  opacity: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* wrapper for WA + tel + consultanos label */
.nav-actions {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; margin-left: auto; flex-shrink: 0;
}
.nav-actions-btns {
  display: flex; align-items: center; gap: 10px;
}
/* clip container — hides text outside its bounds */
.nav-consultanos-wrap {
  display: none;
  overflow: hidden;
  width: 108px;
  height: 16px;
}
.nav-consultanos {
  display: block;
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(188,206,221,0.95);
  white-space: nowrap;
  animation: consultanos-travel 8s cubic-bezier(0.4,0,0.2,1) infinite;
}
@keyframes consultanos-travel {
  0%    { transform: translateX(-110%); opacity: 1; }
  26%   { transform: translateX(0);     opacity: 1; }
  32%   { opacity: 0.05; transform: translateX(0); }
  38%   { opacity: 1;    transform: translateX(0); }
  44%   { opacity: 0.05; transform: translateX(0); }
  51%   { opacity: 1;    transform: translateX(0); }
  57%   { transform: translateX(0);     opacity: 1; }
  97%   { transform: translateX(110%);  opacity: 1; }
  100%  { transform: translateX(110%);  opacity: 1; }
}

.nav-cta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  color: #25D366; text-decoration: none;
  padding: 10px 16px; border-radius: 6px;
  border: 1.5px solid rgba(37,211,102,0.5);
  background: rgba(37,211,102,0.06);
  flex-shrink: 0; white-space: nowrap;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.nav-cta:hover {
  background: rgba(37,211,102,0.12);
  border-color: #25D366;
  box-shadow: 0 0 20px rgba(37,211,102,0.20);
}
.nav-tel {
  display: none;
  align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  color: var(--silver); text-decoration: none;
  padding: 10px 12px; border-radius: 6px;
  border: 1px solid rgba(188,206,221,0.18);
  background: rgba(255,255,255,0.03);
  flex-shrink: 0; white-space: nowrap;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
  letter-spacing: 0.5px;
}
.nav-tel:hover {
  color: var(--white);
  border-color: rgba(188,206,221,0.40);
  background: rgba(255,255,255,0.06);
}
.nav-tel svg { color: var(--sky); flex-shrink: 0; }
.nav-menu-wrap {
  position: relative;
  padding-top: 7px;
}
.nav-menu-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(196,146,26,0.22) 18%,
    rgba(78,158,200,0.38) 50%,
    rgba(196,146,26,0.22) 82%,
    transparent 100%
  );
}
.nav-menu { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav-menu::-webkit-scrollbar { display: none; }
.nav-arr {
  display: flex; align-items: center; position: absolute;
  top: 16px; bottom: 0; z-index: 10;
  border: none; color: var(--muted); font-size: 14px; font-weight: 700;
  cursor: pointer; padding: 0 10px;
  transition: color 0.2s; -webkit-tap-highlight-color: transparent;
  background: transparent;
}
.nav-arr-l { left: 0; background: linear-gradient(90deg, rgba(6,14,26,0.95) 60%, transparent); }
.nav-arr-r { right: 0; background: linear-gradient(270deg, rgba(6,14,26,0.95) 60%, transparent); }
.nav-arr.hidden { opacity: 0; pointer-events: none; }
.nav-arr:hover { color: var(--silver); }
.nav-menu a {
  font-size: 12px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase;
  color: rgba(188,206,221,0.55); text-decoration: none;
  padding: 10px 20px 13px; white-space: nowrap; flex-shrink: 0;
  border-right: 1px solid var(--divider2);
  position: relative; transition: color 0.25s;
}
/* pill background for hover / active */
.nav-menu a::before {
  content: ''; position: absolute; inset: 3px 5px 5px;
  border-radius: 7px;
  background: rgba(78,158,200,0);
  transition: background 0.25s;
  z-index: -1;
}
.nav-menu a:hover::before { background: rgba(188,206,221,0.05); }
.nav-menu a.active::before { background: rgba(78,158,200,0.10); border: 1px solid rgba(78,158,200,0.18); }
/* underline bar */
.nav-menu a::after {
  content: ''; position: absolute; bottom: 0; left: 20px; right: 20px;
  height: 3px; background: linear-gradient(90deg, var(--gold2), var(--sky));
  transform: scaleX(0); transition: transform 0.3s var(--ease-out);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 10px rgba(78,158,200,0.55);
}
.nav-menu a:hover { color: var(--silver); }
.nav-menu a.active { color: var(--sky2); text-shadow: 0 0 18px rgba(78,158,200,0.40); }
.nav-menu a.active::after { transform: scaleX(1); }

/* ══════════════════════════════════════════
   MAIN
══════════════════════════════════════════ */
main { min-height: 100vh; padding-top: 147px; position: relative; z-index: 1; }

/* ══════════════════════════════════════════
   HERO — DRAMATIC
══════════════════════════════════════════ */
.hero {
  padding: 60px 24px 64px;
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(8,18,34,0.95) 0%, rgba(10,22,40,0.8) 100%);
  border-bottom: 1px solid var(--divider);
}
.hero::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, transparent 0%, var(--gold) 25%, var(--sky) 75%, transparent 100%);
  opacity: 0.8;
}
.hero-svg-decor {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 320px; height: 320px; opacity: 0.06; pointer-events: none;
}
.hero-tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; opacity: 0; animation: fadeUp 0.8s var(--ease-out) forwards 0.1s; }
.hero-tag-line { width: 28px; height: 1px; background: var(--gold2); }
.hero-tag-text { font-size: 9px; font-weight: 700; letter-spacing: 3.5px; text-transform: uppercase; color: var(--sky); }

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 9vw, 54px);
  font-weight: 900; line-height: 1.08;
  color: var(--white); margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) forwards 0.25s;
  text-align: center;
}
.hero-title .arca {
  background: linear-gradient(135deg, var(--sky2) 0%, var(--sky) 50%, var(--gold2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(78,158,200,0.35));
}
.hero-divider {
  width: 56px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--sky), transparent);
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) forwards 0.4s;
}
.hero-lead {
  font-size: 15px; font-weight: 300; line-height: 1.85;
  color: var(--text); margin-bottom: 36px;
  text-align: justify;
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) forwards 0.5s;
}
.hero-btns {
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) forwards 0.6s;
}
.btn-primary {
  display: block; text-align: center; text-decoration: none;
  background: linear-gradient(135deg, var(--sky) 0%, #3a8ab5 100%);
  color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 18px 28px; border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px rgba(78,158,200,0.3), 0 8px 32px rgba(78,158,200,0.30);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(78,158,200,0.5), 0 16px 48px rgba(78,158,200,0.40);
}
.btn-secondary {
  display: block; text-align: center; text-decoration: none;
  background: var(--glass); color: var(--silver2);
  font-size: 12px; font-weight: 400; letter-spacing: 1px;
  padding: 17px 28px; border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border-2);
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.btn-secondary:hover {
  background: var(--glass-2);
  border-color: rgba(200,215,228,0.35);
  transform: translateY(-2px);
}

/* ── FRANJA ESTADÍSTICAS (glassmorphic) ── */
.stats-strip {
  display: flex; align-items: center; justify-content: space-around;
  padding: 28px 16px 0; margin-top: 36px;
  border-top: 1px solid var(--divider);
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) forwards 0.75s;
}
.stats-strip.fade { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.stats-strip.fade.on { opacity: 1; transform: none; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px,7vw,42px); font-weight: 900;
  line-height: 1; letter-spacing: -1px;
  background: linear-gradient(135deg, var(--sky2) 0%, var(--white) 60%, var(--gold2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 16px rgba(78,158,200,0.4));
  font-variant-numeric: tabular-nums;
}
.stat-desc { font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); line-height: 1.4; text-align: center; }
.stat-cargo-ex { font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); display: block; text-align: center; margin: 0; padding: 0; line-height: 1.1; }
.stat-cargo-main {
  font-family: 'Playfair Display', serif;
  font-size: clamp(13px,3.5vw,16px); font-weight: 700;
  background: linear-gradient(135deg, var(--sky2), var(--white));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.1; text-align: center; display: block; margin: 0; padding: 0;
}
.stat-cargo-org { font-size: 9px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--silver); display: block; text-align: center; margin: 0; padding: 0; line-height: 1.1; }
.stat-num-small { font-family: 'Playfair Display', serif; font-size: clamp(13px,3.5vw,17px); font-weight: 700; color: var(--sky2); line-height: 1.2; letter-spacing: 0.3px; text-align: center; display: block; }
.stat-sep { width: 1px; height: 48px; background: linear-gradient(180deg, transparent, var(--divider), transparent); flex-shrink: 0; }

/* ══════════════════════════════════════════
   ALERTA — IMPACTO
══════════════════════════════════════════ */
.alerta {
  background: rgba(8,14,26,0.98);
  border-top: 1px solid rgba(176,42,42,0.35);
  border-bottom: 1px solid rgba(176,42,42,0.18);
  border-left: 4px solid #b02a2a;
  overflow: hidden;
  position: relative;
}
/* radar shimmer que cruza el strip cada 4s */
.alerta::before {
  content: ''; position: absolute;
  top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(176,42,42,0.09) 50%, transparent 80%);
  animation: alertaRadar 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes alertaRadar {
  0%   { left: -60%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}
.alerta-inner {
  display: flex; align-items: center; height: 56px;
  margin: 0; padding: 0;
}
/* live dot pulsante — rojo urgencia */
.alerta-text::before {
  content: '';
  display: inline-block; flex-shrink: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: #e03535;
  margin-right: 12px;
  animation: liveDot 1.4s ease-in-out infinite;
  box-shadow: 0 0 7px rgba(224,53,53,0.80);
}
@keyframes liveDot {
  0%, 100% { opacity: 1;    transform: scale(1);    }
  50%       { opacity: 0.22; transform: scale(0.60); }
}
.alerta-text {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 0 20px;
  font-size: 14px; line-height: 1.4;
  color: var(--silver); letter-spacing: 0.3px; margin: 0;
  text-align: center;
}
.alerta-text strong { color: var(--white); font-weight: 700; }
/* doble heartbeat — carmesí profesional */
.alerta-cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 28px; background: #b02a2a;
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: #fff;
  white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background 0.2s; flex-shrink: 0;
  min-width: 150px; align-self: stretch;
  animation: alertaHeart 2.2s ease-in-out infinite;
  transform-origin: center;
}
@keyframes alertaHeart {
  0%        { transform: scale(1);    box-shadow: -4px 0 10px rgba(176,42,42,0.30); }
  12%       { transform: scale(1.06); box-shadow: -4px 0 34px rgba(224,53,53,0.80); }
  24%       { transform: scale(1.01); box-shadow: -4px 0 16px rgba(176,42,42,0.45); }
  36%       { transform: scale(1.04); box-shadow: -4px 0 26px rgba(224,53,53,0.65); }
  55%, 100% { transform: scale(1);    box-shadow: -4px 0 10px rgba(176,42,42,0.30); }
}
.alerta-cta:hover { background: #c93333; animation-play-state: paused; }

/* ══════════════════════════════════════════
   HERO STATS — GLASS 3D CARDS
══════════════════════════════════════════ */
.hero-stats {
  padding: 48px 24px;
  background: linear-gradient(180deg, rgba(10,22,40,0.95) 0%, rgba(15,31,56,0.95) 100%);
  border-bottom: 1px solid var(--divider);
  position: relative;
}
.hero-stats::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%); opacity: 0.5;
}
h2.stats-label {
  font-size: 9px; font-weight: 700; letter-spacing: 3.5px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 24px; display: block; font-family: inherit;
}
.stat-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; perspective: 800px; }
.stat-row:last-child { margin-bottom: 0; }
.stat-box {
  flex: 1; padding: 18px 14px; border-radius: var(--radius-sm); text-align: center;
  position: relative; overflow: hidden;
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  cursor: default;
}
.stat-box::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%); }
.stat-box.from { background: rgba(196,146,26,0.07); border: 1px solid rgba(196,146,26,0.22); }
.stat-box.to   { background: rgba(78,158,200,0.07); border: 1px solid rgba(78,158,200,0.22); }
.stat-box:hover { transform: translateY(-4px) scale(1.02); }
.stat-box.from:hover { box-shadow: 0 12px 40px rgba(196,146,26,0.18); }
.stat-box.to:hover   { box-shadow: 0 12px 40px rgba(78,158,200,0.18); }
.stat-lbl { font-size: 8px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.stat-box.from .stat-lbl { color: rgba(196,146,26,0.72); }
.stat-box.to   .stat-lbl { color: rgba(78,158,200,0.72); }
.stat-val { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; display: block; line-height: 1; }
.stat-box.from .stat-val { color: var(--gold2); text-decoration: line-through; text-decoration-color: rgba(196,146,26,0.38); }
.stat-box.to   .stat-val { color: var(--sky2); }
.stat-arrow { display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--muted); flex-shrink: 0; width: 28px; }

/* ══════════════════════════════════════════
   BLOQUES — GLASS CARD
══════════════════════════════════════════ */
.block {
  background: rgba(10,22,40,0.60);
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  padding: 56px 24px;
  border-bottom: none;
  position: relative;
  overflow: visible;
}
.block.alt {
  background: rgba(15,31,56,0.70);
}
.block:last-child::after { display: none; }

.lbl { display: flex; align-items: center; gap: 10px; font-size: 9px; font-weight: 700; letter-spacing: 3.5px; text-transform: uppercase; color: var(--sky); margin-bottom: 28px; }
.lbl-line { width: 24px; height: 1px; background: linear-gradient(90deg, var(--gold2), var(--sky)); flex-shrink: 0; }

p { font-size: 15px; line-height: 1.88; color: var(--text); margin-bottom: 16px; font-weight: 300; text-align: justify; }
p:last-child { margin-bottom: 0; }
p strong { color: var(--silver2); font-weight: 600; }
p em { color: var(--silver2); font-style: italic; }
.p-sm { font-size: 14px; line-height: 1.8; }

.sep { display: block; height: 1px; margin: 28px 0; background: linear-gradient(90deg, transparent 0%, rgba(196,146,26,0.40) 50%, transparent 100%); }
.sep-line, .sep-dot { display: none; }

/* ══════════════════════════════════════════
   FOTO PERFIL
══════════════════════════════════════════ */
.sobre-foto { width: 100%; max-width: 320px; margin: 0 auto 32px auto; display: block; position: relative; overflow: hidden; border-radius: var(--radius); }
.sobre-col-foto { margin-bottom: 32px; }
.sobre-col-texto { min-width: 0; }
.sobre-foto img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border-2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(78,158,200,0.10);
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), box-shadow 0.45s ease;
  cursor: pointer;
}
.sobre-foto-link { display: block; position: relative; border-radius: var(--radius); overflow: hidden; }
.sobre-foto-link:hover img,
.sobre-foto-link:focus-visible img {
  transform: scale(1.045);
  box-shadow: 0 14px 56px rgba(0,0,0,0.60), 0 0 0 1px rgba(78,158,200,0.22), 0 0 48px rgba(78,158,200,0.15);
}
.sobre-foto-cta {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(to top, rgba(8,14,26,0.88) 60%, transparent);
  color: var(--gold2);
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.sobre-foto-link:hover .sobre-foto-cta,
.sobre-foto-link:focus-visible .sobre-foto-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   SOBRE MÍ
══════════════════════════════════════════ */
.sobre-highlight {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--sky);
  border-radius: var(--radius-sm);
  padding: 24px 20px; margin-bottom: 32px;
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
}
.sobre-highlight-text { font-family: 'Playfair Display', serif; font-size: clamp(16px,4.5vw,21px); font-weight: 700; line-height: 1.55; color: var(--white); text-align: center; }
.sobre-highlight-text .hl-gold { color: var(--gold2); text-shadow: 0 0 20px var(--gold-glow); }
.sobre-highlight-text .hl-sky  { color: var(--sky2); text-shadow: 0 0 20px var(--sky-glow); }
.ryasa-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sky); text-decoration: none; margin-top: 32px; padding-bottom: 3px; border-bottom: 1px solid rgba(106,174,212,0.3); transition: border-color 0.25s, color 0.25s; }
.ryasa-link:hover { border-color: var(--sky); color: var(--sky2); }
.ryasa-link-arrow { font-size: 14px; transition: transform 0.25s; }
.ryasa-link:hover .ryasa-link-arrow { transform: translateX(4px); }

/* ══════════════════════════════════════════
   SERVICIOS
══════════════════════════════════════════ */
.serv-block { padding-bottom: 40px; }
.serv-block + .serv-block { padding-top: 40px; }
.serv-title-block {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--sky);
  border-radius: var(--radius-sm);
  padding: 20px 22px; margin-bottom: 24px;
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.serv-title-block:hover {
  background: var(--glass-2);
  border-color: rgba(78,158,200,0.30);
  box-shadow: 0 0 32px rgba(78,158,200,0.10);
}
.serv-title { font-family: 'Playfair Display', serif; font-size: clamp(20px,5vw,26px); font-weight: 700; color: var(--white); line-height: 1.2; text-align: center; margin: 0; }

.pull-quote {
  margin: 28px 0 20px; padding: 22px 22px 22px 26px;
  background: rgba(212,170,74,0.06);
  border-left: 3px solid var(--gold2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: inset 0 0 0 1px rgba(212,170,74,0.08);
}
.pull-quote p { font-family: 'Playfair Display', serif; font-size: clamp(15px,4vw,18px); font-weight: 700; font-style: italic; color: var(--silver2); line-height: 1.55; margin-bottom: 0; text-align: left; }

.cta-inline {
  display: block; text-align: center; text-decoration: none;
  background: var(--glass); color: var(--sky);
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 15px 28px; border-radius: var(--radius-sm); margin-top: 24px;
  border: 1px solid rgba(78,158,200,0.25);
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.cta-inline:hover {
  background: var(--glass-2);
  border-color: rgba(78,158,200,0.55);
  box-shadow: 0 0 24px rgba(78,158,200,0.15);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   EXPERIENCIA pull quote
══════════════════════════════════════════ */
.exp-pull {
  margin-bottom: 40px; padding: 32px 28px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  position: relative; overflow: hidden;
}
.exp-pull::before {
  content: '\201C'; position: absolute; top: -16px; left: 14px;
  font-family: 'Playfair Display', serif; font-size: 120px; font-weight: 900;
  color: rgba(78,158,200,0.07); line-height: 1; pointer-events: none;
}
.exp-pull-main {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px,5vw,25px); font-weight: 700; font-style: italic;
  color: var(--white); line-height: 1.4; text-align: center; margin-bottom: 14px;
}
.exp-pull-main em { color: var(--sky2); font-style: normal; text-shadow: 0 0 20px var(--sky-glow); }
.exp-pull-sub { font-size: 12px; font-weight: 400; font-style: italic; color: var(--muted); text-align: center; line-height: 1.6; letter-spacing: 0.3px; }

/* ══════════════════════════════════════════
   CASOS — 3D GLASS CARDS
══════════════════════════════════════════ */
.caso-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 30px 24px; margin-bottom: 22px;
  position: relative; overflow: hidden;
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
  transform-style: preserve-3d;
}
.caso-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold2), var(--sky), transparent);
  opacity: 0.6;
}
.caso-card::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.caso-card:hover {
  transform: translateY(-6px) perspective(800px) rotateX(2deg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.50), 0 0 40px rgba(78,158,200,0.10);
  border-color: var(--glass-border-2);
}
.caso-card:last-of-type { margin-bottom: 0; }
.caso-empresa { font-size: 9px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--sky); display: block; margin-bottom: 3px; }
.caso-impuesto { font-size: 11px; color: var(--muted); display: block; margin-bottom: 24px; font-style: italic; }
.caso-nums { display: flex; align-items: stretch; gap: 12px; margin-bottom: 22px; }
.cnum { flex: 1; padding: 18px 12px; border-radius: var(--radius-sm); text-align: center; position: relative; overflow: hidden; transition: transform 0.25s; }
.cnum::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%); }
.cnum.from { background: rgba(160,40,40,0.12); border: 1px solid rgba(192,57,43,0.22); }
.cnum.to   { background: rgba(24,100,55,0.12);  border: 1px solid rgba(30,122,69,0.22); }
.cnum-lbl { font-size: 8px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.cnum.from .cnum-lbl { color: rgba(220,100,100,0.70); }
.cnum.to   .cnum-lbl { color: rgba(80,180,120,0.70); }
.cnum-val { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; display: block; line-height: 1; }
.cnum.from .cnum-val { color: #c87070; text-decoration: line-through; text-decoration-color: rgba(200,112,112,0.4); }
.cnum.to   .cnum-val { color: #4caa78; text-shadow: 0 0 16px rgba(76,170,120,0.4); }
.cnum-arrow { display: flex; align-items: center; font-size: 16px; color: var(--muted); flex-shrink: 0; }
.caso-penal {
  background: rgba(255,255,255,0.03); padding: 16px 18px;
  border-radius: var(--radius-sm); border-left: 2px solid var(--gold2);
  margin-top: 18px;
}
.caso-penal-tag { font-size: 8px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--sky); font-weight: 700; margin-bottom: 6px; display: block; }
.caso-penal p { font-size: 13px; line-height: 1.7; }
.caso-penal strong { color: var(--silver2); }
.resultado-cero {
  display: block; text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 52px; font-weight: 900;
  background: linear-gradient(135deg, #4caa78, #a8efc8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin: 14px 0 10px;
  filter: drop-shadow(0 0 24px rgba(76,170,120,0.5));
}
.casos-cierre {
  margin-top: 32px; padding: 26px 22px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-left: 2px solid var(--gold2);
  border-radius: var(--radius-sm);
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
}
.casos-cierre p { font-size: 14px; font-style: italic; line-height: 1.85; color: var(--silver); }

/* ══════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════ */
.contacto-hook-block {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--sky);
  border-radius: var(--radius-sm);
  padding: 28px 24px; margin-bottom: 32px;
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  box-shadow: 0 0 40px rgba(78,158,200,0.06);
}
.contacto-hook { font-family: 'Playfair Display', serif; font-size: clamp(22px,6vw,34px); font-weight: 700; line-height: 1.2; color: var(--white); margin: 0; text-align: center !important; }
.contacto-hook em { color: var(--sky2); font-style: italic; text-shadow: 0 0 24px var(--sky-glow); }
.wsp-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; background: rgba(37,211,102,0.07);
  color: #25D366; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 19px 28px; border-radius: var(--radius-sm); margin-top: 16px;
  border: 1.5px solid rgba(37,211,102,0.40);
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.wsp-btn:hover {
  background: rgba(37,211,102,0.13);
  border-color: #25D366;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.20);
}
.contacto-hours {
  margin-top: 20px; padding: 20px 22px;
  background: var(--glass);
  border: 1px solid rgba(78,158,200,0.18);
  border-radius: var(--radius-sm); text-align: center;
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
}
.contacto-hours-text { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--sky2); letter-spacing: 0.3px; display: block; }
.contacto-hours-sub { font-size: 11px; color: var(--muted); margin-top: 4px; display: block; letter-spacing: 0.5px; }

/* ══════════════════════════════════════════
   PROFESIONALES — FORMULARIO
══════════════════════════════════════════ */
.prof-form { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.prof-form-field { display: flex; flex-direction: column; gap: 6px; }
.prof-form-field label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.prof-form-optional { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 10px; opacity: 0.7; }
.prof-form-field input,
.prof-form-field select,
.prof-form-field textarea {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  width: 100%;
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
}
.prof-form-field input::placeholder,
.prof-form-field textarea::placeholder { color: var(--muted); }
.prof-form-field input:focus,
.prof-form-field select:focus,
.prof-form-field textarea:focus {
  border-color: var(--sky);
  background: var(--glass-2);
  box-shadow: 0 0 0 3px rgba(78,158,200,0.12);
}
.prof-form-field select { appearance: none; cursor: pointer; }
.prof-form-field textarea { resize: vertical; min-height: 80px; }
.prof-form-btn {
  margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(37,211,102,0.08);
  color: #25D366;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 18px 28px; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(37,211,102,0.40);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.prof-form-btn:hover {
  background: rgba(37,211,102,0.14);
  border-color: #25D366;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.20);
}

/* ══════════════════════════════════════════
   INTRO SUMMARY
══════════════════════════════════════════ */
#intro-summary {
  border-top: 1px solid rgba(196,146,26,0.18);
  border-bottom: 1px solid var(--divider);
  border-left: 3px solid rgba(196,146,26,0.30);
  background: rgba(12,24,44,0.80);
  box-shadow: 0 8px 56px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.03);
}
#intro-summary p { text-align: justify; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: rgba(4,9,17,0.95);
  padding: 36px 24px; text-align: center;
  border-top: 1px solid var(--divider2);
  position: relative;
}
footer::before {
  content: ''; position: absolute; top: 0; left: 48px; right: 48px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-glow), var(--sky-glow), transparent);
}
.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  color: rgba(184,200,216,0.82);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  margin-bottom: 14px; line-height: 1.2;
}
.footer-titles {
  font-family: var(--font-body, sans-serif);
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold2); opacity: 0.90;
}
footer p { font-size: 11px; line-height: 2.1; color: var(--muted); margin-bottom: 0; text-align: center; }
footer a { color: var(--sky); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--sky2); }

/* ── SOCIAL ICONS ── */
.social-links { display: flex; justify-content: center; gap: 20px; margin-top: 20px; margin-bottom: 6px; }
.social-icon {
  display: flex; align-items: center; padding: 6px;
  border-radius: 8px; transition: color 0.25s, transform 0.28s, box-shadow 0.28s;
  opacity: 0.72;
}
.social-icon:hover { transform: translateY(-3px) scale(1.18); opacity: 1; }

/* colores de marca por plataforma */
/* X */
.social-links a:nth-child(1)       { color: #E7E9EA; }
.social-links a:nth-child(1):hover { color: #fff; box-shadow: 0 4px 18px rgba(231,233,234,0.25); }
/* Instagram */
.social-links a:nth-child(2)       { color: #E1306C; }
.social-links a:nth-child(2):hover { color: #f0508a; box-shadow: 0 4px 18px rgba(225,48,108,0.35); }
/* TikTok */
.social-links a:nth-child(3)       { color: #69C9D0; }
.social-links a:nth-child(3):hover { color: #8de0e6; box-shadow: 0 4px 18px rgba(105,201,208,0.30); }
/* LinkedIn */
.social-links a:nth-child(4)       { color: #0A66C2; }
.social-links a:nth-child(4):hover { color: #2d84d8; box-shadow: 0 4px 18px rgba(10,102,194,0.35); }
/* YouTube */
.social-links a:nth-child(5)       { color: #FF0000; }
.social-links a:nth-child(5):hover { color: #ff4040; box-shadow: 0 4px 18px rgba(255,0,0,0.30); }

/* ══════════════════════════════════════════
   SCROLL PROGRESS
══════════════════════════════════════════ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300;
  background: linear-gradient(90deg, var(--gold2), var(--sky), var(--sky2));
  transform-origin: left; transform: scaleX(0); pointer-events: none;
  box-shadow: 0 0 8px rgba(120,189,216,0.6);
}

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
.fade { opacity: 0; transform: translateY(14px); transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out); }
.fade.on { opacity: 1; transform: none; }
.fade-d1 { transition-delay: 0.1s; }
.fade-d2 { transition-delay: 0.2s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   FOCUS
══════════════════════════════════════════ */
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

/* ══════════════════════════════════════════
   COUNTER
══════════════════════════════════════════ */
[data-count] { font-variant-numeric: tabular-nums; }

/* ══════════════════════════════════════════
   FAQ — GLASSMORPHIC ACCORDION
══════════════════════════════════════════ */
.faq-item { margin-bottom: 12px; }
.faq-item h2 { font-size: inherit; font-weight: inherit; margin: 0; }
.faq-question {
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px,3.8vw,20px); font-weight: 700;
  color: rgba(188,220,235,0.92); line-height: 1.3; margin-bottom: 0;
  background: linear-gradient(90deg, rgba(78,158,200,0.10) 0%, rgba(255,255,255,0.03) 45%);
  border: 1px solid var(--glass-border);
  border-left: 3px solid rgba(78,158,200,0.55);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; text-align: left;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
}
.faq-question:hover {
  background: linear-gradient(90deg, rgba(78,158,200,0.16) 0%, rgba(255,255,255,0.05) 50%);
  border-color: rgba(78,158,200,0.42);
  color: rgba(210,232,242,0.98);
  box-shadow: 0 0 24px rgba(78,158,200,0.08);
}
.faq-item.open .faq-question {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-left-color: rgba(196,146,26,0.70);
  background: linear-gradient(90deg, rgba(196,146,26,0.09) 0%, rgba(255,255,255,0.04) 50%);
  color: rgba(220,200,160,0.96);
}
.faq-chevron {
  flex-shrink: 0; margin-left: 16px;
  width: 18px; height: 18px; color: var(--sky);
  transition: transform 0.38s var(--ease-out);
  display: inline-flex; align-items: center; justify-content: center;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.48s var(--ease-out);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(78,158,200,0.15);
  border-top: none; border-left: 3px solid rgba(78,158,200,0.18);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
}
.faq-answer-inner { padding: 22px 22px 18px; }
.faq-answer p { text-align: justify; }

/* ══════════════════════════════════════════
   VISUALLY HIDDEN (SEO)
══════════════════════════════════════════ */
.visually-hidden-heading {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ══════════════════════════════════════════
   DESKTOP 768px+
══════════════════════════════════════════ */
@media (min-width: 768px) {
  :root { --side: max(40px, calc((100vw - 880px) / 2)); }

  .nav-top { max-width: 1200px; margin: 0 auto; padding: 14px 40px; }
  .nav-brand-logo { height: 140px; }
  .nav-actions { margin-right: clamp(120px, 16vw, 260px); }
  .nav-consultanos-wrap { display: block; }
  .nav-cta { font-size: 13px; padding: 13px 22px; }
  .nav-tel { display: flex; padding: 13px 16px; }
  .nav-arr { display: none !important; }
  .nav-menu { justify-content: flex-start; overflow-x: visible; }
  .nav-menu a { padding: 10px 22px 13px; font-size: 12px; }

  main { padding-top: 145px; }

  .hero { padding: 110px var(--side) 84px; }
  .hero-title { font-size: clamp(44px,5.5vw,68px); line-height: 1.04; }
  .hero-lead  { font-size: 17px; line-height: 1.95; }
  .hero-btns  { flex-direction: row; align-items: center; justify-content: center; gap: 16px; }
  .btn-primary  { display: inline-block; width: auto; min-width: 240px; }
  .btn-secondary{ display: inline-block; width: auto; }
  .stats-strip  { padding: 44px 0 8px; }
  .stat-num     { font-size: clamp(30px,3.5vw,48px); }

  .hero-svg-decor { right: var(--side); opacity: 0.08; }

  .alerta-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

  .hero-stats { padding: 56px var(--side); }
  .stat-row { gap: 18px; }
  .stat-val { font-size: 30px; }
  .stat-box { padding: 22px; }

  .block { max-width: 880px; margin: 0 auto; padding: 80px 40px; }
  .page-sobre .block { max-width: none; padding: 80px 40px; }

  p { font-size: 16px; line-height: 1.95; text-align: justify; }

  /* Sobre mí grid */
  .sobre-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 56px;
    align-items: start;
    border-left: 3px solid rgba(196,146,26,0.28);
    padding-left: 28px;
  }
  .page-sobre .sobre-foto { float: none; width: 100%; max-width: none; margin: 0; }
  .sobre-col-foto .sobre-foto {
    position: sticky;
    top: 130px;
  }
  .sobre-col-foto .sobre-foto img {
    border: 1px solid rgba(78,158,200,0.30);
    box-shadow: 0 8px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(78,158,200,0.10), 0 0 50px rgba(78,158,200,0.07);
  }
  .page-sobre .ryasa-link { display: block; width: fit-content; }
  .page-sobre .block::after { display: none; }

  /* Servicios dos columnas */
  .page-servicios .block { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; align-items: start; }
  .page-servicios .lbl { grid-column: 1 / -1; }
  .page-servicios .sep { display: none; }
  .serv-block { padding-top: 0 !important; padding-bottom: 0 !important; }
  .serv-title { font-size: clamp(20px,2.2vw,28px); }

  .exp-pull-main { font-size: clamp(20px,2.5vw,28px); }
  .caso-nums { gap: 16px; }
  .cnum-val { font-size: 26px; }

  .wsp-btn { display: flex; width: fit-content; min-width: 300px; margin: 16px auto 0; text-align: center; }
  .contacto-hook { font-size: clamp(26px,3vw,38px); }

  footer { padding: 44px var(--side); }
}

/* ══════════════════════════════════════════
   WIDE 1100px+
══════════════════════════════════════════ */
@media (min-width: 1100px) {
  .hero-lead { font-size: 18px; }
  .block { padding: 88px 40px; }
  .hero-svg-decor { opacity: 0.10; }
}

/* ══════════════════════════════════════════
   GRÁFICO IMPACTO — casos.html
══════════════════════════════════════════ */
.casos-impact-visual {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 22px; margin-bottom: 32px;
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
}
.impact-bar-wrap { margin-bottom: 18px; }
.impact-bar-wrap:last-child { margin-bottom: 0; }
.impact-bar-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.impact-bar-track {
  height: 32px; background: rgba(255,255,255,0.04);
  border-radius: 4px; overflow: hidden;
  border: 1px solid var(--glass-border);
  position: relative;
}
.impact-bar {
  height: 100%; display: flex; align-items: center;
  min-width: 2px; transition: width 1.6s cubic-bezier(0.22,1,0.36,1);
  border-radius: 3px;
  position: relative;
}
.impact-bar span {
  font-family: 'Playfair Display', serif;
  font-size: 12px; font-weight: 700; padding: 0 10px;
  white-space: nowrap;
}
.impact-bar-from  { background: linear-gradient(90deg, rgba(192,57,43,0.6), rgba(192,57,43,0.35)); }
.impact-bar-from  span { color: #d87070; }
.impact-bar-from2 { background: linear-gradient(90deg, rgba(192,57,43,0.5), rgba(192,57,43,0.28)); }
.impact-bar-from2 span { color: #d87070; }
.impact-bar-to    { background: linear-gradient(90deg, rgba(30,122,69,0.7), rgba(30,122,69,0.45)); min-width: 80px; }
.impact-bar-to    span { color: #5cba88; }
.impact-bar-zero  { background: transparent; min-width: 0; }

/* ══════════════════════════════════════════
   PROCESO TIMELINE (index)
══════════════════════════════════════════ */
.process-timeline { padding: 0; }
.process-lbl {
  font-size: 9px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px; display: block;
}
.process-steps {
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 4px;
}
.process-steps::-webkit-scrollbar { display: none; }
.process-step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex-shrink: 0; min-width: 72px;
}
.process-step-icon {
  width: 52px; height: 52px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--sky2);
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.process-step:hover .process-step-icon {
  border-color: var(--sky);
  box-shadow: 0 0 24px var(--sky-glow);
}
.process-step-label { font-size: 10px; font-weight: 600; color: var(--silver); text-align: center; line-height: 1.3; }
.process-step-risk {
  font-size: 8px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 20px;
}
.risk-low   { background: rgba(78,158,200,0.12);  color: var(--sky2); border: 1px solid rgba(78,158,200,0.25); }
.risk-mid   { background: rgba(245,200,66,0.10);  color: var(--yellow); border: 1px solid rgba(245,200,66,0.25); }
.risk-high  { background: rgba(192,85,26,0.13);   color: #d4742a; border: 1px solid rgba(192,85,26,0.30); }
.risk-final { background: rgba(176,42,42,0.13);   color: #e03535; border: 1px solid rgba(176,42,42,0.30);
              font-size: 7.5px; letter-spacing: 1px; }
.process-connector {
  flex: 1; min-width: 20px; height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--gold2));
  opacity: 0.30; margin-bottom: 28px; flex-shrink: 0;
}

/* ══════════════════════════════════════════
   DIFERENCIADORES (3 cards)
══════════════════════════════════════════ */
.differentiators { display: flex; flex-direction: column; gap: 14px; }
.diff-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.diff-card:hover {
  transform: translateY(-4px) translateX(2px);
  border-color: var(--glass-border-2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 24px rgba(78,158,200,0.08);
}
.diff-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: rgba(78,158,200,0.10);
  border: 1px solid rgba(78,158,200,0.20);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--sky2);
}
.diff-title { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.diff-text  { font-size: 13px; color: var(--text); line-height: 1.6; text-align: left; margin: 0; }

@media (min-width: 640px) {
  .differentiators { flex-direction: row; gap: 16px; }
  .diff-card { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ══════════════════════════════════════════
   PAGE HERO — interior pages
══════════════════════════════════════════ */
.page-hero {
  padding: 64px 24px 56px;
  border-bottom: 1px solid var(--divider);
  position: relative;
  background: linear-gradient(160deg, rgba(8,18,34,0.98) 0%, rgba(10,22,40,0.9) 100%);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, transparent 0%, var(--sky) 40%, var(--gold) 80%, transparent 100%);
  opacity: 0.8;
}
.page-hero-cols {
  display: flex; flex-direction: column; gap: 36px;
  max-width: 1200px; margin: 0 auto;
}
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.page-hero-badge-line { width: 24px; height: 1px; background: var(--gold2); }
.page-hero-badge-text { font-size: 9px; font-weight: 700; letter-spacing: 3.5px; text-transform: uppercase; color: var(--sky); }
.page-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 8vw, 52px);
  font-weight: 900; line-height: 1.08;
  color: var(--white); margin-bottom: 18px;
}
.page-hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--sky2) 0%, var(--sky) 55%, var(--gold2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 20px rgba(78,158,200,0.3));
}
.page-hero-lead {
  font-size: 15px; font-weight: 300; line-height: 1.85; color: var(--text);
}
.page-hero-visual { display: none; }

/* ══════════════════════════════════════════
   SERV SECTION — two-column split
══════════════════════════════════════════ */
.serv-section {
  padding: 64px 24px;
  border-bottom: none;
  position: relative;
  overflow: visible;
}
.serv-section:last-of-type::after { display: none; }
.serv-section-inner {
  display: flex; flex-direction: column; gap: 36px;
  max-width: 1200px; margin: 0 auto;
}
.serv-section-visual {
  display: flex; align-items: center; justify-content: center; padding: 8px 0;
}
.serv-section-visual svg { max-width: 280px; width: 100%; height: auto; }
.serv-section-content .lbl { margin-bottom: 18px; }

/* ══════════════════════════════════════════
   SECTION TITLE (interior pages)
══════════════════════════════════════════ */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4.5vw, 36px); font-weight: 700;
  line-height: 1.15; color: var(--white); margin-bottom: 18px;
}
.section-title em { font-style: normal; color: var(--sky2); text-shadow: 0 0 20px var(--sky-glow); }

/* ══════════════════════════════════════════
   URGENCY STRIP
══════════════════════════════════════════ */
.urgency-strip {
  padding: 36px 24px 36px 28px;
  background: linear-gradient(
    105deg,
    rgba(6, 10, 20, 0.97) 0%,
    rgba(8, 14, 26, 0.93) 55%,
    rgba(10, 16, 30, 0.90) 100%
  );
  border-top: 1px solid rgba(78, 158, 200, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-left: none;
  box-shadow:
    0 4px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
  position: relative;
}
.urgency-strip::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, transparent 0%, rgba(78,158,200,0.55) 45%, rgba(196,146,26,0.40) 80%, transparent 100%);
}
.urgency-strip-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.urgency-strip-inner::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, #9b2020 0%, rgba(196, 146, 26, 0.60) 100%);
  margin: 0 auto 18px;
  border-radius: 2px;
}
.urgency-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(15px, 3.5vw, 20px); font-weight: 700;
  color: var(--white); line-height: 1.60; margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.urgency-text em {
  color: var(--gold2);
  font-style: italic;
  text-shadow: 0 0 18px var(--gold-glow);
}

/* ══════════════════════════════════════════
   PROF SECTION — pitch + form split
══════════════════════════════════════════ */
.prof-section {
  padding: 64px 24px;
  border-bottom: none;
  position: relative;
  overflow: visible;
}
.prof-section:last-child::after { display: none; }
.prof-section-inner {
  display: flex; flex-direction: column; gap: 40px;
  max-width: 1200px; margin: 0 auto;
}

/* ══════════════════════════════════════════
   BENEFIT LIST
══════════════════════════════════════════ */
.benefit-list { list-style: none; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.benefit-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  transition: background 0.25s, border-color 0.25s;
}
.benefit-item:hover { background: var(--glass-2); border-color: var(--glass-border-2); }
.benefit-icon { color: var(--sky2); flex-shrink: 0; margin-top: 1px; }
.benefit-text { font-size: 14px; line-height: 1.6; color: var(--text); margin: 0; text-align: left; }

/* ══════════════════════════════════════════
   STEP LIST
══════════════════════════════════════════ */
.steps-list { display: flex; flex-direction: column; gap: 0; margin: 20px 0; }
.step-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--divider2);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 34px; height: 34px; flex-shrink: 0;
  background: rgba(78,158,200,0.10); border: 1px solid rgba(78,158,200,0.22);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; color: var(--sky2);
}
.step-title { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.step-desc { font-size: 13px; color: var(--text); line-height: 1.6; margin: 0; }

/* ══════════════════════════════════════════
   CONTACTO SPLIT
══════════════════════════════════════════ */
.contacto-page { padding: 0; }
.contacto-split {
  padding: 64px 24px;
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 48px;
}
.contacto-urgency-visual {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px 28px;
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  position: relative; overflow: hidden;
}
.contacto-urgency-visual::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--sky) 0%, var(--gold) 100%);
}
.contacto-urgency-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(60px, 14vw, 96px); font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--sky2), var(--gold2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: block; margin-bottom: 8px;
  filter: drop-shadow(0 0 24px rgba(78,158,200,0.3));
}
.contacto-urgency-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 16px;
}
.contacto-urgency-desc {
  font-size: 13px; line-height: 1.7; color: var(--text); margin: 0;
}
.contacto-channels { display: flex; flex-direction: column; gap: 12px; }
.contacto-channel {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 20px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text);
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.contacto-channel:hover {
  background: var(--glass-2); border-color: var(--glass-border-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.contacto-channel-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.contacto-channel-icon.wsp { background: rgba(37,211,102,0.10); border: 1px solid rgba(37,211,102,0.25); }
.contacto-channel-icon.phone { background: rgba(78,158,200,0.10); border: 1px solid rgba(78,158,200,0.25); }
.contacto-channel-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 2px; }
.contacto-channel-label.wsp { color: #25D366; }
.contacto-channel-label.phone { color: var(--sky2); }
.contacto-channel-value { font-size: 15px; font-weight: 600; color: var(--white); display: block; }
.contacto-channel-sub { font-size: 11px; color: var(--muted); }

/* ══════════════════════════════════════════
   DESKTOP 900px+ — NEW LAYOUTS
══════════════════════════════════════════ */
@media (min-width: 900px) {
  .page-hero { padding: 110px max(40px, calc((100vw - 1200px) / 2)) 80px; }
  .page-hero-cols { flex-direction: row; align-items: flex-start; gap: 72px; }
  .page-hero-text { flex: 1; min-width: 0; }
  .page-hero-visual {
    display: flex; flex-shrink: 0; width: 360px;
    align-items: center; justify-content: center;
  }
  .page-hero-lead { font-size: 16px; }

  .serv-section { padding: 88px max(40px, calc((100vw - 1200px) / 2)); }
  .serv-section-inner { flex-direction: row; align-items: center; gap: 80px; }
  .serv-section.reverse .serv-section-inner { flex-direction: row-reverse; }
  .serv-section-visual { flex: 0 0 320px; }
  .serv-section-visual svg { max-width: none; width: 320px; height: 280px; }
  .serv-section-content { flex: 1; min-width: 0; }

  .urgency-strip { padding: 40px max(40px, calc((100vw - 1200px) / 2)); }
  .urgency-strip-inner { max-width: none; }

  .prof-section { padding: 88px max(40px, calc((100vw - 1200px) / 2)); }
  .prof-section-inner { flex-direction: row; align-items: center; gap: 72px; }
  .prof-section-pitch { flex: 1; min-width: 0; }
  .prof-section-side { flex: 0 0 400px; }

  .contacto-split { padding: 88px max(40px, calc((100vw - 1200px) / 2)); flex-direction: row; align-items: flex-start; gap: 72px; }
  .contacto-urgency-col { flex: 0 0 340px; }
  .contacto-channels-col { flex: 1; }
  .contacto-channels { gap: 14px; }

  .nav-top { max-width: 1200px; }
  .alerta-inner { max-width: 1200px; }

  .page-faq .block { max-width: none; margin: 0; padding: 80px max(40px, calc((100vw - 1200px) / 2)); }
  .page-sobre .block { max-width: none; margin: 0; padding: 80px max(40px, calc((100vw - 1200px) / 2)); }
  .page-index .block { max-width: none; margin: 0; padding-left: var(--side); padding-right: var(--side); }
}

/* ══════════════════════════════════════════
   CASO CARD WIDE
══════════════════════════════════════════ */
.caso-card-wide {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s, transform 0.3s;
}
.caso-card-wide:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(78,158,200,0.15);
  transform: translateY(-2px);
}
.caso-card-wide-header {
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.caso-card-wide-body {
  padding: 20px 24px 24px;
}
@media (min-width: 900px) {
  .caso-card-wide-header {
    padding: 28px 32px 22px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
  .caso-card-wide-body {
    padding: 24px 32px 32px;
  }
}

/* ══════════════════════════════════════════
   CASOS (EXPERIENCIA) — hero-style sections
══════════════════════════════════════════ */

/* Las secciones fluyen como el hero */
.page-casos .serv-section {
  background: linear-gradient(160deg, rgba(8,18,34,0.98) 0%, rgba(10,22,40,0.92) 100%);
  padding-left: 0;
  padding-right: 0;
  border-bottom: none;
  overflow: visible;
}

/* Separador horizontal luminoso: oscuro en los bordes, iluminado en el centro */
.page-casos .serv-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(78,158,200,0.10) 15%,
    rgba(196,146,26,0.55) 50%,
    rgba(78,158,200,0.10) 85%,
    transparent 100%
  );
}
.page-casos .serv-section:last-of-type::after { display: none; }

/* Acento izquierdo distinto por sección */
.page-casos .serv-section:nth-of-type(2)::before {
  background: linear-gradient(180deg, transparent 0%, rgba(78,158,200,0.55) 45%, rgba(78,158,200,0.22) 85%, transparent 100%);
  opacity: 1;
}
.page-casos .serv-section:nth-of-type(3)::before {
  background: linear-gradient(180deg, transparent 0%, rgba(196,146,26,0.60) 45%, rgba(196,146,26,0.25) 85%, transparent 100%);
  opacity: 1;
}
.page-casos .serv-section:nth-of-type(4)::before {
  background: linear-gradient(180deg, transparent 0%, rgba(160,176,200,0.38) 45%, rgba(160,176,200,0.16) 85%, transparent 100%);
  opacity: 1;
}

/* Eliminar todo el tratamiento de card */
.page-casos .caso-card-wide {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.page-casos .caso-card-wide:hover {
  box-shadow: none;
  transform: none;
}

.page-casos .caso-card-wide-header {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-left: 24px;
  padding-right: 24px;
}
.page-casos .caso-card-wide-body {
  padding-left: 24px;
  padding-right: 24px;
}

/* Contenido de secciones sin max-width en el inner */
.page-casos .serv-section-inner {
  max-width: none;
  width: 100%;
}

/* Cierre sin margen extra */
.page-casos .casos-cierre {
  margin-top: 0;
}

/* Urgency-strip en casos: paleta sky/gold, sin crimson */
.page-casos .urgency-strip {
  border-left: none;
  box-shadow: 0 4px 32px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
}
.page-casos .urgency-strip::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, transparent 0%, rgba(78,158,200,0.55) 45%, rgba(196,146,26,0.40) 80%, transparent 100%);
}
.page-casos .urgency-strip-inner::before {
  background: linear-gradient(90deg, rgba(78,158,200,0.50) 0%, rgba(196,146,26,0.60) 100%);
}

@media (min-width: 900px) {
  .page-casos .caso-card-wide-header,
  .page-casos .caso-card-wide-body {
    padding-left: max(40px, calc((100vw - 1200px) / 2));
    padding-right: max(40px, calc((100vw - 1200px) / 2));
  }
}

/* ══════════════════════════════════════════
   PER-PAGE left accent — nth-of-type colors
══════════════════════════════════════════ */

/* Servicios */
.page-servicios .serv-section:nth-of-type(2)::before {
  background: linear-gradient(180deg, transparent 0%, rgba(78,158,200,0.55) 45%, rgba(78,158,200,0.22) 85%, transparent 100%);
}
.page-servicios .serv-section:nth-of-type(3)::before {
  background: linear-gradient(180deg, transparent 0%, rgba(196,146,26,0.60) 45%, rgba(196,146,26,0.25) 85%, transparent 100%);
}

/* Profesionales */
.page-profesionales .prof-section:nth-of-type(2)::before {
  background: linear-gradient(180deg, transparent 0%, rgba(78,158,200,0.55) 45%, rgba(78,158,200,0.22) 85%, transparent 100%);
}
.page-profesionales .prof-section:nth-of-type(3)::before {
  background: linear-gradient(180deg, transparent 0%, rgba(196,146,26,0.60) 45%, rgba(196,146,26,0.25) 85%, transparent 100%);
}

/* Sobre — bloque único, sky */
.page-sobre .block::before {
  background: linear-gradient(180deg, transparent 0%, rgba(78,158,200,0.55) 45%, rgba(78,158,200,0.22) 85%, transparent 100%);
}

/* Contacto — cuadro principal */
.contacto-main {
  position: relative;
  overflow: visible;
}
.contacto-main::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, transparent 0%, rgba(78,158,200,0.55) 45%, rgba(196,146,26,0.40) 80%, transparent 100%);
}

/* FAQ — bloque único, gold */
.page-faq .block::before {
  background: linear-gradient(180deg, transparent 0%, rgba(196,146,26,0.60) 45%, rgba(196,146,26,0.25) 85%, transparent 100%);
}

/* ══════════════════════════════════════════
   NAV BRAND — breathing glow
══════════════════════════════════════════ */
@keyframes brandBreathe {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(196,146,26,0.20)); }
  50%       { filter: drop-shadow(0 0 16px rgba(196,146,26,0.55)) drop-shadow(0 0 6px rgba(78,158,200,0.22)); }
}
@keyframes frameGlow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(196,146,26,0.22)); }
  50%       { filter: drop-shadow(0 0 12px rgba(196,146,26,0.55)) drop-shadow(0 0 5px rgba(78,158,200,0.25)); }
}

/* ══════════════════════════════════════════
   WHATSAPP PULSE RING
══════════════════════════════════════════ */
@keyframes wspPing {
  0%   { transform: scale(1);    opacity: 0.38; }
  70%  { transform: scale(1.65); opacity: 0;    }
  100% { transform: scale(1.65); opacity: 0;    }
}
.nav-cta, .wsp-btn { position: relative; overflow: visible; }
.nav-cta::before, .wsp-btn::before {
  content: '';
  position: absolute; inset: -3px;
  border-radius: inherit;
  border: 1.5px solid rgba(37,211,102,0.40);
  animation: wspPing 3s cubic-bezier(0,0,0.2,1) infinite;
  pointer-events: none;
}
.nav-cta:hover::before, .wsp-btn:hover::before { animation-play-state: paused; }

/* ══════════════════════════════════════════
   WHATSAPP FAB FLOTANTE
══════════════════════════════════════════ */
#wsp-fab {
  position: fixed; bottom: 28px; right: 24px; z-index: 1000;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  background: rgba(6,18,10,0.90);
  border: 1px solid rgba(37,211,102,0.32);
  border-radius: 50px;
  color: #25D366; text-decoration: none;
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.40);
  opacity: 0;
  will-change: transform, opacity;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
#wsp-fab:hover {
  border-color: rgba(37,211,102,0.65);
  box-shadow: 0 6px 28px rgba(0,0,0,0.50), 0 0 18px rgba(37,211,102,0.13);
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  #wsp-fab span { display: none; }
  #wsp-fab { padding: 14px; border-radius: 50%; }
}

@media (max-width: 899px) {
  .nav-top { flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; }
  .nav-actions { margin-left: 0; align-items: center; }
  .nav-tel { display: flex; }
  main { padding-top: 159px; }
}

/* ══════════════════════════════════════════
   SERV-SECTION — barra izquierda sutil
══════════════════════════════════════════ */
/* ── Left accent line — shared mixin ── */
.serv-section::before,
.prof-section::before,
.block::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(78,158,200,0.38) 35%,
    rgba(196,146,26,0.25) 75%,
    transparent 100%
  );
}

/* ── Glowing separator line — shared mixin ── */
.serv-section::after,
.prof-section::after,
.block::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(78,158,200,0.10) 15%,
    rgba(196,146,26,0.55) 50%,
    rgba(78,158,200,0.10) 85%,
    transparent 100%
  );
}

/* ══════════════════════════════════════════
   IMPACT BARS — mayor tamaño
══════════════════════════════════════════ */
.impact-bar-track { height: 44px; }
.impact-bar span  { font-size: 15px; padding: 0 14px; }
.impact-bar-label { font-size: 11px; margin-bottom: 8px; }


/* ══════════════════════════════════════════
   IMPACT SPLIT — stats + ilustración
══════════════════════════════════════════ */
.impact-split {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.impact-stats-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.impact-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}
.impact-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.impact-stat-amount {
  font-family: 'Roboto Mono', 'DM Mono', monospace;
  font-size: 18px;
  font-weight: 700;
}
.impact-stat-amount.from { color: rgba(196,146,26,0.75); }
.impact-stat-amount.to   { color: var(--sky2); }
.impact-stat-amount.zero { color: var(--green); font-size: 22px; }
.impact-stat-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0 2px 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(76,170,120,0.55);
}
.impact-stat-divider {
  height: 1px;
  background: var(--divider);
  margin: 10px 0;
}
.impact-kpi-row {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--divider);
}
.impact-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.impact-kpi-num {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold2), var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.impact-kpi-txt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.impact-illustration {
  display: none;
}
@media (min-width: 768px) {
  .impact-split {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }
  .impact-stats-card {
    flex: 0 0 420px;
  }
  .impact-illustration {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
  }
  .impact-illustration svg {
    width: 100%;
    max-width: 340px;
    height: auto;
  }
}
