/* =========================================================
   aliadoPYME · estilos
   Paleta extraída del logo
   ========================================================= */
:root {
  --navy: #1d3b5c;
  --navy-deep: #13283f;
  --blue: #36709a;
  --teal: #2aa9a6;
  --orange: #e57f3c;
  --orange-dark: #c9692a;

  --ink: #1b2a3a;
  --muted: #5a6b7d;
  --line: #e2e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;

  --grad: linear-gradient(120deg, var(--teal) 0%, var(--blue) 55%, var(--orange) 110%);
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(19, 40, 63, .18);
  --shadow-lg: 0 24px 50px -20px rgba(19, 40, 63, .35);

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue); }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 820px; }

/* ---------- Wordmark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--blue);
  letter-spacing: -.01em;
}
.wordmark .ia, .brand-inline .ia { color: var(--orange); }
.wordmark strong { color: var(--navy); font-weight: 800; }
.brand-inline { font-family: var(--font-head); color: var(--blue); }
.brand-inline b { color: var(--navy); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border-radius: 12px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(229, 127, 60, .8); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-small { padding: 9px 16px; font-size: .9rem; background: var(--navy); color: #fff; }
.btn-small:hover { background: var(--blue); }
.btn-large { padding: 18px 30px; font-size: 1.06rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(19, 40, 63, .2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { width: 40px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.main-nav a:not(.btn):hover { color: var(--orange); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 110px);
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(42, 169, 166, .12), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(229, 127, 60, .10), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-weight: 600; font-size: .9rem; color: var(--teal);
  background: rgba(42, 169, 166, .1); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 60ch; }
.hero-cta { margin-top: 30px; }
.guarantee { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: .93rem; color: var(--muted); max-width: 52ch; }
.guarantee svg { width: 20px; height: 20px; fill: var(--teal); flex-shrink: 0; margin-top: 2px; }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 440px; margin-inline: auto; width: 100%; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-teal { inset: 8% 8% 8% 8%; background: radial-gradient(circle at 35% 35%, rgba(42, 169, 166, .22), rgba(54, 112, 154, .10) 60%, transparent 70%); }
.orb-orange { width: 38%; height: 38%; right: 2%; bottom: 6%; background: radial-gradient(circle, rgba(229, 127, 60, .22), transparent 70%); }
.hero-bird { position: absolute; inset: 0; margin: auto; width: 60%; height: auto; filter: drop-shadow(0 20px 30px rgba(19, 40, 63, .18)); animation: float 6s ease-in-out infinite; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: .85rem; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow); white-space: nowrap;
}
.chip-1 { top: 8%; left: -4%; }
.chip-2 { top: 46%; right: -8%; }
.chip-3 { bottom: 6%; left: 4%; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-orange { background: var(--orange); }
.dot-teal { background: var(--teal); }
.dot-blue { background: var(--blue); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Problema ---------- */
.problem { padding: clamp(64px, 9vw, 110px) 0; background: var(--bg-soft); text-align: center; }
.problem p { font-size: 1.12rem; color: var(--muted); }
.problem p strong { color: var(--ink); }
.problem-answer {
  margin-top: 30px; padding: 26px 30px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink) !important;
}
mark { background: linear-gradient(transparent 60%, rgba(229, 127, 60, .3) 60%); color: inherit; padding: 0 2px; }

