/* ==========================================================================
   mantenimientomensual.cc — estilos
   ========================================================================== */

:root {
  --ink: #0d1b34;
  --ink-2: #33415c;
  --muted: #5f6b82;
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --line: #e2e8f3;
  --primary: #2753e6;
  --primary-hover: #1c40c0;
  --primary-soft: #eaf0ff;
  --accent: #10a87a;
  --accent-ink: #087553;
  --accent-soft: #e3f7ef;
  --danger: #c62f2f;
  --danger-soft: #fdecec;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 52, .06), 0 2px 8px rgba(13, 27, 52, .05);
  --shadow: 0 12px 30px -12px rgba(13, 27, 52, .2), 0 4px 10px -6px rgba(13, 27, 52, .08);
  --shadow-lg: 0 30px 60px -22px rgba(13, 27, 52, .3);
  --container: 1160px;
  --header-h: 72px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
}

p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid rgba(39, 83, 230, .45);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.i {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .9em 1.45em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .15s, background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn .i { width: 20px; height: 20px; stroke-width: 2.2; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(39, 83, 230, .7);
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .45);
}
.btn-light:hover { color: var(--primary-hover); transform: translateY(-1px); }

.btn-sm { padding: .62em 1.15em; font-size: .93rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* Cabecera
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.brand-name { font-size: 1.06rem; font-weight: 800; letter-spacing: -.015em; }
.brand-name strong { color: var(--primary); font-weight: 800; }
.brand-tld { color: var(--muted); font-weight: 600; }

.nav ul {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a { color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
  background:
    radial-gradient(620px 420px at 88% 8%, rgba(39, 83, 230, .13), transparent 70%),
    radial-gradient(520px 380px at 6% 96%, rgba(16, 168, 122, .11), transparent 70%),
    linear-gradient(#f6f9fe, #fff);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(13, 27, 52, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .7), transparent 75%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .7), transparent 75%);
  pointer-events: none;
}
.hero > .container { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .85rem;
  font-weight: 700;
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(16, 168, 122, .2);
}

.hero h1 {
  margin: 20px 0;
  font-size: clamp(2.25rem, 5vw, 3.6rem);
}
.hl {
  background: linear-gradient(90deg, var(--primary), #14a89a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.lead {
  max-width: 34em;
  font-size: 1.2rem;
  color: var(--ink-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: .95rem;
  font-weight: 600;
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .i { width: 20px; height: 20px; color: var(--accent); stroke-width: 2.4; }

.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }

/* Tarjeta de chat ilustrativa */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 48px 0 52px;
  margin-left: auto;
  animation: rise .8s .2s cubic-bezier(.2, .7, .2, 1) both;
}
.chat-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(#fbfcff, #f4f7fe);
}
.avatar {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #14a89a);
  color: #fff;
}
.avatar .i { width: 22px; height: 22px; stroke-width: 2; }
.chat-head strong { display: block; font-size: .98rem; line-height: 1.3; }
.status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-ink);
  font-size: .82rem;
  font-weight: 600;
}
.status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
.chat-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px;
  font-size: .95rem;
}
.chat-body > * { animation: pop .45s cubic-bezier(.2, .7, .2, 1) both; }
.chat-body > :nth-child(1) { animation-delay: .5s; }
.chat-body > :nth-child(2) { animation-delay: 1.1s; }
.chat-body > :nth-child(3) { animation-delay: 1.7s; }
.chat-body > :nth-child(4) { animation-delay: 2.3s; }

.msg {
  max-width: 86%;
  margin: 0;
  padding: 11px 15px;
  border-radius: 16px;
  line-height: 1.45;
}
.msg-user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.msg-tech {
  align-self: flex-start;
  background: var(--bg-alt);
  border-bottom-left-radius: 5px;
}
.chat-event {
  display: flex;
  align-items: center;
  gap: 7px;
  align-self: center;
  margin: 0;
  padding: 5px 12px;
  border: 1px dashed #cdd6e6;
  border-radius: 999px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
}
.chat-event .i { width: 15px; height: 15px; color: var(--accent); stroke-width: 2.2; }
.chat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}
.tag-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: .82rem;
  font-weight: 700;
}
.tag-ok .i { width: 14px; height: 14px; stroke-width: 2.6; }

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.25;
  animation: float 6s ease-in-out infinite;
}
.float-badge small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; }
.float-badge .ic {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}
.float-badge .ic .i { width: 20px; height: 20px; }
.float-badge.badge-a { top: 0; right: -28px; }
.float-badge.badge-b { bottom: 0; left: -40px; animation-delay: -3s; }
.float-badge.badge-b .ic { background: var(--accent-soft); color: var(--accent-ink); }

/* Franja de dispositivos */
.devices {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.devices-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 30px;
  padding: 22px 0;
  color: var(--muted);
  font-weight: 700;
  font-size: .95rem;
}
.devices-inner > span:first-child {
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
}
.devices-inner .chip { display: inline-flex; align-items: center; gap: 8px; }
.devices-inner .chip .i { width: 19px; height: 19px; color: var(--primary); }

