/* ── OVERRIDES DE GENERATEPRESS ──
   Solo cubre los elementos estructurales de página.
   Los estilos del formulario van en la sección #contact
   con especificidad natural, sin necesidad de !important. ── */
html, body,
body.page-template-page-home,
.site, .site-content, .content-area,
.site-main, .entry-content, .entry, article {
  background: #080807 !important;
  background-color: #080807 !important;
  color: #f0ead8 !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
.site-header, .main-navigation, .site-footer,
.inside-header, .inside-navigation, .inside-site-container {
  display: none !important;
}
.site-container, .inside-site-container,
.content-area, .site-main {
  float: none !important;
  width: 100% !important;
}

/* ═══════════════════════════════════════════════
   RESET & VARIABLES
═══════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:        #080807;
  --surface:   #0f0f0d;
  --gold:      #c8a96e;
  --gold-dim:  #9a7d4f;
  --cream:     #f0ead8;
  --cream-dim: #b8ad96;
  --line:      rgba(200,169,110,0.15);
  --ff-d: 'Cormorant Garamond', Georgia, serif;
  --ff-m: 'DM Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--ff-m);
  font-size: 13px;
  letter-spacing: 0.03em;
  overflow-x: hidden;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px 64px;
  transition: background .5s, padding .4s;
}
nav.scrolled {
  background: rgba(8,8,7,.92);
  backdrop-filter: blur(14px);
  padding: 18px 64px;
}
.logo {
  font-family: var(--ff-d);
  font-size: 22px; font-weight: 300;
  letter-spacing: .15em; color: var(--cream);
  text-decoration: none;
}
.logo span { color: var(--gold); }

.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cream-dim); text-decoration: none;
  position: relative; transition: color .3s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .4s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-family: var(--ff-m);
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bg); background: var(--gold);
  border: 1px solid var(--gold);
  padding: 10px 24px; text-decoration: none;
  transition: background .3s, color .3s;
}
.nav-cta:hover { background: transparent; color: var(--gold); }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span {
  display: block; width: 22px; height: 1px;
  background: var(--cream); transition: transform .3s, opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu fullscreen */
.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 490;
  flex-direction: column; align-items: flex-start;
  justify-content: center; padding: 0 32px; gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--ff-d); font-size: clamp(36px, 10vw, 52px);
  font-weight: 300; color: var(--cream); text-decoration: none;
  letter-spacing: -.01em; padding: 8px 0;
  border-bottom: 1px solid var(--line); width: 100%;
  transition: color .3s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu-cta {
  font-family: var(--ff-m) !important;
  font-size: 11px !important; letter-spacing: .18em !important;
  text-transform: uppercase; color: var(--bg) !important;
  background: var(--gold); padding: 14px 28px !important;
  margin-top: 16px; border-bottom: none !important; width: auto !important;
}

