/* ===== JadeMind — Portafolio ===== */
* { box-sizing: border-box; }

:root {
  --accent: #00A86B;
  --accent-2: #008F5A;
  --glow: rgba(61, 220, 151, 0.35);
  --mint: #3DDC97;

  --bg: #07100c;
  --bg-elev: #0d1612;
  --bg-elev-2: #131e19;
  --border: oklch(0.32 0.02 165 / 0.35);
  --border-strong: oklch(0.42 0.03 165 / 0.55);
  --text: #ecf2ee;
  --text-soft: oklch(0.78 0.02 165);
  --text-muted: oklch(0.62 0.015 165);

  --ff-display: 'Inter Tight', system-ui, sans-serif;
  --ff-body: 'Inter Tight', system-ui, sans-serif;
  --fw-display: 700;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;
}

body.light {
  --bg: #f6f5f0;
  --bg-elev: #ffffff;
  --bg-elev-2: #f0eee7;
  --border: oklch(0.85 0.01 165);
  --border-strong: oklch(0.75 0.01 165);
  --text: #0f1611;
  --text-soft: oklch(0.32 0.015 165);
  --text-muted: oklch(0.5 0.01 165);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--glow), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 30%, var(--glow), transparent 70%);
  background-attachment: fixed;
}

body.light {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--glow), transparent 70%);
}

/* ─── Capa de ondas que se mueven sobre el degradado verde ─── */
body::before {
  content: '';
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 30% 20%,
      color-mix(in oklch, var(--accent) 10%, transparent) 0px,
      transparent 2px,
      transparent 36px),
    repeating-radial-gradient(circle at 70% 80%,
      color-mix(in oklch, var(--accent) 8%, transparent) 0px,
      transparent 2px,
      transparent 42px);
  animation: wave-pulse 14s ease-in-out infinite alternate;
  mix-blend-mode: screen;
  opacity: 0.55;
  will-change: transform, background-position;
}

body::after {
  content: '';
  position: fixed;
  inset: -10vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40vmax 28vmax at 20% 30%, color-mix(in oklch, var(--accent) 28%, transparent), transparent 70%),
    radial-gradient(36vmax 30vmax at 80% 70%, color-mix(in oklch, var(--accent-2) 25%, transparent), transparent 70%);
  filter: blur(60px);
  animation: wave-drift 22s ease-in-out infinite alternate;
  mix-blend-mode: screen;
  will-change: transform;
}

body.light::before { opacity: 0.35; mix-blend-mode: multiply; }
body.light::after { mix-blend-mode: multiply; opacity: 0.55; }

@keyframes wave-drift {
  0%   { transform: translate3d(-2%, 0%, 0) scale(1) rotate(0deg); }
  33%  { transform: translate3d(3%, -2%, 0) scale(1.08) rotate(4deg); }
  66%  { transform: translate3d(-1%, 3%, 0) scale(1.04) rotate(-3deg); }
  100% { transform: translate3d(2%, -1%, 0) scale(1.1) rotate(5deg); }
}

@keyframes wave-pulse {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2vmax, -1vmax, 0) scale(1.04); }
  100% { transform: translate3d(-1vmax, 2vmax, 0) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}

h1, h2, h3 { font-family: var(--ff-display); font-weight: var(--fw-display); letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.eyebrow {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.muted { color: var(--text-muted); }
em { font-style: normal; color: var(--accent); font-family: inherit; font-weight: inherit; }

/* ───────────── Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 13px 22px;
  background: var(--accent);
  color: #0a1310;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  box-shadow: 0 8px 30px var(--glow);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-2); }
.btn-primary.block { display: flex; width: 100%; margin-top: 12px; padding: 16px; font-size: 15px; }
body.light .btn-primary { color: #fff; }
body.light .btn-primary { background: var(--accent-2); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--accent); background: var(--bg-elev); }

/* ───────────── Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 48px;
  transition: all .25s ease;
  backdrop-filter: blur(0px);
}
.nav.scrolled {
  padding: 6px 48px;
  background: color-mix(in oklch, var(--bg) 75%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px; color: var(--text-soft);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 9px 16px; font-size: 13px; }

.logo { display: inline-flex; align-items: center; }
.logo img { height: 44px; width: auto; display: block; transition: height .25s ease; }
.nav.scrolled .logo img { height: 36px; }
.footer .logo img { height: 32px; }

/* ───────────── Sections shared */
.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 100px 48px;
}
.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.02;
}
.section-sub {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 460px;
}