/* Secciones
   -------------------------------------------------------------------------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 690px;
  margin: 0 auto 56px;
  text-align: center;
}
.kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section-head h2, .split h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.section-head p { margin: 0; color: var(--ink-2); font-size: 1.1rem; }

/* Servicios */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d2dcf0; }
.card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

.icon {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
}
.icon.alt { background: var(--accent-soft); color: var(--accent-ink); }

/* Pasos */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.step-num {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--primary-soft);
}
.step:last-child .step-num { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.step h3 { margin-bottom: 8px; font-size: 1.12rem; }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Ventajas */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}
.split > div > p { color: var(--ink-2); font-size: 1.1rem; }

.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  margin-top: 36px;
}
.benefit .icon { width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; }
.benefit .icon .i { width: 22px; height: 22px; }
.benefit h3 { margin-bottom: 6px; font-size: 1.05rem; }
.benefit p { margin: 0; color: var(--muted); font-size: .96rem; }

.review-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}
.review-head h3 { margin: 2px 0 0; font-size: 1.15rem; }
.review-label {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.review-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px;
  list-style: none;
}
.review-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
}
.review-list li:hover { background: var(--bg-alt); }
.review-list strong { display: block; font-size: .96rem; line-height: 1.3; }
.review-list small { color: var(--muted); font-size: .85rem; }
.ri {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.ri .i { width: 17px; height: 17px; stroke-width: 2.6; }
.ri.info { background: var(--primary-soft); color: var(--primary); }
.review-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: .87rem;
  font-weight: 600;
}

/* Planes */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 430px));
  justify-content: center;
  gap: 26px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.plan-featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.plan-badge {
  position: absolute;
  top: -14px; left: 32px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
}
.plan-users {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: .93rem;
  font-weight: 700;
}
.plan-users .i { width: 20px; height: 20px; color: var(--primary); }
.plan h3 { margin-bottom: 8px; font-size: 1.55rem; }
.plan > p { color: var(--muted); font-size: .98rem; }
.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 6px 0 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.plan-price .amount { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.plan-price .per { color: var(--muted); font-size: .95rem; font-weight: 600; }

.checklist {
  display: grid;
  gap: 12px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.checklist li { display: flex; align-items: flex-start; gap: 11px; font-size: .98rem; }
.checklist .i { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--accent); stroke-width: 2.6; }
.plan .btn { margin-top: auto; }

.plans-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  max-width: 886px;
  margin: 30px auto 0;
  padding: 20px 26px;
  border: 1px dashed #c9d4ea;
  border-radius: 16px;
  background: #fff;
  color: var(--ink-2);
  text-align: center;
}
.plans-note a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.plans-note a .i { width: 18px; height: 18px; stroke-width: 2.2; }

/* FAQ */
.faq {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: #cdd8f0; box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  margin-top: -5px;
  border-right: 2.5px solid var(--primary);
  border-bottom: 2.5px solid var(--primary);
  transform: rotate(45deg);
  transition: transform .2s, margin .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 5px; }
.faq details p { margin: 0; padding-bottom: 22px; color: var(--ink-2); }

/* Contacto (CTA) */
.contact-cta { padding: 0 0 100px; }
.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 44px;
  align-items: center;
  padding: 60px;
  border-radius: 28px;
  background: linear-gradient(130deg, #1b3cbc 0%, #2753e6 48%, #139e94 100%);
  color: #fff;
}
.cta-panel::before, .cta-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  pointer-events: none;
}
.cta-panel::before { width: 420px; height: 420px; right: -120px; top: -180px; }
.cta-panel::after { width: 640px; height: 640px; right: -240px; top: -300px; }
.cta-panel > * { position: relative; }
.cta-panel .kicker { color: rgba(255, 255, 255, .8); }
.cta-panel h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.cta-panel p { color: rgba(255, 255, 255, .86); font-size: 1.1rem; }
.cta-panel .btn { margin-top: 10px; }