@media(max-width: 900px) {
  .nav-burger { display: flex; }
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
  padding: 140px 64px 80px;
  position: relative; overflow: hidden;
  gap: 24px;
}
.vline {
  position: absolute; top: 0; bottom: 0;
  width: 1px; background: var(--line);
}
.hero-content {
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  position: relative; z-index: 2;
  max-width: 580px; margin: 0 auto; padding: 0 24px;
}
.hero-label {
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 28px;
  opacity: 0; animation: up .9s ease .2s forwards;
}
.hero-title {
  font-family: var(--ff-d);
  font-size: clamp(64px, 7.5vw, 130px);
  font-weight: 300; line-height: .9;
  letter-spacing: -.03em; color: var(--cream);
  opacity: 0; animation: up 1s ease .4s forwards;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-title .out {
  -webkit-text-stroke: 1px rgba(200,169,110,.35);
  color: transparent;
}
.hero-desc {
  max-width: 480px; line-height: 2;
  color: var(--cream-dim); font-size: 14px; font-weight: 300;
  margin-top: 32px; letter-spacing: .02em;
  opacity: 0; animation: up 1s ease .65s forwards;
}
.cta-row {
  display: flex; gap: 16px; align-items: center;
  margin-top: 40px;
  opacity: 0; animation: up 1s ease .8s forwards;
}
.btn-p {
  font-family: var(--ff-m);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  padding: 17px 44px;
  background: var(--gold); color: var(--bg);
  border: 1px solid var(--gold);
  text-decoration: none; transition: background .3s, color .3s;
}
.btn-p:hover { background: transparent; color: var(--gold); }
.btn-g {
  font-family: var(--ff-m);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  padding: 17px 44px;
  background: transparent; color: var(--cream-dim);
  border: 1px solid var(--line);
  text-decoration: none; transition: border-color .3s, color .3s;
}
.btn-g:hover { border-color: var(--gold-dim); color: var(--cream); }

/* Trust badges */
.hero-trust {
  display: flex; align-items: center; gap: 20px;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--line);
  opacity: 0; animation: up 1s ease 1s forwards;
  flex-wrap: wrap;
}
.trust-label {
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-dim); flex-shrink: 0;
}
.trust-items { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.trust-item  { display: flex; align-items: center; gap: 6px; }
.trust-icon  {
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 9px; font-family: sans-serif; font-weight: 700;
}
.trust-item span {
  font-size: 10px; color: var(--cream-dim);
  font-family: var(--ff-m); letter-spacing: .05em;
}

/* Stats (columna derecha del hero) */
.hero-stats {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
}
.stat-card {
  display: block;
  border: 1px solid rgba(200,169,110,.2); border-bottom: none;
  padding: 22px 24px 22px 28px;
  text-decoration: none; position: relative;
  opacity: 0; transform: translateY(-20px);
  background: #f5f2ec;
  transition: background .35s, border-color .35s;
}
.stat-card:last-child { border-bottom: 1px solid rgba(200,169,110,.2); }
.stat-card.dropped {
  opacity: 1; transform: translateY(0);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1), background .35s, border-color .35s;
}
.stat-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--gold);
  transform: scaleY(0); transform-origin: top;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.stat-card:hover::before { transform: scaleY(1); }
.stat-card:hover { background: #ede9e0; border-color: rgba(200,169,110,.5); }
.stat-card:hover + .stat-card { border-top-color: rgba(200,169,110,.5); }

.stat-link-icon {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--ff-m); font-size: 10px; color: #9a7d4f;
  opacity: 0; transition: opacity .2s, transform .2s;
  transform: translateX(-4px);
}
.stat-card:hover .stat-link-icon { opacity: 1; transform: translateX(0); }

.stat-num {
  font-family: var(--ff-d);
  font-size: clamp(44px, 5vw, 64px); font-weight: 300;
  color: #9a7d4f; line-height: 1; letter-spacing: -.03em;
  margin-bottom: 10px;
  display: flex; align-items: baseline; gap: 2px;
}
.stat-val    { display: inline-block; min-width: 2ch; }
.stat-suffix { font-size: .42em; color: #c8a96e; margin-left: 2px; }
.stat-claim  { font-family: var(--ff-m); font-size: 11px; font-weight: 300; color: #1a1a17; line-height: 1.7; letter-spacing: .03em; margin-bottom: 8px; }
.stat-source { font-family: var(--ff-m); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #9a7d4f; }

.stat-tooltip {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1a1a17; color: #f5f2ec;
  font-family: var(--ff-m); font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 12px; white-space: nowrap;
  pointer-events: none; opacity: 0; z-index: 100;
  transition: opacity .25s, transform .25s;
}
.stat-tooltip::after {
  content: '';
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1a1a17;
}
.stat-card.tooltip-visible .stat-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

.hero-ghost-num { display: none; }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--gold-dim); font-size: 9px;
  letter-spacing: .22em; text-transform: uppercase;
  opacity: 0; animation: up 1s ease 1.2s forwards;
  grid-column: 1 / 3;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: pulse 2s ease infinite;
}

/* scroll-margin compensa la nav fija */
#services, #pricing, #contact { scroll-margin-top: 80px; }

/* ═══════════════════════════════════════════════
   SECCIONES — BASE
═══════════════════════════════════════════════ */
section { padding: 120px 64px; position: relative; }

.s-header { display: flex; align-items: baseline; gap: 20px; margin-bottom: 72px; }
.s-num    { font-size: 10px; letter-spacing: .2em; color: var(--gold-dim); }
.s-title  { font-family: var(--ff-d); font-size: clamp(36px, 5vw, 56px); font-weight: 300; color: var(--cream); letter-spacing: -.01em; }
.s-line   { flex: 1; height: 1px; background: var(--line); margin-left: 24px; }

/* ═══════════════════════════════════════════════
   SERVICIOS
═══════════════════════════════════════════════ */
#services { border-top: 1px solid var(--line); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
}
.svc {
  padding: 48px 40px;
  border-right: 1px solid var(--line);
  transition: background .4s;
}
.svc:last-child { border-right: none; }
.svc:hover { background: var(--surface); }