/* ───────────── Hero */
.hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: 140px 48px 60px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-title {
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.ht-line { display: block; white-space: nowrap; }
.hero-sub {
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.55;
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex; gap: 12px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 540px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-meta > div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta strong {
  font-family: var(--ff-display);
  font-size: 32px;
  font-weight: var(--fw-display);
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-meta span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-right { display: flex; align-items: center; justify-content: center; height: 480px; position: relative; }
.orb {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.4;
  animation: spin 24s linear infinite;
}
.orb-ring.r1 { inset: 0; opacity: 0.5; }
.orb-ring.r2 { inset: 30px; opacity: 0.3; animation-duration: 36s; animation-direction: reverse; }
.orb-ring.r3 { inset: 60px; opacity: 0.2; animation-duration: 48s; }
.orb-core {
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #e9f5ec);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 80px var(--glow), inset 0 -20px 40px rgba(0,0,0,0.08);
  position: relative;
  z-index: 2;
  padding: 22px;
}
.orb-chip {
  position: absolute;
  padding: 8px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.orb-chip.c1 { top: 18%; left: -8%; }
.orb-chip.c2 { top: 8%; right: -4%; animation-delay: -1.5s; }
.orb-chip.c3 { bottom: 18%; right: -8%; animation-delay: -3s; }
.orb-chip.c4 { bottom: 8%; left: -4%; animation-delay: -4.5s; }

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

/* ───────────── Servicios grid */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.srv-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s, background .2s;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  opacity: 0;
  animation: fade-up .6s ease forwards;
}
.srv-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--bg-elev-2);
}
.srv-card:hover .srv-card-arrow { transform: translateX(4px); color: var(--accent); }

.srv-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 28px;
}
.srv-card-num {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.srv-card-icon {
  display: inline-flex;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: color-mix(in oklch, var(--accent) 15%, transparent);
  color: var(--accent);
  align-items: center; justify-content: center;
}
.srv-card-title {
  font-size: 22px;
  margin-bottom: 4px;
  line-height: 1.15;
}
.srv-card-grupo {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.srv-card-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.srv-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.srv-card-price { font-size: 13px; color: var(--text-soft); }
.srv-card-price strong { font-size: 17px; color: var(--text); font-weight: 600; letter-spacing: -0.01em; }
.srv-card-freq { font-size: 12px; color: var(--text-muted); margin-left: 4px; }
.srv-card-arrow { color: var(--text-muted); font-size: 20px; transition: transform .2s ease, color .2s; }

@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ───────────── Detalle */
.detalle { display: flex; flex-direction: column; gap: 24px; }
.detalle-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}
.detalle-tab {
  padding: 9px 16px;
  background: transparent;
  border: none;
  color: var(--text-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
  white-space: nowrap;
}
.detalle-tab:hover { color: var(--text); }
.detalle-tab.on {
  background: var(--accent);
  color: #0a1310;
}
body.light .detalle-tab.on { color: #fff; background: var(--accent-2); }

.detalle-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
}
.detalle-grupo {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.detalle-titulo { font-size: 38px; margin-bottom: 16px; line-height: 1.05; }
.detalle-desc {
  color: var(--text-soft);
  font-size: 17px;
  margin-bottom: 20px;
  max-width: 520px;
  line-height: 1.55;
}
.detalle-desc-larga {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 520px;
  line-height: 1.65;
  padding: 14px 16px;
  background: color-mix(in oklch, var(--accent) 6%, transparent);
  border-left: 2px solid var(--accent);
  border-radius: 6px;
}
.detalle-para {
  margin-bottom: 24px;
}
.detalle-para p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}
.detalle-entregables {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.micro-head {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 600;
}
.detalle-entregables ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detalle-entregables li {
  font-size: 14px;
  color: var(--text-soft);
  padding-left: 20px;
  position: relative;
}
.detalle-entregables li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.pricing-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}
.pricing-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-soft);
}
.pricing-row strong { color: var(--text); font-size: 16px; font-weight: 600; }
.pricing-row.hl {
  background: color-mix(in oklch, var(--accent) 14%, transparent);
  margin: 8px -12px;
  padding: 14px 12px;
  border-radius: 10px;
  color: var(--text);
}
.pricing-row.hl strong { color: var(--accent); font-size: 18px; }
.save {
  margin-left: 8px;
  font-size: 11px;
  background: var(--accent);
  color: #0a1310;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.pricing-divider { height: 1px; background: var(--border); margin: 14px 0; }
.pricing-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.pricing-meta > div { display: flex; flex-direction: column; gap: 2px; }
.pricing-meta span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.pricing-meta strong { font-size: 14px; color: var(--text); font-weight: 500; }

/* ───────────── Calculadora */
.calc-section { padding-top: 80px; padding-bottom: 80px; }
.calc-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}
.calc-left {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
}
.calc-section-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.calc-section-head h3 { font-size: 24px; margin-bottom: 8px; }
.calc-section-head p { font-size: 14px; max-width: 380px; }
.badge-paquete {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all .25s ease;
}
.badge-paquete.on {
  background: var(--accent);
  color: #0a1310;
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--glow);
}

