/* bugus.io — paleta corporativa navy + teal */
:root {
  --bg-deep: #0c1118;
  --bg: #111820;
  --bg-elevated: #171f2a;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-solid: #1a2332;
  --ink: #f1f5f9;
  --ink-soft: #cbd5e1;
  --muted: #94a3b8;
  --muted-strong: #64748b;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #0d9488;
  --accent-light: #14b8a6;
  --accent-dark: #0f766e;
  --accent-muted: rgba(13, 148, 136, 0.14);
  --accent-glow: rgba(13, 148, 136, 0.22);
  --grad-brand: linear-gradient(160deg, var(--accent-dark) 0%, var(--accent) 55%, var(--accent-light) 100%);
  --grad-surface: linear-gradient(165deg, #1a2433 0%, #121a24 100%);
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 76px;
  --shadow-glow: 0 24px 48px rgba(0, 0, 0, 0.4);
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bg-light: #f1f5f9;
  --ink-on-light: #0f172a;
  --muted-on-light: #475569;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%, var(--accent-glow), transparent 55%),
    radial-gradient(ellipse 55% 40% at 85% 10%, rgba(100, 116, 139, 0.12), transparent 50%),
    var(--bg-deep);
  pointer-events: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(var(--max), 100% - 2.5rem);
  margin-inline: auto;
}

/* Utilidades */
.accent-word {
  color: var(--accent-light);
}

.hero-title {
  color: var(--ink);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(12, 17, 24, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 4px 12px var(--accent-glow));
}

.brand span small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-desktop a:not(.btn) {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

.nav-desktop a:not(.btn):hover {
  color: var(--accent-light);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  color: var(--ink);
  border-radius: 12px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: rgba(10, 14, 24, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.5rem;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow-glow);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 0.85rem 0;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.nav-mobile a:last-child {
  color: var(--accent-light);
  border-bottom: none;
  margin-top: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  color: var(--ink);
  transition: transform 0.2s var(--ease), box-shadow 0.25s, filter 0.2s;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.btn--primary {
  background: var(--ink);
  color: var(--bg-deep);
  border-color: var(--ink);
  font-weight: 700;
}

.btn--primary:hover {
  background: #fff;
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 700;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn--accent:hover {
  background: var(--accent-light);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.btn--whatsapp {
  background: #128c4a;
  border-color: #25d366;
  color: #fff;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn .spin {
  display: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(5, 7, 13, 0.3);
  border-top-color: var(--bg-deep);
  animation: spin 0.8s linear infinite;
}

.btn.loading .spin {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hero */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -100px;
  top: 22%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(48px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-muted);
  border: 1px solid rgba(20, 184, 166, 0.35);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 36ch;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-glow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -16px;
  background: var(--accent);
  border-radius: calc(var(--radius-lg) + 8px);
  opacity: 0.18;
  filter: blur(40px);
  z-index: -1;
}

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
}

.section--light {
  background: var(--bg-light);
  color: var(--ink-on-light);
  border-block: 1px solid rgba(12, 18, 32, 0.08);
}

.section--light .section-head p,
.section--light .card p,
.section--light .step p,
.section--light .value span {
  color: var(--muted-on-light);
}

.section--light .section-head h2,
.section--light .card h3,
.section--light .step h3 {
  color: var(--ink-on-light);
}

.section--light .card {
  background: #fff;
  border-color: rgba(12, 18, 32, 0.1);
  box-shadow: 0 4px 24px rgba(12, 18, 32, 0.08);
}

.section--light .card:hover {
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  border-color: rgba(13, 148, 136, 0.4);
}

.section--light .card-link {
  color: var(--accent-dark);
}

.section--light .step-num {
  background: var(--accent);
  color: #fff;
}

.section--light .value strong {
  color: var(--accent-dark);
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 44rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 500;
}

.section--light .section-head h2 {
  color: var(--ink-on-light);
}

/* Featured */
.featured {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 2.75rem;
  background: var(--grad-surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.featured-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-muted);
  border: 1px solid rgba(20, 184, 166, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.featured h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.featured p {
  margin: 0 0 1.35rem;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 1.02rem;
  max-width: 52ch;
  line-height: 1.6;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.feature-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.featured-icon {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  background: var(--accent-muted);
  border: 1px solid rgba(20, 184, 166, 0.25);
  display: grid;
  place-items: center;
  font-size: 2.75rem;
}

/* Cards */
.grid {
  display: grid;
  gap: 1.35rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.55rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
  background: var(--accent-muted);
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.55;
}

.card-link {
  display: inline-flex;
  margin-top: 1.15rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-light);
  text-decoration: none;
}

.card-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.card--highlight {
  border-color: rgba(13, 148, 136, 0.35);
  background: linear-gradient(160deg, var(--accent-muted) 0%, var(--surface-solid) 50%);
}

.section--light .card--highlight {
  background: linear-gradient(160deg, #ecfdf5 0%, #fff 55%);
  border-color: rgba(13, 148, 136, 0.25);
}

.section--light .card-icon {
  background: #ccfbf1;
  border-color: #99f6e4;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg-deep);
  font-size: 0.95rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}

/* Values */
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.value {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.value strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--accent-light);
  margin-bottom: 0.35rem;
}

.value span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-intro .section-head {
  margin-bottom: 1rem;
}

.contact-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-glow);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.contact-card.form-ready {
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: var(--shadow-glow), 0 0 0 1px var(--accent-muted);
}

.contact-card.is-sending {
  pointer-events: none;
  opacity: 0.92;
}

.contact-card.form-shake {
  animation: formShake 0.45s var(--ease);
}

@keyframes formShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Progress */
.form-progress {
  margin-bottom: 1.35rem;
}

.form-progress__track {
  height: 5px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}

.form-progress__bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--grad-brand);
  transition: width 0.45s var(--ease);
  box-shadow: 0 0 12px var(--accent-glow);
}

.form-progress__hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.contact-card.form-ready .form-progress__hint {
  color: var(--accent-light);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.9rem;
}

.contact-form {
  position: relative;
  z-index: 1;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.contact-card.is-success .contact-form {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

.field {
  position: relative;
  margin-bottom: 0.85rem;
}

/* Floating labels */
.field--float input,
.field--float textarea {
  width: 100%;
  padding: 1.35rem 1rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.field--float label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
  transition: top 0.22s var(--ease), font-size 0.22s var(--ease), color 0.22s, transform 0.22s var(--ease);
}

.field--area label {
  top: 1.15rem;
  transform: none;
}

.field--float input:focus,
.field--float textarea:focus,
.field--float.is-filled input,
.field--float.is-filled textarea {
  outline: none;
  border-color: var(--accent);
  background: rgba(13, 148, 136, 0.06);
  box-shadow: 0 0 0 4px var(--accent-muted);
}

.field--float input:focus + label,
.field--float textarea:focus + label,
.field--float.is-filled label {
  top: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-light);
  transform: none;
}

.field--area textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 1.5rem;
}

.field__glow {
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  opacity: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent 60%);
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: -1;
}

.field--float input:focus ~ .field__glow,
.field--float textarea:focus ~ .field__glow {
  opacity: 1;
}

.field__counter {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-strong);
  text-align: right;
  transition: color 0.2s;
}

.field__counter.is-ok {
  color: #3ddc97;
}

.field.valid input,
.field.valid textarea {
  border-color: #3ddc97;
}

.field.invalid input,
.field.invalid textarea {
  border-color: #ff6b6b;
  animation: fieldPulse 0.4s ease;
}

@keyframes fieldPulse {
  50% { box-shadow: 0 0 0 6px rgba(255, 107, 107, 0.15); }
}

.assist {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ff8a8a;
}

.field.show .assist,
.privacy-check.show .assist {
  display: block;
}

/* Custom privacy checkbox */
.privacy-check {
  margin-bottom: 1rem;
}

.check-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.2s var(--ease);
  user-select: none;
}

.check-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.check-card:has(.check-card__input:checked) {
  border-color: var(--accent);
  background: var(--accent-muted);
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.25);
}