.svc-num  { font-size: 10px; letter-spacing: .2em; color: var(--gold-dim); display: block; margin-bottom: 28px; }
.svc-name { font-family: var(--ff-d); font-size: 28px; font-weight: 300; color: var(--cream); letter-spacing: -.01em; margin-bottom: 16px; line-height: 1.1; }
.svc-desc { font-size: 11px; line-height: 1.9; color: var(--cream-dim); font-weight: 300; margin-bottom: 28px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tag  { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; border: 1px solid var(--line); color: var(--gold-dim); padding: 4px 10px; }

/* ═══════════════════════════════════════════════
   PRICING
   Desktop : grid de 3 columnas.
   Mobile  : tabs + slider (ver @media 900px).

   Las cards (.plan) NO tienen animación .reveal
   porque el overflow:hidden del slider impide que
   el IntersectionObserver las detecte al cambiar
   de slide, dejándolas permanentemente invisibles.
   La animación de entrada la hace el .s-header.
═══════════════════════════════════════════════ */
#pricing {
  border-top: 1px solid var(--line);
  background: #f5f2ec;
}
#pricing .s-num   { color: #9a7d4f; }
#pricing .s-title { color: #1a1a17; }
#pricing .s-line  { background: rgba(200,169,110,.35); }

/* Tabs — ocultos en desktop, visibles en mobile */
.plans-tabs {
  display: none;
  border: 1px solid rgba(200,169,110,.3);
  border-bottom: none;
}
.plans-tab {
  flex: 1;
  font-family: var(--ff-m);
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  padding: 14px 6px;
  background: rgba(8,8,7,.04);
  color: #9a7d4f;
  border: none;
  border-right: 1px solid rgba(200,169,110,.15);
  cursor: pointer;
  transition: background .22s, color .22s;
}
.plans-tab:last-child  { border-right: none; }
.plans-tab.active      { background: #1a1a17; color: #c8a96e; }
.plans-tab--pro.active { background: #c8a96e; color: #1a1a17; }

/* Desktop: grid */
.plans-wrapper { position: relative; }
.plans-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Plan card */
.plan {
  border: 1px solid rgba(200,169,110,.2);
  padding: 44px 36px;
  display: flex; flex-direction: column;
  transition: border-color .4s, background .4s;
  position: relative;
  background: var(--bg);
}
.plan:hover     { border-color: var(--gold-dim); background: var(--surface); }
.plan.featured  { border-color: var(--gold); }

.plan-badge {
  position: absolute; top: -1px; left: 36px;
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  background: var(--gold); color: var(--bg); padding: 4px 12px;
}
.plan-name    { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.plan-tagline { font-family: var(--ff-d); font-size: 15px; font-weight: 300; font-style: italic; color: var(--cream-dim); margin-bottom: 24px; letter-spacing: .02em; }
.plan-price   { font-family: var(--ff-d); font-size: clamp(44px, 5.5vw, 68px); font-weight: 300; color: var(--cream); line-height: 1; letter-spacing: -.02em; margin-bottom: 6px; }
.plan-price sup { font-size: .38em; vertical-align: super; color: var(--gold-dim); }
.plan-note    { font-size: 10px; color: var(--cream-dim); margin-bottom: 6px; letter-spacing: .05em; }
.plan-renew   { font-size: 10px; color: var(--gold-dim); letter-spacing: .04em; margin-bottom: 28px; }
.plan-divider { width: 100%; height: 1px; background: var(--line); margin-bottom: 28px; }

.plan-features { list-style: none; flex: 1; margin-bottom: 28px; }
.plan-features li {
  font-size: 11px; color: var(--cream-dim); font-weight: 300;
  line-height: 1.7; padding: 6px 0;
  border-bottom: 1px solid rgba(200,169,110,.07);
  display: flex; align-items: center; gap: 12px;
}
.plan-features li::before { content: ''; width: 4px; height: 4px; background: var(--gold-dim); border-radius: 50%; flex-shrink: 0; }
.plan-features li.inherited { opacity: .5; }

/* Add-on toggle */
.addon-wrap   { position: relative; }
.addon-toggle {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; padding: 12px 14px;
  border: 1px solid var(--line);
  transition: border-color .3s, background .3s;
  user-select: none;
}
.addon-toggle:hover { border-color: var(--gold-dim); }
.plan.has-monthly .addon-toggle { border-color: var(--gold); background: rgba(200,169,110,.05); }
.addon-toggle input[type="checkbox"] { display: none; }
.addon-check {
  width: 14px; height: 14px; flex-shrink: 0;
  border: 1px solid var(--gold-dim);
  position: relative; transition: background .2s, border-color .2s;
}
.plan.has-monthly .addon-check { background: var(--gold); border-color: var(--gold); }
.plan.has-monthly .addon-check::after {
  content: '';
  position: absolute; top: 2px; left: 4px;
  width: 4px; height: 7px;
  border-right: 1.5px solid var(--bg);
  border-bottom: 1.5px solid var(--bg);
  transform: rotate(40deg);
}
.addon-label { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--cream-dim); transition: color .3s; }
.plan.has-monthly .addon-label { color: var(--gold); }

/* Add-on drawer — desktop: popover flotante */
.addon-drawer {
  position: absolute;
  bottom: calc(100% + 1px);
  left: 0; right: 0;
  background: #f5f2ec;
  border: 1px solid rgba(200,169,110,.4);
  border-top: 2px solid var(--gold);
  padding: 16px 18px;
  opacity: 0; pointer-events: none;
  transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
  z-index: 20;
}
/* .has-monthly  → plan seleccionado (checkbox + valor del form)
   .drawer-open  → popup visible (desktop).
   Separar ambas clases permite cerrar el popup con click
   fuera sin perder la selección del plan. */
.plan.drawer-open .addon-drawer { opacity: 1; pointer-events: all; transform: translateY(0); }

.addon-heading { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: #9a7d4f; margin-bottom: 10px; }
.addon-price   { font-family: var(--ff-d); font-size: 32px; font-weight: 300; color: #1a1a17; line-height: 1; letter-spacing: -.01em; margin-bottom: 4px; }
.addon-price sup { font-size: .38em; vertical-align: super; color: #9a7d4f; }
.addon-price .mo { font-size: .35em; color: #9a7d4f; letter-spacing: .05em; }
.addon-struck  { font-family: var(--ff-d); font-size: 14px; font-weight: 300; color: #9a7d4f; text-decoration: line-through; letter-spacing: -.01em; margin-bottom: 2px; }
.addon-from2   { font-size: 10px; color: #9a7d4f; letter-spacing: .06em; margin: 8px 0 10px; padding: 5px 8px; border-left: 2px solid var(--gold); background: rgba(200,169,110,.1); }
.addon-includes { list-style: none; margin: 0; }
.addon-includes li {
  font-size: 10px; color: #3a3228; font-weight: 300;
  padding: 4px 0; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(200,169,110,.15);
}
.addon-includes li::before { content: ''; width: 3px; height: 3px; background: #9a7d4f; border-radius: 50%; flex-shrink: 0; }

/* CTA del plan */
.btn-plan {
  font-family: var(--ff-m);
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  padding: 13px 28px; text-align: center;
  text-decoration: none; display: block; transition: .3s;
  margin-top: 20px;
}
.plan:not(.featured) .btn-plan { background: transparent; color: var(--cream-dim); border: 1px solid var(--line); }
.plan:not(.featured) .btn-plan:hover { border-color: var(--gold-dim); color: var(--cream); }
.plan.featured .btn-plan { background: var(--gold); color: var(--bg); border: 1px solid var(--gold); }
.plan.featured .btn-plan:hover { background: transparent; color: var(--gold); }

/* ═══════════════════════════════════════════════
   CONTACTO
   Todos los selectores arrancan desde #contact para
   ganar especificidad sobre GP sin necesidad de
   !important. Valores hex explícitos para evitar
   problemas de resolución de var() en contextos GP.
═══════════════════════════════════════════════ */
#contact { border-top: 1px solid rgba(200,169,110,0.15); }
#contact .s-num   { color: #9a7d4f; }
#contact .s-title { color: #f0ead8; }
#contact .s-line  { background: rgba(200,169,110,0.15); }

#contact .contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

#contact .contact-info h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 300;
  color: #f0ead8;
  letter-spacing: -.01em;
  line-height: 1.05;
  margin-bottom: 24px;
}
#contact .contact-info h2 em { font-style: italic; color: #c8a96e; }
#contact .contact-info p {
  font-size: 12px;
  color: #b8ad96;
  line-height: 1.9;
  font-weight: 300;
  max-width: 360px;
  margin-bottom: 40px;
}

#contact .contact-meta  { display: flex; flex-direction: column; gap: 20px; }
#contact .meta-row      { display: flex; flex-direction: column; gap: 4px; }
#contact .meta-label    { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: #9a7d4f; }
#contact .meta-val      { font-size: 12px; color: #b8ad96; }
#contact .meta-val a    { color: #b8ad96; text-decoration: none; transition: color .3s; }
#contact .meta-val a:hover { color: #c8a96e; }

/* ── Wrapper del formulario ── */
#contact .form {
  display: flex;
  flex-direction: column;
  background: #080807;
}
#contact .form-row      { display: grid; grid-template-columns: 1fr 1fr; }
#contact .form-row.full { grid-template-columns: 1fr; }

/* Bordes exteriores del rectángulo del form */
#contact .form-border-top   { border-top:    1px solid rgba(200,169,110,.45); }
#contact .form-border-left  { border-left:   1px solid rgba(200,169,110,.45); }
#contact .form-border-right { border-right:  1px solid rgba(200,169,110,.45); }
#contact .form-border-bot   { border-bottom: 1px solid rgba(200,169,110,.45); }

/* ── Campo individual ──
   Sistema de floating label:
   - El label ocupa la parte superior del campo (position absolute)
   - El input tiene padding-top de 32px para no quedar bajo el label
   - Cuando el input tiene contenido, el label se atenúa (opacity)
   ─────────────────────────────────────────────── */
#contact .field {
  position: relative;
  background: #080807;
  border-bottom: 1px solid rgba(200,169,110,.35);
  border-right:  1px solid rgba(200,169,110,.35);
  transition: border-color .3s;
}
#contact .field:focus-within {
  border-color: #c8a96e;
}

/* Label flotante — siempre arriba, visible */
#contact .field label {
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  margin: 0;
  padding: 10px 20px 8px;
  font-size: 9px;
  font-family: 'DM Mono', 'Courier New', monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9a7d4f;
  pointer-events: none;
  background: transparent;
  font-weight: 400;
  line-height: normal;
  border-bottom: 1px solid rgba(200,169,110,.2);
  opacity: 1;
  transition: opacity .3s;
  z-index: 2;
}

/* Input y textarea — padding-top crea espacio para el label */
#contact .field input,
#contact .field textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #f0ead8;
  padding: 34px 20px 14px;
  letter-spacing: .04em;
  font-weight: 300;
  resize: none;
  margin: 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
#contact .field textarea { min-height: 120px; }

/* Label se atenúa cuando el campo tiene contenido */
#contact .field input:not(:placeholder-shown) + label,
#contact .field textarea:not(:placeholder-shown) + label {
  opacity: .4;
}

/* ── Campo "Selected plan" ── */
#contact .fplan-hint {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9a7d4f;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity .3s, color .3s;
}
#contact .fplan-hint .fplan-arrow {
  display: inline-block;
  transition: transform .3s;
}
#contact .fplan-field:hover .fplan-hint          { opacity: 1; color: #c8a96e; }
#contact .fplan-field:hover .fplan-hint .fplan-arrow { transform: translateY(-2px); }
#contact .fplan-field.has-plan .fplan-hint       { display: none; }
#contact .fplan-field.has-plan                   { cursor: default; }
#contact .fplan-field.has-plan input             { cursor: default; }
#contact .fplan-field:not(.has-plan) {
  border-bottom-style: dashed;
  border-bottom-color: rgba(200,169,110,.35);
}
#contact .fplan-field:not(.has-plan):hover {
  border-bottom-color: #c8a96e;
  border-bottom-style: solid;
}

