/* ===== Design tokens ===== */
:root {
  --navy: #0B1E3D;
  --navy-700: #14304F;
  --navy-tint: #EEF1F6;
  --accent: #D97A3F;
  --accent-dark: #BC612B;
  --ink: #1F2733;
  --muted: #5B6472;
  --bg: #FFFFFF;
  --bg-alt: #F6F5F3;
  --border: #E4E3DF;
  --radius-sm: 8px;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(11,30,61,0.09);
  --shadow-md: 0 12px 32px rgba(11,30,61,0.12);
  --whatsapp: #25D366;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

/* Evita que el aviso de cookies y el botón de WhatsApp se solapen */
body.cookie-open .whatsapp-cta { display: none; }

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3 { font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(217,122,63,0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.logo-img { height: 34px; display: block; }

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a:not(.nav-cta) {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:not(.nav-cta):hover,
.nav-links a.active:not(.nav-cta) {
  color: var(--navy);
  background: var(--navy-tint);
}

.nav-cta {
  background: var(--navy);
  color: var(--bg) !important;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-left: 8px;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--navy-700); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 26px;
  height: 20px;
  position: relative;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle::before { top: 0; }
.menu-toggle span { top: 9px; }
.menu-toggle::after { top: 18px; }

/* ===== Hero ===== */
.hero {
  background: var(--navy);
  color: var(--bg);
  padding: 108px 24px 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(217,122,63,0.10), transparent 55%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero .eyebrow {
  background: rgba(255,255,255,0.1);
  color: #F2C7A7;
}

.hero h1 {
  color: var(--bg);
  font-size: 2.75rem;
  max-width: 820px;
  margin: 0 auto 22px;
  line-height: 1.25;
}

.hero p {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 36px;
  color: #C7CEDA;
}

.hero-page {
  padding: 76px 24px 64px;
  text-align: left;
}

.hero-page h1 { font-size: 2.2rem; max-width: 640px; margin-bottom: 14px; }
.hero-page p { max-width: 560px; margin: 0; text-align: left; }

.hero-stats {
  display: flex;
  gap: 44px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 1.8rem; color: var(--bg); }
.hero-stats span { font-size: 0.85rem; color: #A9B2C2; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.96rem;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--bg);
}

.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Sections ===== */
section { padding: 88px 24px; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head.left { text-align: left; margin: 0 0 48px; }

.section-title { font-size: 2.1rem; margin-bottom: 14px; }

.section-subtitle { color: var(--muted); font-size: 1.05rem; }

.bg-alt { background: var(--bg-alt); }

/* ===== Icon boxes ===== */
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--navy-tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-box svg { width: 26px; height: 26px; }

.icon-box.accent { background: rgba(217,122,63,0.12); color: var(--accent-dark); }

/* ===== Cards ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 32px 28px;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

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

.bg-alt .card { background: var(--bg); }

/* Trust / stat row */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-row div { text-align: center; }
.trust-row strong { display: block; font-size: 1.9rem; color: var(--navy); }
.trust-row span { font-size: 0.85rem; color: var(--muted); }

/* ===== Servicios page: process rows ===== */
.servicio-fila {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.servicio-fila:first-of-type { border-top: 1px solid var(--border); }

.servicio-fila .step {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.05em;
}

.servicio-fila h3 { font-size: 1.3rem; margin: 6px 0 10px; }
.servicio-fila p { color: var(--muted); max-width: 640px; }

.servicio-fila .icon-box { margin-bottom: 0; }

.servicio-fila-head {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  align-items: center;
}

/* CTA banda */
.cta-banda {
  background: var(--navy);
  color: var(--bg);
  text-align: center;
  padding: 72px 24px;
}

.cta-banda h2 { color: var(--bg); margin-bottom: 12px; font-size: 1.9rem; }
.cta-banda p { margin-bottom: 30px; color: #C7CEDA; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ===== Contacto ===== */
.contacto-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}

.contacto-info .item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contacto-info .item .icon-box { flex-shrink: 0; margin-bottom: 0; }
.contacto-info .item h3 { font-size: 1rem; margin-bottom: 4px; }
.contacto-info .item p { color: var(--muted); font-size: 0.94rem; }
.contacto-info .item a { color: var(--navy); font-weight: 600; }
.contacto-info .item a:hover { color: var(--accent-dark); }

.form-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

form { display: flex; flex-direction: column; gap: 18px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.88rem;
  margin-bottom: -12px;
}

input, textarea, select {
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,30,61,0.08);
}

textarea { resize: vertical; min-height: 130px; }

.form-card .btn-primary { align-self: flex-start; }

/* ===== Footer ===== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 56px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-grid .logo-img { height: 30px; margin-bottom: 16px; }
.footer-grid p { font-size: 0.9rem; color: #A9B2C2; max-width: 320px; }

.footer-col h4 {
  color: var(--bg);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col a, .footer-col span {
  display: block;
  font-size: 0.92rem;
  color: #A9B2C2;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--bg); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.85rem;
  color: #7C8798;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a { color: #A9B2C2; }
.footer-bottom a:hover { color: var(--bg); }

/* ===== WhatsApp CTA ===== */
.whatsapp-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #ffffff;
  padding: 13px 20px 13px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(18,58,38,0.28);
  font-weight: 700;
  font-size: 0.92rem;
  z-index: 999;
  transition: transform 0.18s, box-shadow 0.18s;
}

.whatsapp-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(18,58,38,0.34); }

.whatsapp-cta svg { width: 20px; height: 20px; flex-shrink: 0; }

.whatsapp-cta .wa-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Hero split (headline + quote form) ===== */
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 56px;
  align-items: start;
  text-align: left;
}

.hero-split .hero-inner { text-align: left; }
.hero-split .hero-actions { justify-content: flex-start; }
.hero-split h1 { margin-left: 0; }
.hero-split p { margin-left: 0; }
.hero-split .hero-stats { justify-content: flex-start; margin-top: 44px; }

.quote-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.quote-card h2 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.quote-card .quote-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.quote-card .consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.quote-card .consent input { width: auto; margin-top: 3px; }

/* ===== Numbered service rows ===== */
.num-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--border);
  margin-bottom: 14px;
}

.num-badge::after {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  display: inline-block;
}

.card .num-badge { color: #D8D6D0; }

/* ===== Proceso / pasos ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step-item { position: relative; padding-top: 8px; }

.step-item .step-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy-tint);
  -webkit-text-stroke: 1.5px var(--navy);
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}

.step-item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step-item p { color: var(--muted); font-size: 0.92rem; }

/* ===== Testimonios ===== */
.testi-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.testi-stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 14px; font-size: 0.95rem; }
.testi-card p.quote { color: var(--ink); font-size: 0.96rem; margin-bottom: 20px; }

.testi-author { display: flex; align-items: center; gap: 12px; }

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testi-author strong { display: block; font-size: 0.9rem; color: var(--navy); }
.testi-author span { font-size: 0.8rem; color: var(--muted); }

.testi-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 32px;
}

