/* ==========================================================================
   RM Serviços Digitais — hoja de estilos única (ES + PT-BR)
   Línea premium oscura: negro profundo dominante, oro solo como acento.
   ========================================================================== */

/* ---------- Tokens de marca ---------- */
:root {
  --bg: #0B0D10;
  --surface-1: #14171D;
  --surface-2: #1C2028;
  --gold: #D6AC58;
  --gold-bright: #F0D28A;
  --gold-deep: #9C7F3F;
  --text: #F5F3EE;
  --muted: #B5B7BD;
  --line: rgba(245, 243, 238, 0.09);
  --line-gold: rgba(214, 172, 88, 0.28);

  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1120px;
  --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.34);
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 0.55em; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.05rem, 6.2vw, 3.55rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.13rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--gold); }

::selection { background: rgba(214, 172, 88, 0.35); color: var(--text); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.section { padding-block: clamp(56px, 9vw, 104px); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
section[id] { scroll-margin-top: 76px; }

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: #0B0D10; font-weight: 700;
  padding: 10px 18px; border-radius: 8px; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 14px; color: #0B0D10; }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Utilidades tipográficas ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
}

.section-head { max-width: 640px; margin-bottom: clamp(28px, 5vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.02rem; }

.lead { color: var(--muted); font-size: clamp(1.02rem, 2.4vw, 1.16rem); max-width: 56ch; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-size: 0.98rem; font-weight: 700;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  min-height: 48px; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #171208; box-shadow: 0 6px 22px rgba(214, 172, 88, 0.22);
}
.btn-primary:hover { color: #171208; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(214, 172, 88, 0.3); }

.btn-ghost {
  background: rgba(214, 172, 88, 0.05); color: var(--text);
  border-color: var(--line-gold);
}
.btn-ghost:hover { color: var(--gold-bright); border-color: var(--gold); transform: translateY(-2px); }

.btn-sm { padding: 9px 18px; min-height: 42px; font-size: 0.9rem; }

.btn .wa-icon { flex: none; }

/* ---------- Header / Navbar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 13, 16, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.navbar { display: flex; align-items: center; gap: 14px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.brand-name { font-weight: 800; font-size: 0.98rem; letter-spacing: 0.01em; line-height: 1.15; min-width: 0; }
.brand-name small { display: block; font-weight: 500; font-size: 0.68rem; color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; }

/* En pantallas estrechas el dominio bajo la marca desborda la barra:
   se oculta y los controles de la derecha no se comprimen nunca. */
.nav-toggle, .lang-switch, .nav-actions .btn { flex: none; }
@media (max-width: 479px) {
  .brand-name small { display: none; }
  .navbar { gap: 10px; }
  .brand-name { font-size: 0.92rem; }
}

.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-links a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--muted); font-size: 0.92rem; font-weight: 600;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav-links a:hover { color: var(--gold-bright); background: rgba(214, 172, 88, 0.07); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn-whatsapp { display: none; }

/* Selector de idioma */
.lang-switch {
  display: inline-flex; align-items: center; border: 1px solid var(--line-gold);
  border-radius: 999px; padding: 3px; background: rgba(20, 23, 29, 0.7); font-size: 0.8rem;
}
.lang-switch a {
  padding: 5px 11px; border-radius: 999px; color: var(--muted); font-weight: 700; letter-spacing: 0.03em;
}
.lang-switch a[aria-current="page"] { background: var(--gold); color: #171208; }
.lang-switch a:not([aria-current="page"]):hover { color: var(--gold-bright); }

/* Menú móvil */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 10px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line-gold); cursor: pointer;
}
.nav-toggle .bar { height: 2px; width: 100%; background: var(--gold-bright); border-radius: 2px; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; border-top: 1px solid var(--line);
  background: rgba(11, 13, 16, 0.98);
  padding: 10px 20px 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a {
  display: block; padding: 13px 4px; color: var(--muted); font-weight: 600;
  border-bottom: 1px solid var(--line); font-size: 1rem;
}
.mobile-menu a:hover { color: var(--gold-bright); }
.mobile-menu .btn { width: 100%; margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(60px, 10vw, 120px) clamp(56px, 9vw, 104px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(52% 42% at 82% 12%, rgba(214, 172, 88, 0.09), transparent 70%),
    radial-gradient(40% 34% at 8% 88%, rgba(214, 172, 88, 0.05), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: clamp(36px, 6vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .gold { color: var(--gold-bright); }
.hero .lead { margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-note { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.86rem; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; box-shadow: 0 0 0 4px rgba(214, 172, 88, 0.14); }

/* Mockup abstracto (SVG inline, sin métricas reales) */
.hero-visual { position: relative; }
.hero-visual .glow {
  position: absolute; inset: -12% -8%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(214, 172, 88, 0.13), transparent 72%);
}
.mockup-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line-gold); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 18px; max-width: 520px; margin-inline: auto;
}
.mockup-chip {
  position: absolute; background: var(--surface-2); border: 1px solid var(--line-gold);
  border-radius: 12px; padding: 10px 14px; font-size: 0.76rem; font-weight: 700;
  color: var(--gold-bright); box-shadow: var(--shadow-card); letter-spacing: 0.04em;
}
.mockup-chip.a { top: -14px; right: 6%; }
.mockup-chip.b { bottom: -14px; left: 4%; color: var(--text); }

/* ---------- Tarjetas genéricas ---------- */
.grid { display: grid; gap: 18px; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

.card {
  background: linear-gradient(170deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--line-gold); box-shadow: var(--shadow-card); }

.icon-tile {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(214, 172, 88, 0.1); border: 1px solid var(--line-gold);
}
.icon-tile svg { width: 22px; height: 22px; stroke: var(--gold-bright); fill: none; stroke-width: 1.7; }

.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

/* Beneficios: numeración dorada */
.benefit-card { display: flex; gap: 16px; align-items: flex-start; }
.benefit-num {
  font-size: 0.8rem; font-weight: 800; color: var(--gold); letter-spacing: 0.1em;
  border: 1px solid var(--line-gold); border-radius: 999px; padding: 5px 12px; flex: none;
  margin-top: 3px; background: rgba(214, 172, 88, 0.06);
}

/* Servicios: tarjeta con lista corta */
.service-card ul { list-style: none; margin: 12px 0 0; padding: 0; }
.service-card li { color: var(--muted); font-size: 0.92rem; padding-left: 20px; position: relative; margin-bottom: 6px; }
.service-card li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 1.5px; background: var(--gold); }

/* ---------- Precios ---------- */
.pricing-grid { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: stretch; }

.price-card {
  display: flex; flex-direction: column;
  background: linear-gradient(170deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px); position: relative;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.price-card:hover { transform: translateY(-3px); border-color: var(--line-gold); box-shadow: var(--shadow-card); }

.price-card.highlight {
  border-color: rgba(214, 172, 88, 0.55);
  background: linear-gradient(170deg, rgba(214, 172, 88, 0.07), var(--surface-1) 46%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}
.price-card.highlight::before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius);
  padding: 1px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  background: linear-gradient(140deg, var(--gold-bright), transparent 42%, transparent 60%, var(--gold));
  pointer-events: none;
}

.plan-flag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: #171208;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.plan-flag.dim { background: none; color: var(--muted); border: 1px solid var(--line); letter-spacing: 0.1em; }

.price-card h3 { font-size: 1.22rem; margin-bottom: 4px; }
.plan-tag { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }

.pay-block {
  border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 16px;
}
.pay-block:last-of-type { margin-bottom: 22px; }
.pay-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.pay-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 5px 0; font-size: 0.94rem; color: var(--text); }
.pay-row .value { font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
.pay-row .value.monthly { color: var(--gold-bright); }
.pay-row small { color: var(--muted); display: block; font-size: 0.8rem; font-weight: 500; }

.plan-features { list-style: none; margin: 0 0 18px; padding: 0; flex-grow: 1; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--muted); margin-bottom: 9px; }
.plan-features li svg { flex: none; margin-top: 4px; stroke: var(--gold); }
.plan-features li strong { color: var(--text); font-weight: 700; }

.plan-excludes { border-top: 1px dashed var(--line); padding-top: 14px; margin-bottom: 20px; }
.plan-excludes li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); margin-bottom: 7px; list-style: none; }
.plan-excludes li svg { flex: none; margin-top: 4px; stroke: var(--gold-deep); }

.price-card .btn { width: 100%; }

.pricing-disclaimer {
  margin-top: 26px; border: 1px dashed var(--line-gold); border-radius: var(--radius-sm);
  padding: 16px 18px; color: var(--muted); font-size: 0.88rem;
  display: flex; gap: 12px; align-items: flex-start;
}
.pricing-disclaimer svg { flex: none; margin-top: 3px; stroke: var(--gold); }

/* ---------- Consultoría ---------- */
.consult-band {
  display: grid; gap: 24px;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(214, 172, 88, 0.08), transparent 60%),
    linear-gradient(170deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line-gold); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}
.consult-price { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 14px; }
.consult-price .amount { font-size: clamp(2.1rem, 5vw, 2.9rem); font-weight: 800; color: var(--gold-bright); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.consult-price .per { color: var(--muted); font-size: 0.95rem; }
.consult-list { list-style: none; margin: 0 0 20px; padding: 0; }
.consult-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 0.95rem; margin-bottom: 9px; }
.consult-list li svg { flex: none; margin-top: 4px; stroke: var(--gold); }
.consult-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px dashed var(--gold); color: var(--gold-bright);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
}
.consult-note { color: var(--muted); font-size: 0.85rem; margin-top: 14px; }