/* ── Fila del botón — dentro del rectángulo del form ── */
#contact .form-submit-row {
  padding: 20px 24px;
  background: #080807;
  border-top: 1px solid rgba(200,169,110,.35);
}

#contact .form-submit {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: #c8a96e;
  color: #080807;
  border: 1px solid #c8a96e;
  padding: 16px 36px;
  cursor: pointer;
  transition: background .3s, color .3s;
  display: inline-block;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
#contact .form-submit:hover {
  background: transparent;
  color: #c8a96e;
}
#contact .form-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 64px;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo      { font-family: var(--ff-d); font-size: 18px; font-weight: 300; letter-spacing: .15em; color: var(--cream); }
.footer-logo span { color: var(--gold); }
.footer-copy      { font-size: 10px; color: var(--gold-dim); letter-spacing: .1em; }
.footer-links     { display: flex; gap: 28px; }
.footer-links a   { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-dim); text-decoration: none; transition: color .3s; }
.footer-links a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════
   ANIMACIONES
═══════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
/* El honeypot usa estilos inline en el HTML — no requiere CSS. */

.form-error {
  font-family: var(--ff-m);
  font-size: 10px; letter-spacing: .1em;
  color: #e07070; margin-top: 12px;
}
.tick-svg    { width: 48px; height: 48px; }
.tick-circle { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 138; stroke-dashoffset: 138; animation: draw-circle 1s ease .1s forwards; }
.tick-check  { fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: square; stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw-check 0.9s ease .9s forwards; }
.form-sent-text { font-family: var(--ff-m); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); opacity: 0; animation: fadeIn .6s ease 1.6s forwards; }
.form-sent-sub  { font-family: var(--ff-m); font-size: 10px; font-weight: 300; letter-spacing: .06em; color: var(--cream-dim); opacity: 0; animation: fadeIn .6s ease 1.9s forwards; }