/* ===== Contacto: opciones ===== */
.contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.contact-option {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-option:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-option h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-option p { color: var(--muted); font-size: 0.88rem; margin-bottom: 2px; }
.contact-option strong { color: var(--navy); font-size: 0.95rem; }

/* ===== Planes y precios ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.price-card.featured {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  position: relative;
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.price-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.price-card .price-desc { color: var(--muted); font-size: 0.88rem; margin-bottom: 20px; min-height: 40px; }

.price-amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.price-amount .num { font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.price-amount .period { font-size: 0.85rem; color: var(--muted); }
.price-extra { font-size: 0.82rem; color: var(--accent-dark); font-weight: 700; margin-bottom: 22px; }
.price-card .price-desc + .price-amount { margin-top: -4px; }

.price-features {
  list-style: none;
  margin: 0 0 26px;
  flex-grow: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink);
  padding: 7px 0;
  border-top: 1px solid var(--border);
}

.price-features li:first-child { border-top: none; }

.price-features svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent-dark);
}

.price-card .btn { justify-content: center; width: 100%; }
.price-card .btn-outline { border-color: var(--navy); color: var(--navy); }
.price-card .btn-outline:hover { background: var(--navy); color: var(--bg); }

.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 32px;
}

/* ===== Páginas legales ===== */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 { font-size: 1.25rem; margin: 36px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 0.96rem; margin-bottom: 14px; }
.legal-content ul { padding-left: 20px; list-style: disc; }
.legal-content ul li { margin-bottom: 8px; }
.legal-content .updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 40px; }
.legal-content strong { color: var(--ink); }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 560px;
  background: var(--navy);
  color: #E7EAF0;
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  display: none;
}

.cookie-banner.show { display: block; }

.cookie-banner p { font-size: 0.86rem; color: #C7CEDA; margin-bottom: 16px; }
.cookie-banner p a { color: var(--bg); text-decoration: underline; }

.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-sm {
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.btn-sm.accept { background: var(--accent); color: var(--bg); }
.btn-sm.accept:hover { background: var(--accent-dark); }
.btn-sm.reject { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: var(--bg); }
.btn-sm.reject:hover { background: rgba(255,255,255,0.08); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .hero-inner { text-align: center; }
  .hero-split .hero-actions { justify-content: center; }
  .hero-split .hero-stats { justify-content: center; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-options { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contacto-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { order: -1; }
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 16px 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 340px; }
  .nav-links a:not(.nav-cta) { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }

  .hero h1 { font-size: 2rem; }
  .hero-page h1 { font-size: 1.7rem; }
  section { padding: 60px 20px; }
  .servicio-fila { grid-template-columns: 1fr; }
  .servicio-fila-head { grid-template-columns: 60px 1fr; }
  .hero-stats { gap: 28px; }

  .whatsapp-cta span.wa-label { display: none; }
  .whatsapp-cta { padding: 14px; }
  .steps { grid-template-columns: 1fr; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
}