/* ---------- Proceso ---------- */
.process-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: paso; }
.process-item {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: flex-start;
  background: linear-gradient(170deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.process-item:hover { border-color: var(--line-gold); transform: translateY(-2px); }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; color: #171208;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  box-shadow: 0 6px 18px rgba(214, 172, 88, 0.25);
}
.process-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.process-item p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Portafolio ---------- */
.portfolio-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.portfolio-empty {
  border: 1.5px dashed var(--line-gold); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; color: var(--muted);
  background: rgba(214, 172, 88, 0.03); min-height: 180px;
  display: grid; place-content: center; gap: 8px;
}
.portfolio-empty .slot-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.portfolio-empty p { font-size: 0.9rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: linear-gradient(170deg, var(--surface-2), var(--surface-1));
  margin-bottom: 12px; overflow: hidden; transition: border-color 0.2s var(--ease);
}
.faq-item[open] { border-color: var(--line-gold); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px;
  align-items: center; padding: 17px 20px; font-weight: 700; font-size: 0.99rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-gold); display: grid; place-items: center;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.faq-item summary .chev svg { stroke: var(--gold-bright); }
.faq-item[open] summary .chev { transform: rotate(45deg); background: rgba(214, 172, 88, 0.12); }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--muted); font-size: 0.94rem; }
.faq-item .faq-body a { font-weight: 600; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
.contact-form { display: grid; gap: 14px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 7px; color: var(--text); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; font-family: var(--font); font-size: 0.95rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(181, 183, 189, 0.55); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 172, 88, 0.18);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-note { color: var(--muted); font-size: 0.82rem; display: flex; gap: 8px; align-items: flex-start; }
.form-note svg { flex: none; margin-top: 3px; stroke: var(--gold); }

.contact-aside { display: grid; gap: 14px; align-content: start; }
.contact-link {
  display: flex; gap: 14px; align-items: center;
  background: linear-gradient(170deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 15px 18px; color: var(--text);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.contact-link:hover { border-color: var(--line-gold); transform: translateY(-2px); color: var(--text); }
.contact-link .icon-tile { width: 42px; height: 42px; margin: 0; border-radius: 10px; }
.contact-link .label { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.contact-link .value { font-weight: 600; font-size: 0.96rem; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #090A0D; padding-block: 46px 26px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; }
.footer-col h4 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a, .footer-col p { color: var(--muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-legal a.tbd { color: var(--muted); opacity: 0.75; }
.footer-legal a.tbd::after { content: " ·"; color: var(--gold); }

.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-gold); color: var(--gold-bright);
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.social-row a:hover { background: rgba(214, 172, 88, 0.12); transform: translateY(-2px); }
.social-row svg { width: 19px; height: 19px; }

.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 0.83rem;
}

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  color: #171208; display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(240, 210, 138, 0.35);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); color: #171208; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(240, 210, 138, 0.55); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Reveal sutil al hacer scroll ---------- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.js .reveal.reveal-in { opacity: 1; transform: none; }
.js .reveal.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 60ms); }

/* ==========================================================================
   Responsive — desktop
   ========================================================================== */
/* minmax(0,…) en todas las grillas multicolunma: sin mínimo automático, para
   que una palabra larga o el zoom de texto al 200 % no ensanchen la columna y
   desborden la tarjeta o la página (WCAG 1.4.4 / 1.4.10). */
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pricing-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .process-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .process-list .process-item.wide { grid-column: 1 / -1; }
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .contact-grid { grid-template-columns: minmax(0,1.15fr) minmax(0,0.85fr); }
  .footer-grid { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr); }
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .nav-actions .btn-whatsapp { display: inline-flex; }
  .hero-grid { grid-template-columns: minmax(0,1.08fr) minmax(0,0.92fr); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .process-list { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .process-list .process-item.wide { grid-column: auto; }
  .process-item { grid-template-columns: 1fr; text-align: left; }
  .step-num { margin-bottom: 6px; }
  .consult-band { grid-template-columns: minmax(0,1.25fr) minmax(0,0.75fr); align-items: center; }
  .consult-actions { flex-direction: column; align-items: stretch; }
}

/* Ajustes de contraste tipográfico en pantallas muy grandes */
@media (min-width: 1440px) {
  body { font-size: 1.03rem; }
}

/* Fase 2: marca original, reflow, interacción y formularios. */
:root { --font: "Segoe UI", system-ui, -apple-system, sans-serif; --line:rgba(245,243,238,.16); }
[hidden] { display:none !important; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
main:focus, section:focus { outline-offset:-3px; }
.btn { white-space:normal; text-align:center; min-width:0; }
.btn-primary { background:linear-gradient(135deg,#f0d28a,#d6ac58); }
.btn:disabled, fieldset:disabled .btn { cursor:not-allowed; box-shadow:none; opacity:.65; transform:none; }
.brand { min-width:0; gap:10px; }
.brand img, .footer-brand img { width:52px; height:52px; object-fit:contain; flex:none; }
.brand-name { font-size:.96rem; }
.brand-name small { font-size:.61rem; letter-spacing:.08em; margin-top:5px; }
.navbar { min-height:80px; }
.nav-actions { gap:8px; }
.lang-switch a { min-height:44px; min-width:38px; display:grid; place-items:center; white-space:nowrap; }
.nav-toggle { width:44px; height:44px; flex:none; }
.nav-links a { min-height:44px; display:flex; align-items:center; padding-inline:8px; }
.mobile-menu { max-height:calc(100dvh - 80px); overflow:auto; overscroll-behavior:contain; }
.mobile-menu a { min-height:44px; }
html:not(.nav-ready) .nav-toggle { display:none; }
section[id], details[id] { scroll-margin-top:100px; }
.brand-visual { display:grid; place-items:center; justify-self:center; width:100%; }
.hero-logo { width:min(100%,370px); height:auto; aspect-ratio:1; object-fit:contain; border-radius:50%; position:relative; box-shadow:0 22px 75px #0008; }
.brand-caption { margin-top:22px; font-size:.82rem; color:var(--gold-bright); letter-spacing:.16em; text-transform:uppercase; }
.pricing-grid { grid-template-columns:minmax(0,1fr); }
.price-card { min-width:0; }
.price-card h3 { font-size:1.48rem; }
.plan-tag { min-height:1.5em; margin-top:8px; }
.pay-row { flex-wrap:wrap; gap:4px 12px; }
.pay-row>span:first-child { flex:1 1 135px; }
.pay-row .value { font-size:1.1rem; }
.pay-row:has(.monthly) .value { font-size:1.45rem; }
.list-label { font-size:.76rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--gold-bright); margin-bottom:12px; }
.plan-features { flex-grow:1; }
.plan-features li { line-height:1.65; }
.plan-features svg { color:var(--gold); flex:none; }
.plan-exclusions { border-top:1px solid var(--line); padding-top:16px; }
.plan-excludes { padding:0; border:0; }
.plan-details { margin:0 0 22px; border-block:1px solid var(--line); }
.plan-details summary { padding:12px 0; cursor:pointer; color:var(--gold-bright); font-size:.88rem; font-weight:600; min-height:44px; }
.plan-details ul { padding-left:20px; font-size:.88rem; color:var(--muted); }
.plan-details li { margin-bottom:10px; }
.footer-col h3 { font-size:.9rem; color:var(--gold-bright); letter-spacing:.06em; }
.social-row a { width:44px; height:44px; }
.form-field input::placeholder,.form-field textarea::placeholder { color:#a5a9b1; }
.form-field input,.form-field textarea { font-size:1rem; border-color:#686d76; }
.form-field [aria-invalid="true"] { border-color:#ffb9a9; }
.contact-form a, .privacy-note a { text-decoration:underline; text-underline-offset:3px; }
.form-note { line-height:1.65; min-height:1.5em; }
.newsletter { background:linear-gradient(130deg,#1c2028,#0b0d10); }
.newsletter-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:28px; }
.newsletter-grid>div:first-child p { color:var(--muted); }
.newsletter form { border:1px solid var(--line-gold); border-radius:var(--radius); padding:24px; }
.newsletter fieldset { min-width:0; border:0; padding:0; margin:0; display:grid; gap:18px; }
.consent { display:flex; align-items:flex-start; gap:12px; font-size:.9rem; color:var(--muted); cursor:pointer; }
.consent input { width:22px; height:22px; flex:none; margin:3px 0; accent-color:var(--gold); }
.consent span { overflow-wrap:anywhere; }
.honeypot { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.privacy-note { grid-column:1/-1; color:var(--muted); font-size:.9rem; border-top:1px solid var(--line); padding-top:18px; }
.privacy-note summary { min-height:44px; cursor:pointer; color:var(--gold-bright); }
.wa-float { right:max(14px,env(safe-area-inset-right)); bottom:max(14px,env(safe-area-inset-bottom)); }
.lang-splash img { object-fit:contain; }
@media(max-width:1179px) {
  .nav-links,.nav-actions .btn-whatsapp { display:none; }
  .nav-ready .nav-toggle { display:flex; }
  .mobile-menu.open { display:block !important; }
  .hero-grid { grid-template-columns:minmax(0,1fr); }
  .hero-logo { width:220px; }
  .hero { padding-top:50px; }
}
@media(min-width:1000px) { .pricing-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(min-width:1180px) {
  .nav-ready .nav-toggle { display:none; }
  .newsletter-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:40px; }
}
@media(max-width:599px) {
  .brand-name small { display:none; }
  .navbar { gap:8px; padding-inline:14px; }
  .brand-name { max-width:130px; font-size:.86rem; }
  .brand img { width:44px; height:44px; }
  .brand { gap:8px; }
  .lang-switch a { font-size:.75rem; padding-inline:8px; }
  .hero-grid { gap:34px; }
  .hero-visual { margin-block:0; }
  .hero-logo { width:190px; }
  .hero-ctas { align-items:stretch; }
  .hero-ctas .btn { flex:1 1 220px; }
  .section { padding-block:56px; }
}
@media(forced-colors:active) { .btn,.price-card,.consent input { border:1px solid ButtonText; } }

/* Fase 3: medición con consentimiento (GTM/GA4) y reflow seguro a 200 % de
   texto. El banner no oculta el contenido ni bloquea el scroll: es un diálogo
   no modal anclado abajo, generado por assets/js/consent.js. */
html { overflow-x: clip; }
.card, .price-card, .benefit-card, .service-card, .faq-item, .plan-details, .plan-exclusions, .footer-col ul, .contact-aside, .privacy-note { min-width: 0; overflow-wrap: break-word; }
.grid > *, .consult-band > div, .process-item, .portfolio-empty { min-width: 0; }
/* Con texto al 200 % una palabra larga puede superar el ancho de columna:
   anywhere solo la parte cuando de otro modo desbordaría (WCAG 1.4.4/1.4.10). */
h1, h2, h3, h4, summary, p, li, .eyebrow, .lead { overflow-wrap: anywhere; }
.plan-features li span, .plan-excludes li span, .pay-row span, .list-label { overflow-wrap: anywhere; }
.consult-price { flex-wrap: wrap; }
/* El halo decorativo sangraba fuera del contenedor en pantallas estrechas. */
.hero-visual { overflow: clip; }
.link-button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; min-height: 44px; }
.footer-legal .link-button { color: var(--gold-bright); }
.link-button:hover { text-decoration: underline; }
.consent-banner { position: fixed; inset-inline: 0; bottom: 0; z-index: 80; padding: max(14px, env(safe-area-inset-bottom)) 14px 14px; background: linear-gradient(180deg, transparent, rgba(11,13,16,.92) 26%); }
.consent-box { background: var(--surface-1); color: var(--text); border: 1px solid var(--line-gold); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 20px; max-width: 720px; margin-inline: auto; }
.consent-box h2 { margin: 0 0 8px; font-size: 1.05rem; color: var(--gold-bright); }
.consent-box p { margin: 0 0 14px; font-size: .92rem; color: var(--muted); overflow-wrap: anywhere; }
.consent-box p a { text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions .btn { flex: 1 1 160px; }
.consent-options { min-width: 0; margin: 16px 0 0; padding: 0; border: 0; display: grid; gap: 12px; }
.consent-options .consent { margin: 0; }
.consent-necessary { margin: 0; font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
@media (min-width: 720px) { .consent-actions .btn { flex: 0 1 auto; } }
@media (prefers-reduced-motion: reduce) { .consent-banner { animation: none; } }
@media (forced-colors: active) { .consent-box { border: 1px solid ButtonText; } }