@keyframes draw-circle { to { stroke-dashoffset: 0; } }
@keyframes draw-check  { to { stroke-dashoffset: 0; } }
@keyframes fadeIn      { to { opacity: 1; } }
@keyframes up    { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:none; } }
@keyframes pulse { 0%,100% { opacity:.4; } 50% { opacity:1; } }
@keyframes shake { 0%,100% { transform:translateX(0); } 25% { transform:translateX(-6px); } 75% { transform:translateX(6px); } }

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET / MOBILE (max 900px)
═══════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* NAV */
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-links, .nav-cta { display: none; }

  /* SECCIONES */
  section { padding: 64px 24px; }

  /* HERO */
  #hero { grid-template-columns: 1fr; padding: 110px 24px 60px; gap: 36px; }
  .hero-content { margin: 0; padding-right: 0; max-width: 100%; }
  .hero-title   { font-size: clamp(44px, 11vw, 80px); }
  .hero-desc    { font-size: 13px; margin-top: 24px; max-width: 100%; }
  .cta-row      { margin-top: 24px; flex-wrap: wrap; gap: 12px; }
  .btn-p, .btn-g { padding: 13px 28px; font-size: 10px; }
  .hero-trust   { margin-top: 24px; gap: 12px; }
  .trust-items  { gap: 12px; }
  .hero-stats   { display: none; }
  .scroll-hint  { grid-column: 1; }

  /* SERVICES */
  .services-grid { grid-template-columns: 1fr; }
  .svc { border-right: none; border-bottom: 1px solid var(--line); padding: 36px 28px; }
  .svc:last-child { border-bottom: none; }

  /* ── PRICING SLIDER ──────────────────────────
     Estructura:
       .plans-tabs   → barra de tabs (borde completo excepto bottom)
       .plans-wrapper → overflow:hidden, borde completo excepto top
         .plans-track  → flex row, width: 300%, se traslada con transform
           .plan × 3   → cada una ocupa 1/3 del track = 100% del wrapper

     translateX usa porcentaje del track (no offsetWidth), así
     no hay dependencia de layout ni problemas de reflow:
       slide 0 → translateX(0%)
       slide 1 → translateX(-33.333%)
       slide 2 → translateX(-66.666%)
  ─────────────────────────────────────────────── */
  #pricing { padding: 64px 24px; }

  .plans-tabs { display: flex; }

  .plans-wrapper {
    overflow: hidden;
    border: 1px solid rgba(200,169,110,.3);
    border-top: none;
  }

  .plans-track {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: unset;
    gap: 0;
    width: 300%;
    transition: transform .4s cubic-bezier(.25,.46,.45,.94);
  }

  .plan {
    flex: 0 0 33.333%;
    width: 33.333%;
    min-width: 0;
    padding: 32px 20px;
    box-sizing: border-box;
    /* Sin .reveal — el overflow:hidden impide que el
       IntersectionObserver detecte las cards ocultas */
  }

  .plan-price { font-size: clamp(36px, 9vw, 52px); }

  /* Drawer inline en mobile — evita el clipping del overflow:hidden.
     Usa max-height para la transición de apertura/cierre. */
  .addon-drawer {
    position: static;
    transform: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 14px;
    border: none;
    border-top: 2px solid transparent;
    pointer-events: none;
    z-index: auto;
    transition: max-height .35s ease, opacity .25s ease,
                padding .3s ease, border-color .25s ease;
  }
  .plan.drawer-open .addon-drawer {
    opacity: 1;
    max-height: 320px;
    padding: 14px 14px 2px;
    border-top: 2px solid var(--gold);
    pointer-events: all;
    transform: none;
  }

  /* CONTACT */
  #contact .contact-wrap       { grid-template-columns: 1fr; gap: 36px; }
  #contact .form-row           { grid-template-columns: 1fr; }
  #contact .field              { border-right: none; }
  #contact .form-border-right  { border-right: none; }
  #contact .form-submit-row    { border-right: none; }
  #contact .contact-info h2    { font-size: clamp(32px, 9vw, 52px); }

  /* FOOTER */
  footer { flex-direction: column; align-items: flex-start; padding: 24px; gap: 12px; }
  .footer-links { gap: 20px; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE PEQUEÑO (max 480px)
═══════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* NAV */
  nav { padding: 18px 20px; }
  nav.scrolled { padding: 12px 20px; }
  .logo { font-size: 18px; }

  /* SECCIONES */
  section { padding: 52px 20px; }

  /* HERO */
  #hero         { padding: 96px 20px 52px; gap: 28px; }
  .hero-title   { font-size: clamp(36px, 13vw, 56px); line-height: .95; }
  .hero-desc    { font-size: 12px; line-height: 1.8; }
  .cta-row      { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-p, .btn-g { width: 100%; text-align: center; padding: 15px 20px; }
  .hero-trust   { flex-direction: column; align-items: flex-start; gap: 10px; }
  .trust-items  { gap: 14px; flex-wrap: wrap; }

  /* SECTION HEADERS */
  .s-header { flex-wrap: wrap; gap: 8px; }
  .s-line   { display: none; }
  .s-title  { font-size: clamp(28px, 9vw, 40px); }

  /* SERVICES */
  .svc      { padding: 28px 20px; }
  .svc-name { font-size: 24px; }
  .svc-desc { font-size: 11px; }

  /* PRICING */
  .plan       { padding: 28px 16px; }
  .plan-price { font-size: clamp(32px, 11vw, 46px); }

  /* CONTACT */
  #contact .contact-info h2 { font-size: clamp(28px, 10vw, 40px); }
  #contact .contact-info p  { font-size: 11px; }
  #contact .meta-val        { font-size: 11px; }
  #contact .form-submit-row { padding: 16px 20px; }
  #contact .form-submit     { width: 100%; text-align: center; }

  /* FOOTER */
  footer           { padding: 20px; }
  .footer-logo     { font-size: 16px; }
  .footer-copy     { font-size: 9px; }
  .footer-links a  { font-size: 9px; }

  /* MOBILE MENU */
  .mobile-menu   { padding: 0 24px; }
  .mobile-menu a { font-size: clamp(28px, 9vw, 44px); }
}