.srv-list { display: flex; flex-direction: column; gap: 8px; }
.srv-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background: var(--bg-elev-2);
  transition: all .2s;
}
.srv-row.on {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--accent) 7%, var(--bg-elev-2));
}

.srv-toggle {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.srv-toggle input { display: none; }
.srv-check {
  width: 22px; height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s;
  background: var(--bg);
}
.srv-toggle input:checked + .srv-check {
  background: var(--accent);
  border-color: var(--accent);
}
.srv-toggle input:checked + .srv-check::after {
  content: '';
  width: 6px; height: 10px;
  border: 2px solid #0a1310;
  border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.srv-info { display: flex; flex-direction: column; gap: 2px; }
.srv-name {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.srv-grupo {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.srv-sub { font-size: 12px; color: var(--text-muted); }

.srv-price { display: flex; flex-direction: column; align-items: flex-end; }
.srv-price-main { font-weight: 600; font-size: 15px; color: var(--text); display: flex; align-items: baseline; gap: 8px; }
.srv-price-was { font-size: 12px; color: var(--text-muted); text-decoration: line-through; font-weight: 400; }
.srv-price-sub { font-size: 11px; color: var(--text-muted); letter-spacing: -0.005em; }

.srv-qty { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.qty {
  display: inline-flex; align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.qty button {
  width: 30px; height: 32px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  transition: background .15s;
}
.qty button:hover:not(:disabled) { background: var(--bg-elev-2); color: var(--accent); }
.qty button:disabled { opacity: 0.3; cursor: not-allowed; }
.qty input {
  width: 40px; height: 32px;
  border: none;
  background: transparent;
  text-align: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:disabled { opacity: 0.3; }
.qty input:focus { outline: none; }

.form-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
}
.form-toggle.disabled { opacity: 0.4; cursor: not-allowed; }
.form-toggle input { accent-color: var(--accent); }

/* Resumen sticky */
.calc-right { position: sticky; top: 90px; }
.resumen {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
}
.resumen h3 { font-size: 22px; margin-bottom: 18px; }
.resumen-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-elev-2);
  border-radius: var(--r-md);
  border: 1px dashed var(--border-strong);
  font-size: 13px;
}
.resumen-lines {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 20px;
  max-height: 280px;
  overflow-y: auto;
}
.resumen-line {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.resumen-line:last-child { border-bottom: none; }
.resumen-line-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.resumen-line-name { font-size: 13px; font-weight: 600; color: var(--text); }
.resumen-line-total { font-size: 14px; font-weight: 600; color: var(--text); }
.resumen-line-sub {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.tag-paq {
  background: var(--accent);
  color: #0a1310;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.resumen-line-form {
  font-size: 11px;
  color: var(--accent);
  margin-top: 4px;
  font-weight: 500;
}

.totales {
  border-top: 2px solid var(--border-strong);
  padding-top: 20px;
}
.total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px;
  margin-bottom: 6px;
}
.total-row strong { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.total-row.big strong { font-size: 28px; color: var(--accent); font-family: var(--ff-display); font-weight: var(--fw-display); letter-spacing: -0.025em; }
.total-row.big .mes { font-size: 14px; color: var(--text-muted); margin-left: 4px; font-family: var(--ff-body); font-weight: 500; }
.total-row-sub {
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  padding-left: 12px;
}
.total-divider { height: 1px; background: var(--border); margin: 12px 0; }
.ahorro {
  margin-top: 10px;
  padding: 10px 12px;
  background: color-mix(in oklch, var(--accent) 12%, transparent);
  border-radius: 8px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.resumen-fineprint { font-size: 11px; color: var(--text-muted); margin-top: 12px; line-height: 1.5; }

/* ───────────── Planes */
.planes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plan-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 28px;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s;
}
.plan-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.plan-card.destacado {
  background: var(--bg-elev-2);
  border: 1px solid var(--accent);
  box-shadow: 0 16px 60px var(--glow);
}
.plan-tag {
  position: absolute;
  top: -10px; left: 28px;
  background: var(--accent);
  color: #0a1310;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.plan-name {
  font-family: var(--ff-display);
  font-size: 36px;
  font-weight: var(--fw-display);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.plan-tagline { font-size: 15px; color: var(--text); margin-bottom: 4px; font-weight: 500; }
.plan-para { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

.plan-prices {
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.plan-price-line {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.plan-price-line strong { font-size: 18px; color: var(--text); font-weight: 600; letter-spacing: -0.01em; }
.plan-price-line.big strong {
  font-family: var(--ff-display);
  font-size: 30px;
  font-weight: var(--fw-display);
  color: var(--accent);
  letter-spacing: -0.025em;
}
.plan-price-line.big .mes { font-size: 13px; color: var(--text-muted); font-family: var(--ff-body); font-weight: 500; margin-left: 4px; }

.plan-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.plan-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.4;
}
.plan-list li strong { color: var(--text); font-weight: 500; }
.plan-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--accent) 20%, transparent);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.plan-qty { color: var(--accent); font-weight: 600; }
.plan-freq { color: var(--text-muted); font-size: 12px; }

/* ───────────── Contacto */
.contacto-section { padding-bottom: 80px; }
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 56px;
}
.contacto-title { font-size: clamp(36px, 4vw, 52px); line-height: 1.02; margin-bottom: 18px; }
.contacto-sub { color: var(--text-soft); font-size: 16px; max-width: 420px; margin-bottom: 32px; }

.contacto-cot {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
}
.contacto-cot ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.contacto-cot li { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-soft); }
.contacto-cot li strong { color: var(--text); font-weight: 600; }
.contacto-cot-tot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.contacto-cot-tot > div { display: flex; flex-direction: column; gap: 2px; }
.contacto-cot-tot span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.contacto-cot-tot strong { font-family: var(--ff-display); font-size: 22px; color: var(--accent); letter-spacing: -0.02em; }

.contacto-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.field input, .field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .15s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-fineprint { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 4px; }

.contacto-ok {
  text-align: center;
  padding: 48px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.ok-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a1310;
  font-size: 28px;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.contacto-ok h3 { font-size: 28px; }
.contacto-ok p { color: var(--text-soft); }

/* ───────────── Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-meta { font-size: 12px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-soft); }
.footer-links a:hover { color: var(--accent); }

/* ───────────── Responsive */
@media (max-width: 1080px) {
  .srv-grid { grid-template-columns: repeat(2, 1fr); }
  .planes-grid { grid-template-columns: 1fr; gap: 16px; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-right { position: static; }
  .detalle-body { grid-template-columns: 1fr; padding: 28px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { height: 320px; }
  .contacto-grid { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 720px) {
  /* ── Reglas globales para evitar overflow horizontal ── */
  html, body { overflow-x: hidden; max-width: 100vw; width: 100%; }
  *, *::before, *::after { box-sizing: border-box; }
  .section, .hero, .footer {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden;
  }
  .section-head, .section-head > div, .srv-card,
  .detalle-body, .detalle-tabs, .calc-grid, .calc-left, .calc-right,
  .contacto-grid, .cot-section { min-width: 0; max-width: 100%; }
  h1, h2, h3, h4, p { overflow-wrap: break-word; word-wrap: break-word; }
  .hero-title, .hero-sub, .section-head h2, .section-sub,
  .srv-card *, .detalle *, .contacto * { max-width: 100%; }

  /* ── Nav: solo logo centrado, ocultamos CTA (existe en hero) ── */
  .nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    padding: 10px 16px !important;
  }
  .nav.scrolled { padding: 6px 16px !important; }
  .nav-links { display: none !important; }
  .nav-cta { display: none !important; }
  .logo img { height: 40px !important; }
  .nav.scrolled .logo img { height: 34px !important; }

  /* ── Tipografía hero / titulares más chica ── */
  .hero-title { font-size: clamp(30px, 8.5vw, 48px) !important; line-height: 1.05; margin-bottom: 18px; }
  .hero-sub { font-size: 15px; line-height: 1.5; margin-bottom: 28px; max-width: 100% !important; width: 100%; }
  .section-head h2 { font-size: clamp(22px, 6vw, 32px) !important; line-height: 1.1; word-break: normal; }
  .section-sub { font-size: 14px; max-width: 100%; }

  /* ── Sections / hero spacing ── */
  .section { padding: 56px 18px !important; max-width: 100%; }
  .hero { padding: 84px 18px 40px !important; max-width: 100%; }
  .section-head { margin-bottom: 28px; gap: 12px !important; }

  /* ── Hero ── */
  .hero-grid { display: flex !important; flex-direction: column !important; gap: 24px; }
  .hero-left, .hero-right { width: 100% !important; max-width: 100%; min-width: 0; }
  .hero-cta { margin-bottom: 32px; gap: 10px; }
  .hero-cta .btn-primary, .hero-cta .btn-ghost { font-size: 14px; padding: 11px 18px; }
  .hero-meta { grid-template-columns: 1fr !important; gap: 14px; padding-top: 22px; max-width: 100%; }
  .hero-meta strong { font-size: 24px; }
  .hero-meta span { font-size: 11px; line-height: 1.3; }
  .hero-right { height: 280px; }

  /* ── Servicios grid: 1 columna ── */
  .srv-grid { grid-template-columns: 1fr; }
  .srv-card { min-height: auto; padding: 20px; }
  .srv-card-title { font-size: 19px; }
  .srv-row { grid-template-columns: 1fr; gap: 12px; }
  .srv-price, .srv-qty { align-items: flex-start; }

  /* ── Detalle ── */
  .detalle-body { padding: 22px !important; }
  .detalle-titulo { font-size: 24px; line-height: 1.1; }
  .detalle-desc { font-size: 15px; }
  .detalle-entregables ul { grid-template-columns: 1fr; }
  .detalle-tabs { gap: 4px; padding: 4px; }
  .detalle-tab { padding: 8px 12px; font-size: 12px; }

  /* ── Contacto / forms ── */
  .contacto-grid { padding: 22px !important; gap: 24px !important; }
  .contacto-title { font-size: clamp(26px, 7vw, 36px); }
  .field-row { grid-template-columns: 1fr; }

  /* ── Footer ── */
  .footer { padding: 24px 18px; }
  .footer-inner { flex-direction: column; gap: 14px; text-align: center; }
  .footer-links { gap: 18px; justify-content: center; flex-wrap: wrap; }

  /* ── Gyro: shrink width REAL (no solo transform) para que no expanda el grid.
     Los anillos se centran con margin: -width/2, así que hay que actualizar AMBOS. ── */
  .gyro { width: 260px !important; height: 260px !important; transform: none !important; }
  .gyro-core { width: 130px !important; height: 130px !important; }
  .gyro-ring.r-x      { width: 200px !important; height: 200px !important; margin: -100px 0 0 -100px !important; }
  .gyro-ring.r-y      { width: 220px !important; height: 220px !important; margin: -110px 0 0 -110px !important; }
  .gyro-ring.r-z      { width: 240px !important; height: 240px !important; margin: -120px 0 0 -120px !important; }
  .gyro-ring.r-outer  { width: 260px !important; height: 260px !important; margin: -130px 0 0 -130px !important; }
  .hero-right { height: 280px; overflow: hidden; }
  .hero-grid, .hero-left { min-width: 0 !important; }
}

/* ── Pantallas muy pequeñas (≤ 400px) ── */
@media (max-width: 400px) {
  .logo img { height: 34px !important; }
  .nav.scrolled .logo img { height: 30px !important; }
  .hero-title { font-size: clamp(26px, 9vw, 36px) !important; }
  .hero-meta { grid-template-columns: 1fr; gap: 14px; }
  .hero-meta strong { font-size: 22px; }
  .section { padding: 44px 14px !important; }
  .hero { padding: 76px 14px 32px !important; }
  .gyro { width: 220px !important; height: 220px !important; }
  .gyro-core { width: 110px !important; height: 110px !important; }
  .gyro-ring.r-x      { width: 170px !important; height: 170px !important; margin: -85px 0 0 -85px !important; }
  .gyro-ring.r-y      { width: 186px !important; height: 186px !important; margin: -93px 0 0 -93px !important; }
  .gyro-ring.r-z      { width: 204px !important; height: 204px !important; margin: -102px 0 0 -102px !important; }
  .gyro-ring.r-outer  { width: 220px !important; height: 220px !important; margin: -110px 0 0 -110px !important; }
  .hero-right { height: 240px; }
}

/* ═══════════════════════════════════════════════════════════════
   COTIZADOR v2 — JadeMind
   ═══════════════════════════════════════════════════════════════ */

.cot { display: flex; flex-direction: column; gap: 18px; }

.cot-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  align-self: flex-start;
  transition: all .25s ease;
}
.cot-pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all .25s ease;
}
.cot-pill.on {
  background: color-mix(in oklch, var(--accent) 15%, var(--bg-elev));
  border-color: var(--accent);
  color: var(--text);
}
.cot-pill.on .cot-pill-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 25%, transparent);
}

.cot-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  align-items: start;
}

.cot-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cot-section {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}

.cot-section-head { margin-bottom: 20px; }
.cot-section-head h3 {
  font-size: 20px;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.cot-section-head p {
  font-size: 13px;
  color: var(--text-muted);
}

.cot-counter, .cot-sub-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cot-counter label, .cot-sub-counter label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.cot-sub-counter {
  margin: 8px 0 14px 36px;
  flex-wrap: wrap;
}
.cot-sub-counter.disabled { opacity: 0.45; pointer-events: none; }
.cot-sub-hint {
  flex-basis: 100%;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cot-rows { display: flex; flex-direction: column; gap: 8px; }
.cot-rows-tight { gap: 4px; }

.cot-row {
  display: grid;
  grid-template-columns: 28px 1.4fr 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--bg-elev-2);
  cursor: pointer;
  transition: all .15s;
}
.cot-row:hover { border-color: var(--border-strong); }
.cot-row.on {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--accent) 7%, var(--bg-elev-2));
}
.cot-row input[type="checkbox"] { display: none; }
.cot-check {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.cot-row input:checked + .cot-check,
.cot-form-row input:checked + .cot-check {
  background: var(--accent);
  border-color: var(--accent);
}
.cot-row input:checked + .cot-check::after,
.cot-form-row input:checked + .cot-check::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid #0a1310;
  border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
body.light .cot-row input:checked + .cot-check::after,
body.light .cot-form-row input:checked + .cot-check::after {
  border-color: #fff;
}

.cot-row-info { min-width: 0; }
.cot-row-name {
  font-weight: 600;
  font-size: 14px;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.cot-row-grupo {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.cot-row-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.cot-row-price { text-align: right; }
.cot-row-price-main {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
}
.cot-row-was {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
}
.cot-row-price-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.cot-row-total {
  text-align: right;
  min-width: 92px;
}
.cot-row-total .micro-head {
  font-size: 9px;
  letter-spacing: 0.12em;
  margin-bottom: 2px;
}
.cot-row-total strong {
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: var(--fw-display);
  color: var(--text);
  letter-spacing: -0.02em;
}

/* Quantity stepper — reused from old; safe to redeclare */
.cot .qty {
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
}
.cot .qty button {
  width: 32px; height: 34px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  transition: background .15s;
}
.cot .qty button:hover:not(:disabled) { background: var(--bg-elev-2); color: var(--accent); }
.cot .qty button:disabled { opacity: 0.3; cursor: not-allowed; }
.cot .qty input {
  width: 44px; height: 34px;
  border: none; background: transparent;
  text-align: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  -moz-appearance: textfield;
}
.cot .qty input::-webkit-outer-spin-button,
.cot .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cot .qty input:disabled { opacity: 0.4; }
.cot .qty input:focus { outline: none; }

/* Collapse */
.cot-collapse-head {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  color: var(--text);
}
.cot-collapse-head h3 { font-size: 20px; margin-bottom: 4px; letter-spacing: -0.02em; }
.cot-collapse-head p { font-size: 13px; color: var(--text-muted); }
.cot-chev {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 500;
  flex-shrink: 0;
}
.cot-collapse-head.on .cot-chev {
  background: var(--accent);
  color: #0a1310;
  border-color: var(--accent);
}

.cot-form-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.cot-form-row:hover { background: var(--bg-elev-2); }
.cot-form-row input { display: none; }
.cot-form-row.on { background: color-mix(in oklch, var(--accent) 7%, transparent); }
.cot-form-name { font-size: 14px; color: var(--text); }
.cot-form-price {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.cot-collapse-head + .cot-rows { margin-top: 18px; }

/* Resumen */
.cot-resumen {
  position: sticky;
  top: 90px;
}
.cot-resumen-inner {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
}
.cot-resumen header { margin-bottom: 18px; }
.cot-resumen header h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.cot-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-elev-2);
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  font-size: 13px;
}

.cot-met { display: flex; flex-direction: column; gap: 4px; }
.cot-met-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--text-soft);
  padding: 4px 0;
}
.cot-met-row.mt { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.cot-met-row strong {
  font-family: var(--ff-display);
  font-weight: var(--fw-display);
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.025em;
}
.cot-met-row strong small {
  font-size: 12px;
  font-family: var(--ff-body);
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 3px;
}
.cot-met-row.big strong {
  font-size: 28px;
}
.cot-met-row.big.accent strong { color: var(--accent); }
.cot-met-row.sm {
  font-size: 12px;
  color: var(--text-muted);
}
.cot-met-row.sm strong {
  font-size: 14px;
  color: var(--text-soft);
}
.cot-met-sub {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  padding-left: 14px;
}
.cot-met-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0 8px;
}

/* CTAs */
.cot-ctas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}
.cot-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #0a1310;
  cursor: pointer;
  transition: all .15s;
}
.cot-cta:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 20px var(--glow); }
.cot-cta:disabled { opacity: 0.4; cursor: not-allowed; }
.cot-cta.secondary {
  background: var(--bg-elev-2);
  color: var(--text);
  border-color: var(--border-strong);
}
.cot-cta.secondary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.cot-cta.wa {
  background: #25D366;
  border-color: #25D366;
  color: #073623;
}
.cot-cta.wa:hover:not(:disabled) { background: #20BD5C; }

body.light .cot-cta { color: #fff; background: var(--accent-2); border-color: var(--accent-2); }
body.light .cot-cta.secondary { color: var(--text); background: var(--bg-elev-2); border-color: var(--border-strong); }
body.light .cot-cta.wa { color: #fff; background: #25D366; border-color: #25D366; }

/* Email form */
.cot-email-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.cot-email-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.cot-email-form .field { display: flex; flex-direction: column; gap: 4px; }
.cot-email-form .field span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.cot-email-form .field input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
}
.cot-email-form .field input:focus { outline: none; border-color: var(--accent); }
.cot-email-ok {
  padding: 16px;
  background: color-mix(in oklch, var(--accent) 12%, transparent);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cot-fineprint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.5;
}

@media (max-width: 1080px) {
  .cot-grid { grid-template-columns: 1fr; }
  .cot-resumen { position: static; }
}
@media (max-width: 720px) {
  .cot-row {
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    gap: 10px 14px;
  }
  .cot-row-price, .cot-row-total {
    grid-column: 2;
    text-align: left;
  }
  .cot-row-price { padding-top: 4px; border-top: 1px dashed var(--border); }
  .cot-row-price-main { justify-content: flex-start; }
  .cot-row-total { display: flex; flex-direction: row; gap: 8px; align-items: baseline; }
  .cot-row-total .micro-head { margin: 0; }
  .cot-email-grid { grid-template-columns: 1fr; }
  .cot-section { padding: 22px; }
}

/* ───── IVA block "Tu inversión real" ───── */
.cot-subt-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.cot-iva {
  margin-top: 22px;
  padding: 18px;
  background: color-mix(in oklch, var(--accent) 9%, var(--bg-elev-2));
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 24px var(--glow);
}
.cot-iva-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cot-iva-eyebrow {
  font-family: var(--ff-display);
  font-weight: var(--fw-display);
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.cot-iva-hint {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.cot-iva-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.cot-iva-col {
  padding: 14px;
  background: var(--bg-elev);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cot-iva-col-title {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.cot-iva-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.cot-iva-line.subtotal {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}
.cot-iva-line.subtotal span:last-child {
  font-weight: 600;
}
.cot-iva-line.iva {
  font-size: 11px;
  color: var(--text-muted);
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 4px;
}
.cot-iva-line.iva span:last-child {
  font-weight: 500;
}
.cot-iva-line.total {
  margin-top: 4px;
}
.cot-iva-line.total span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.cot-iva-line.total strong {
  font-family: var(--ff-display);
  font-weight: var(--fw-display);
  font-size: 24px;
  letter-spacing: -0.025em;
  color: var(--accent);
}

@media (max-width: 720px) {
  .cot-iva-grid { grid-template-columns: 1fr; gap: 8px; }
}


/* ═══ Glassmorphism — surfaces que dejan ver el fondo ═══ */
:root {
  --glass: color-mix(in oklch, var(--bg-elev) 65%, transparent);
  --glass-strong: color-mix(in oklch, var(--bg-elev) 78%, transparent);
  --glass-border: color-mix(in oklch, var(--accent) 18%, var(--border-strong));
}
body.light {
  --glass: color-mix(in oklch, #ffffff 70%, transparent);
  --glass-strong: color-mix(in oklch, #ffffff 82%, transparent);
}

.srv-card,
.cot-section,
.cot-resumen-inner,
.plan-card,
.detalle-body,
.pricing-card,
.contacto-grid,
.calc-left,
.resumen,
.detalle-tabs,
.contacto-cot {
  background: var(--glass) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-color: color-mix(in oklch, var(--accent) 14%, var(--border)) !important;
}

.plan-card.destacado {
  background: var(--glass-strong) !important;
  border-color: var(--accent) !important;
}

.cot-iva {
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.cot-iva-col {
  background: color-mix(in oklch, var(--bg-elev) 82%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cot-row {
  background: color-mix(in oklch, var(--bg-elev-2) 72%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cot-row.on {
  background: color-mix(in oklch, var(--accent) 12%, var(--bg-elev-2)) !important;
}

.srv-row {
  background: color-mix(in oklch, var(--bg-elev-2) 72%, transparent);
  backdrop-filter: blur(6px);
}

.cot-counter, .cot-sub-counter {
  background: color-mix(in oklch, var(--bg-elev-2) 65%, transparent);
  backdrop-filter: blur(6px);
}

/* Subtle inner highlight on glass surfaces — like a real glass edge */
.cot-section,
.cot-resumen-inner,
.plan-card,
.detalle-body,
.contacto-grid,
.srv-card {
  box-shadow:
    inset 0 1px 0 color-mix(in oklch, white 12%, transparent),
    0 12px 40px -12px rgba(0,0,0,0.35);
}
body.light .cot-section,
body.light .cot-resumen-inner,
body.light .plan-card,
body.light .detalle-body,
body.light .contacto-grid,
body.light .srv-card {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 8px 30px -10px rgba(0, 50, 30, 0.12);
}

/* Hover lift más fluido sobre el vidrio */
.srv-card:hover,
.plan-card:hover {
  background: var(--glass-strong) !important;
}

/* Nav glassmorphism reforzado */
.nav.scrolled {
  background: color-mix(in oklch, var(--bg) 55%, transparent) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border-bottom-color: color-mix(in oklch, var(--accent) 14%, var(--border));
}


/* ═══════════════════════════════════════════════════════
   GIROSCOPIO — logo fijo en el centro, 3 anillos rotando en 3D
   ═══════════════════════════════════════════════════════ */
.hero-right { perspective: 1400px; }

.gyro {
  position: relative;
  width: 460px;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* ── Logo central — totalmente fijo, frontal ── */
.gyro-core {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.gyro-core-halo {
  position: absolute;
  inset: -34%;
  background: radial-gradient(circle, color-mix(in oklch, var(--accent) 55%, transparent) 0%, transparent 65%);
  filter: blur(34px);
  z-index: -1;
  animation: gyro-halo 6s ease-in-out infinite;
}
@keyframes gyro-halo {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.1); }
}
.gyro-core-shell {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #f3f9f5 30%, #d8ece0 60%, #b2d2c0 100%);
  box-shadow:
    inset -32px -32px 56px rgba(20, 40, 30, 0.35),
    inset 26px 26px 46px rgba(255, 255, 255, 0.9),
    0 36px 80px -10px rgba(0, 0, 0, 0.55),
    0 0 90px color-mix(in oklch, var(--accent) 40%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gyro-core-shell img {
  width: 130%;
  height: 130%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 40, 20, 0.4));
}

/* ── Anillos del giroscopio ── */
.gyro-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform-style: preserve-3d;
  pointer-events: none;
  /* la rotación viene de keyframes; partimos centrados */
}
.gyro-ring > span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /* Doble anillo grueso jade con borde luminoso */
  border: 4px solid color-mix(in oklch, var(--accent) 75%, transparent);
  box-shadow:
    0 0 14px color-mix(in oklch, var(--accent) 60%, transparent),
    inset 0 0 10px color-mix(in oklch, var(--accent) 35%, transparent);
}

/* Anillo eje X (rota en plano vertical, alrededor del eje X) */
.gyro-ring.r-x {
  width: 360px; height: 360px;
  margin: -180px 0 0 -180px;
  animation: spin-x 18s linear infinite;
}
.gyro-ring.r-x > span {
  border-color: color-mix(in oklch, var(--accent) 85%, white);
  border-width: 5px;
}
@keyframes spin-x {
  from { transform: rotateY(70deg) rotateZ(0deg); }
  to   { transform: rotateY(70deg) rotateZ(360deg); }
}

/* Anillo eje Y */
.gyro-ring.r-y {
  width: 380px; height: 380px;
  margin: -190px 0 0 -190px;
  animation: spin-y 24s linear infinite;
}
.gyro-ring.r-y > span {
  border-color: color-mix(in oklch, var(--accent) 65%, transparent);
  border-style: solid;
}
@keyframes spin-y {
  from { transform: rotateX(70deg) rotateZ(0deg); }
  to   { transform: rotateX(70deg) rotateZ(360deg); }
}

/* Anillo eje Z (inclinado y rota lento, da el efecto giroscopio) */
.gyro-ring.r-z {
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  animation: spin-z 30s linear infinite reverse;
}
.gyro-ring.r-z > span {
  border-color: color-mix(in oklch, var(--accent) 50%, transparent);
  border-width: 3px;
  border-style: dashed;
}
@keyframes spin-z {
  from { transform: rotateX(40deg) rotateY(40deg) rotateZ(0deg); }
  to   { transform: rotateX(40deg) rotateY(40deg) rotateZ(360deg); }
}

/* Anillo exterior decorativo, casi fijo, muy sutil */
.gyro-ring.r-outer {
  width: 460px; height: 460px;
  margin: -230px 0 0 -230px;
  animation: spin-outer 55s linear infinite;
}
.gyro-ring.r-outer > span {
  border: 1px dashed color-mix(in oklch, var(--accent) 28%, transparent);
  box-shadow: none;
}
@keyframes spin-outer {
  from { transform: rotateZ(0deg); }
  to   { transform: rotateZ(360deg); }
}

/* Mobile */
@media (max-width: 1080px) {
  .gyro { transform: scale(0.78); }
}
@media (max-width: 720px) {
  .gyro { transform: scale(0.6); }
}

@media (prefers-reduced-motion: reduce) {
  .gyro-ring, .gyro-core-halo { animation: none; }
}