.contact-box {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 20px;
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.contact-line { display: flex; align-items: center; gap: 14px; min-width: 0; }
.contact-line .ic {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, .16);
}
.contact-line small {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: .8rem;
  font-weight: 600;
}
.contact-line a {
  color: #fff;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.contact-line a:hover { text-decoration: underline; }

/* Pie
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 60px 0 28px;
  background: #0b1730;
  color: #b9c3da;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand-name strong { color: #7ea0ff; }
.site-footer .brand-tld { color: #8e9ab5; }
.site-footer p { max-width: 30em; margin-top: 16px; }
.site-footer h4 { margin: 0 0 14px; color: #fff; font-size: .95rem; letter-spacing: 0; }
.site-footer ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #b9c3da; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #8e9ab5;
  font-size: .87rem;
}

/* Página de contacto
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: 60px 0 0;
  background:
    radial-gradient(560px 360px at 90% 0%, rgba(39, 83, 230, .12), transparent 70%),
    linear-gradient(#f6f9fe, #fff 85%);
}
.page-hero h1 { max-width: 16em; margin: 0 0 14px; font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero .lead { margin: 0; }

.contact-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 48px;
  align-items: start;
  padding-top: 44px;
  padding-bottom: 100px;
}
.contact-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.aside-card + .aside-card { margin-top: 18px; }
.aside-card h2 { margin-bottom: 14px; font-size: 1.12rem; letter-spacing: -.01em; }
.aside-mail {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.aside-mail .icon { margin: 0; flex: none; }
.aside-mail small { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; }
.aside-mail a { font-weight: 700; overflow-wrap: anywhere; }

.next-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: next;
}
.next-steps li {
  position: relative;
  padding-left: 42px;
  color: var(--ink-2);
  font-size: .97rem;
  counter-increment: next;
}
.next-steps li::before {
  content: counter(next);
  position: absolute;
  left: 0; top: -1px;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .85rem;
  font-weight: 800;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink-2);
  font-size: .87rem;
  font-weight: 600;
}

.form-card {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.form-card > h2 { margin-bottom: 6px; font-size: 1.4rem; }
.form-card > p { color: var(--muted); font-size: .97rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 18px;
  margin-top: 26px;
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-full { grid-column: 1 / -1; }

.field > label, .field legend {
  padding: 0;
  font-size: .92rem;
  font-weight: 700;
}
.req { color: var(--danger); }
.optional { color: var(--muted); font-weight: 500; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background-color: #fbfcfe;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #98a2b6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(39, 83, 230, .15);
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235f6b82' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  cursor: pointer;
}
.field textarea { min-height: 150px; resize: vertical; }

.field fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.field legend { margin-bottom: 9px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.choice span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fbfcfe;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.choice span .i { width: 18px; height: 18px; }
.choice span:hover { border-color: #c4d0ea; }
.choice input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(39, 83, 230, .2); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-2);
  font-size: .93rem;
  font-weight: 500;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.error-msg { display: none; color: var(--danger); font-size: .85rem; font-weight: 600; }
.field.is-invalid .error-msg { display: block; }
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--danger); background-color: #fffafa; }
.field.is-invalid input:focus,
.field.is-invalid textarea:focus { box-shadow: 0 0 0 4px rgba(198, 47, 47, .14); }

.legal-note {
  margin: 0;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}
.legal-note strong { color: var(--ink-2); }

.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 600;
}
.form-status.is-error { display: block; background: var(--danger-soft); color: #a32424; }
.form-status a { color: inherit; text-decoration: underline; }

.spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.is-sending .spinner { display: inline-block; }
.is-sending .btn-icon { display: none; }

.form-success { padding: 30px 6px 10px; text-align: center; }
.form-success:focus { outline: none; }
.success-icon {
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  box-shadow: 0 0 0 10px rgba(16, 168, 122, .08);
}
.success-icon .i { width: 38px; height: 38px; stroke-width: 2.4; }
.form-success h2 { font-size: 1.6rem; }
.form-success p { max-width: 28em; margin-left: auto; margin-right: auto; color: var(--ink-2); }
.form-success .btn { margin-top: 10px; }

/* Página de gracias */
.thanks {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 160px);
  padding: 80px 0;
  background:
    radial-gradient(560px 360px at 50% 0%, rgba(16, 168, 122, .12), transparent 70%),
    linear-gradient(#f6f9fe, #fff 85%);
}
.thanks .form-card { max-width: 560px; margin: 0 auto; text-align: center; }

/* Animaciones
   -------------------------------------------------------------------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 168, 122, .45); }
  70% { box-shadow: 0 0 0 7px rgba(16, 168, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 168, 122, 0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Aparición al hacer scroll (la clase .reveal la añade main.js) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .float-badge.badge-a { right: -8px; }
  .float-badge.badge-b { left: -12px; }
}

@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 48px; }
  .cta-panel { padding: 48px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    display: none;
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li + li { border-top: 1px solid var(--line); }
  .nav a { display: block; padding: 14px 4px; font-size: 1rem; }

  .hero { padding: 48px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { margin: 0 auto; }

  .split { grid-template-columns: 1fr; }
  .review-card { max-width: 520px; margin: 0 auto; width: 100%; }

  .cta-panel { grid-template-columns: 1fr; gap: 32px; }

  .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .contact-aside { order: 2; position: static; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding-left: 16px; padding-right: 16px; }
  .header-cta { display: none; }
  .brand-name { font-size: 1rem; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .lead { font-size: 1.08rem; }
  .hero-actions .btn { flex: 1 1 100%; }

  .float-badge { font-size: .8rem; padding: 8px 12px 8px 8px; }
  .float-badge .ic { width: 30px; height: 30px; }
  .float-badge.badge-a { right: 0; }
  .float-badge.badge-b { left: 0; }
  .chat-foot { flex-direction: column; align-items: flex-start; }

  .cards, .steps, .benefits { grid-template-columns: 1fr; }
  .card, .step { padding: 24px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 32px 24px; }
  .plan-badge { left: 24px; }

  .contact-cta { padding-bottom: 72px; }
  .cta-panel { padding: 36px 24px; border-radius: 22px; }
  .contact-box { padding: 20px; }
  .contact-line .ic { display: none; }
  .contact-line a { font-size: .95rem; }
  .devices-inner > span:first-child { flex-basis: 100%; text-align: center; }

  .form-card { padding: 26px 20px; border-radius: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