.check-card:has(.check-card__input:focus-visible) {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

.check-card__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.check-card__box {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 0.05rem;
  border-radius: 9px;
  border: 2px solid var(--line-strong);
  background: var(--surface-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease);
}

.check-card__tick {
  width: 16px;
  height: 16px;
  color: #fff;
  opacity: 0;
  transform: scale(0.4) rotate(-12deg);
  transition: opacity 0.2s, transform 0.35s var(--ease);
}

.check-card__input:checked + .check-card__box {
  background: var(--grad-brand);
  border-color: var(--accent-light);
  transform: scale(1.05);
}

.check-card__input:checked + .check-card__box .check-card__tick {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.check-card__text {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.55;
}

.check-card__text a {
  color: var(--accent-light);
  font-weight: 700;
  text-decoration: none;
}

.check-card__text a:hover {
  text-decoration: underline;
}

.privacy-check.valid .check-card {
  border-color: #3ddc97;
}

.privacy-check.invalid .check-card {
  border-color: #ff6b6b;
}

.recaptcha-wrap {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed var(--line);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.btn--send {
  min-width: 11rem;
  padding-inline: 1.5rem;
}

.btn--send:not(:disabled) {
  background: var(--grad-brand);
  color: #fff;
  border: none;
  box-shadow: 0 10px 28px var(--accent-glow);
}

.btn--send:not(:disabled):hover {
  filter: brightness(1.08);
  color: #fff;
}

.btn-send__arrow {
  transition: transform 0.25s var(--ease);
}

.btn--send:not(:disabled):hover .btn-send__arrow {
  transform: translateX(4px);
}

.alert-error {
  color: #ff8a8a;
  font-weight: 700;
  margin-top: 0.85rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.25);
}

.alert-error[hidden] {
  display: none !important;
}

.contact-note {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.6;
}

/* Success overlay */
.form-success-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(145deg, #047857 0%, #059669 35%, #10b981 70%, #34d399 100%);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
}

.form-success-overlay.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.form-success-overlay[hidden]:not(.is-visible) {
  display: none;
}

.form-success-overlay[hidden].is-visible,
.form-success-overlay.is-visible {
  display: flex;
}

.form-success__rings {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.form-success__rings::before,
.form-success__rings::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%) scale(0.3);
  animation: successRing 1.2s var(--ease) forwards;
}

.form-success__rings::after {
  animation-delay: 0.15s;
  border-color: rgba(255, 255, 255, 0.12);
}

@keyframes successRing {
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

.form-success__content {
  position: relative;
  text-align: center;
  color: #fff;
  max-width: 320px;
  animation: successPop 0.7s var(--ease) 0.15s both;
}

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

.form-success__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
}

.form-success__icon svg {
  width: 100%;
  height: 100%;
}

.form-success__circle {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: successCircle 0.6s ease 0.2s forwards;
}

.form-success__check {
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: successCheck 0.45s ease 0.65s forwards;
}

@keyframes successCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes successCheck {
  to { stroke-dashoffset: 0; }
}

.form-success__title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.form-success__text {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  opacity: 0.95;
}

.form-success__again {
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.2s var(--ease);
}

.form-success__again:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-links a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copy {
  margin: 1.75rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted-strong);
  width: 100%;
}