/* ---------- Secciones ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }
.kicker {
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--orange); margin-bottom: 12px;
}
.on-dark h2 { color: #fff; }

/* ---------- Pilares ---------- */
.pillars { padding: clamp(64px, 9vw, 110px) 0; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  position: relative; padding: 34px 30px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.pillar-orange { --accent: var(--orange); }
.pillar-teal { --accent: var(--teal); }
.pillar-blue { --accent: var(--blue); }
.pillar-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, white); margin-bottom: 18px;
}
.pillar-icon svg { width: 28px; height: 28px; fill: var(--accent); }
.pillar-num { position: absolute; top: 22px; right: 26px; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--line); margin: 0; line-height: 1; }
.pillar-claim { font-weight: 600; color: var(--accent); }
.pillar p:last-child { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- Proceso ---------- */
.process {
  padding: clamp(64px, 9vw, 110px) 0;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(42, 169, 166, .25), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(229, 127, 60, .18), transparent 60%),
    var(--navy-deep);
  color: #dbe5ef;
}
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; position: relative; }
.step {
  position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
}
.step-num {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: #fff;
  background: var(--grad); margin-bottom: 18px;
}
.step h3 { color: #fff; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.step p { margin: 0; color: #b9c7d6; }
.tag-free { font-family: var(--font-body); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; background: var(--orange); color: #fff; padding: 3px 10px; border-radius: 999px; }

/* ---------- Packs ---------- */
.packs { padding: clamp(64px, 9vw, 110px) 0; background: var(--bg-soft); }
.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pack {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 34px 30px; box-shadow: var(--shadow);
}
.pack-featured {
  border: 2px solid var(--teal);
  box-shadow: 0 30px 60px -24px rgba(42, 169, 166, .45);
  transform: translateY(-12px);
}
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 700;
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.pack-label { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.pack h3 { font-size: 1.9rem; font-weight: 800; margin-bottom: 14px; }
.pack-featured h3 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pack-for { font-size: .96rem; color: var(--muted); padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.pack-for strong { color: var(--ink); }
.checklist { list-style: none; padding: 0; margin: 8px 0 22px; flex-grow: 1; }
.checklist li { position: relative; padding-left: 30px; margin: 10px 0; font-size: .97rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(42, 169, 166, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232aa9a6' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center/13px no-repeat;
}
.pack-billing { font-size: .92rem; background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; }
.pack-billing span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.pack-billing strong { color: var(--navy); }
.pack blockquote { margin: 0 0 22px; font-style: italic; color: var(--blue); font-size: .98rem; }
.pack .btn { margin-top: auto; }

/* Comparativa */
.compare { margin-top: 48px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.compare summary {
  cursor: pointer; list-style: none; padding: 20px 26px; font-family: var(--font-head); font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center;
}
.compare summary::-webkit-details-marker { display: none; }
.compare summary::after { content: "+"; font-size: 1.6rem; color: var(--orange); line-height: 1; transition: transform .2s; }
.compare[open] summary::after { transform: rotate(45deg); }
.table-wrap { overflow-x: auto; padding: 0 16px 20px; }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .93rem; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--font-head); color: var(--navy); font-size: 1rem; }
thead th small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .78rem; }
tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.col-featured { background: rgba(42, 169, 166, .07); }
thead .col-featured { color: var(--teal); }
td.no { color: #9aa8b6; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* ---------- Contacto ---------- */
.contact { padding: clamp(64px, 9vw, 110px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact-copy > p:not(.kicker) { font-size: 1.1rem; color: var(--muted); }
.trust { list-style: none; padding: 0; margin: 28px 0 0; }
.trust li { position: relative; padding-left: 34px; margin: 14px 0; font-weight: 500; }
.trust li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 6px;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center/15px no-repeat;
}
.contact-form {
  background: #fff; padding: 36px; border-radius: 20px; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); position: relative;
}
.contact-form::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: 20px 20px 0 0; background: var(--grad); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--bg-soft); color: var(--ink);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231d3b5c' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 22px; padding-right: 40px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); background-color: #fff; box-shadow: 0 0 0 4px rgba(42, 169, 166, .15); }
.field.invalid input, .field.invalid select { border-color: #d64545; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 6px 0 22px; cursor: pointer; }
.consent input { margin-top: 4px; accent-color: var(--teal); width: 16px; height: 16px; flex-shrink: 0; }
.consent.invalid span { color: #d64545; }
.form-status { margin: 14px 0 0; font-size: .95rem; text-align: center; min-height: 1.4em; }
.form-status.ok { color: var(--teal); font-weight: 600; }
.form-status.err { color: #d64545; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #9fb2c6; padding: 44px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 30px; }
.brand-footer .wordmark { color: #8fbbd9; }
.brand-footer .wordmark strong { color: #fff; }
.footer-tag { margin: 0; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-legal { margin: 0; font-size: .88rem; width: 100%; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; margin-top: 10px; }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.pack-featured.reveal.visible { transform: translateY(-12px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bird { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; order: -1; }
  .pillar-grid, .steps { grid-template-columns: 1fr; }
  .pack-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; gap: 36px; }
  .pack-featured, .pack-featured.reveal.visible { transform: none; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 16px 18px; display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 14px; padding: 14px; }
  .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); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wordmark { font-size: 1.25rem; }
  .hero-visual { max-width: 260px; }
  .chip { font-size: .72rem; padding: 6px 10px; }
  .chip-1 { left: -6%; }
  .chip-2 { right: -6%; }
  .btn-large { width: 100%; padding: 16px 20px; }
  .contact-form { padding: 26px 20px; }
  .pillar, .pack, .step { padding: 28px 22px; }
  .problem-answer { padding: 22px 20px; }
}