/* FAB */
.wa-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c4a);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s var(--ease);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.wa-fab:hover {
  transform: translateY(-3px) scale(1.02);
}

/* Animación entrada */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-visual {
    animation: fade-up 0.9s var(--ease) both;
  }
  .hero-visual {
    animation-delay: 0.12s;
  }
}

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

/* Legal */
.legal-body {
  padding-bottom: 2rem;
}

.legal-main {
  padding: 3rem 0 4rem;
  max-width: 720px;
}

.legal-main h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.legal-updated {
  margin: 0 0 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal-sections section {
  margin-bottom: 2rem;
}

.legal-sections h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-light);
}

.legal-sections p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.legal-contact {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-contact a {
  color: var(--accent-light);
  font-weight: 600;
}

.footer-legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.footer-legal-row a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}

.footer-legal-row a:hover {
  color: var(--accent-light);
}

.footer-links--legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 1rem 5.5rem 1rem;
  z-index: 85;
  max-width: 520px;
  margin-inline: auto;
  padding: 1.15rem 1.25rem;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.cookie-banner p a {
  color: var(--accent-light);
  font-weight: 600;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner__actions .btn {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

@media (min-width: 640px) {
  .cookie-banner {
    left: auto;
    right: 1.25rem;
    margin-inline: 0;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .contact-wrap,
  .featured {
    grid-template-columns: 1fr;
  }

  .featured-icon {
    display: none;
  }

  .grid-3,
  .values,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .grid-3,
  .values,
  .steps {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: 0;
    padding: 1.25rem;
  }

  .form-success__title {
    font-size: 1.65rem;
  }

  .hero {
    padding-top: 3.5rem;
  }
}
