:root{
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe3ef;
  --primary: #1d4ed8;
  --primary-600: #1e40af;
  --primary-soft: #e8efff;
  --success: #16a34a;
  --success-soft: #ecfdf3;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --radius: 16px;
  --shadow-sm: 0 8px 24px rgba(15,23,42,.06);
  --shadow-md: 0 14px 34px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 50px rgba(15,23,42,.12);
  --container: 1160px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(960px 420px at 10% -10%, rgba(29,78,216,.08), transparent 60%),
    radial-gradient(760px 420px at 95% 0%, rgba(30,64,175,.06), transparent 55%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; height: auto; display: block; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  z-index: 200;
}
.skip-link:focus{ left: 16px; }

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(219,227,239,.9);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #eef3fb);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.brand-logo img{
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.brand-text{
  display: grid;
  gap: 2px;
  min-width: 0;
}
.brand-text strong{
  font-size: .98rem;
  line-height: 1.15;
}
.brand-text small{
  color: var(--muted);
  font-size: .8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav{
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a{
  color: #334155;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background-color .18s ease, color .18s ease;
}
.nav a:hover{
  background: #f1f5f9;
  color: var(--text);
}
.nav a.btn{
  padding-inline: 14px;
}

.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  margin: 4px auto;
  background: #0f172a;
}

.section{ padding: 64px 0; }
.section.alt{
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.3));
  border-block: 1px solid rgba(219,227,239,.8);
}

@supports (content-visibility: auto){
  .section{
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
  }
  .footer{
    content-visibility: auto;
    contain-intrinsic-size: 1px 280px;
  }
}

.hero{ padding: 42px 0 30px; }
.hero-grid{
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr);
  gap: 28px;
  align-items: start;
}

.eyebrow{
  margin: 0 0 10px;
  color: var(--primary-600);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .78rem;
}
.hero-copy h1{
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.1vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.lead{
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}
.hero-points{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
}
.info-chip{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  color: #334155;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: .9rem;
}
.hero-cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.hero-links{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-note{
  margin-top: 4px;
}
.hero-note p{
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(37,99,235,.18);
  background: rgba(37,99,235,.06);
  color: #1e3a8a;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.35;
  box-shadow: 0 4px 12px rgba(2,6,23,.04);
}

h2{
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -.01em;
}
.muted{ color: var(--muted); }
.tiny{ font-size: .85rem; }

.grid-3{
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.card h3{ margin: 0 0 6px; }

.services-grid .service-card{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
}
.service-media{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.service-media img{
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.list{
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.list li{ margin: 4px 0; }

.form-card{
  border-color: #d6e0ef;
  box-shadow: var(--shadow-md);
}
.form-card h2{ margin-bottom: 4px; }

.form{
  margin-top: 14px;
  display: grid;
  gap: 12px;
}
label{
  display: grid;
  gap: 6px;
  color: #334155;
  font-weight: 600;
  font-size: .95rem;
}
input, select, textarea{
  width: 100%;
  border: 1px solid #cfd9e6;
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus{
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59,130,246,.14);
}
textarea{
  resize: vertical;
  min-height: 110px;
}
.hidden{ display: none !important; }

.contact-mini{
  margin-top: 14px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
}
.contact-mini > div{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.contact-mini strong{ color: var(--text); }

.wa-row{
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.wa-row strong{ justify-self: start; }

.wa-strong{
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #16a34a;
  color: #fff !important;
  border: 1px solid #15803d;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(22,163,74,.18);
}
.wa-strong::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #bbf7d0;
}
.wa-strong:hover{ filter: brightness(1.03); }

.trust-grid{ margin-top: 18px; }
.trust-card{
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.trust-card p{ margin: 6px 0 0; color: var(--muted); }

.steps{
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.step{
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.step h3{
  margin: 0 0 4px;
  font-size: 1rem;
}
.step p{
  margin: 0;
  color: var(--muted);
}
.step-n{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #e8efff;
  color: var(--primary-600);
  border: 1px solid #c7d7ff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 auto;
}

.faq{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
details{
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
}
summary{
  cursor: pointer;
  font-weight: 700;
}
details p{
  margin: 10px 0 0;
  color: var(--muted);
}

.cta{
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.cta .btn{ margin-top: 8px; }

.footer{
  padding: 26px 0 34px;
  border-top: 1px solid rgba(219,227,239,.8);
  background: rgba(255,255,255,.75);
}
.footer-inner{
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr;
  gap: 18px;
  align-items: start;
}
.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}
.footer-links a{
  color: #334155;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
}
.footer-links a:hover{
  background: #f8fafc;
}
.footer-mini{
  margin-top: 10px;
  display: grid;
  gap: 4px;
}
.footer-mini a{
  color: var(--primary);
  font-weight: 600;
}
.footer-mini a:hover{ text-decoration: underline; }
.footer-copy{
  text-align: right;
  line-height: 1.4;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--primary);
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(29,78,216,.18);
  transition: transform .12s ease, filter .12s ease, box-shadow .18s ease;
}
.btn:hover{
  filter: brightness(1.02);
  box-shadow: 0 10px 24px rgba(29,78,216,.22);
}
.btn:active{ transform: translateY(1px); }
.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(59,130,246,.18), 0 8px 20px rgba(29,78,216,.18);
}
.btn-ghost{
  background: #fff;
  color: #0f172a;
  border-color: #cfd9e6;
  box-shadow: none;
}
.btn-ghost:hover{
  background: #f8fafc;
  filter: none;
  box-shadow: none;
}
.btn-cta{
  background: linear-gradient(180deg, #1d4ed8, #1e40af);
  border-color: #1e3a8a;
}
.btn-full{ width: 100%; }

.form-alert{
  display: none;
  border-radius: 12px;
  padding: 11px 12px;
  font-weight: 600;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
}
.form-alert.show{ display: block; }
.form-alert.success{
  border-color: #bbf7d0;
  background: var(--success-soft);
  color: #166534;
}
.form-alert.error{
  border-color: #fecaca;
  background: var(--danger-soft);
  color: #991b1b;
}

.wa-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  border: 1px solid #15803d;
  box-shadow: 0 12px 28px rgba(22,163,74,.24);
}
.wa-float:hover{ filter: brightness(1.03); }
.wa-float__icon{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.wa-float__logo{
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.wa-float__text,
.wa-float__label{
  font-weight: 700;
  letter-spacing: .01em;
}
.wa-float__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #bbf7d0;
  display: inline-block;
}

.toast,
.mobile-cta,
.hero-badges,
.trust-row,
.form-help,
.note{
  /* ocultar elementos heredados si aparecen en otras páginas antiguas */
}

.accent{ color: var(--primary); background: none; -webkit-background-clip: initial; background-clip: initial; }
.hero-badges{ display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 20px; }
.badge{
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 10px;
  border-radius: 999px;
  color: #334155;
  font-weight: 600;
  font-size: .9rem;
}
.trust-row{ display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 10px; }
.trust-pill{
  border:1px solid var(--line);
  background:#fff;
  color:#334155;
  padding:8px 10px;
  border-radius:999px;
  font-weight:600;
}
.form-help{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.form-help li{ margin: 4px 0; }
.note{ color: var(--muted); margin: 6px 0 0; }

@media (max-width: 1100px){
  .steps{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
  .footer-copy{ grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .nav{
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    width: min(320px, calc(100vw - 40px));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav.open{ display: flex; }
  .nav a{ width: 100%; }
  .nav-toggle{ display: block; }
  .footer-inner{ grid-template-columns: 1fr; }
  .contact-mini > div{ flex-direction: column; align-items: flex-start; }
  .wa-row{
    grid-template-columns: 1fr !important;
    justify-items: start;
    gap: 8px;
  }
  .wa-row .wa-strong{ justify-self: start; }
}
@media (max-width: 600px){
  .header-inner{ min-height: 72px; }
  .brand-mark{ width: 46px; height: 46px; }
  .brand-logo img{ width: 42px; height: 42px; }
  .brand-text small{ font-size: .75rem; }
  .section{ padding: 54px 0; }
  .hero{ padding-top: 28px; }
  .hero-copy h1{ font-size: clamp(1.75rem, 8vw, 2.3rem); }
  .hero-cta .btn{ width: 100%; }
  .wa-float__text, .wa-float__label{ display: none; }
  .wa-float{ padding: 10px; }
}


/* --- Refinamiento visual corporativo / elegante (override) --- */
:root{
  --bg: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --text: #0b1324;
  --muted: #526177;
  --line: #d6deea;
  --primary: #123c8c;
  --primary-600: #0f3173;
  --primary-soft: #e8eefb;
  --radius: 18px;
  --shadow-sm: 0 10px 24px rgba(11,19,36,.05), 0 2px 6px rgba(11,19,36,.03);
  --shadow-md: 0 18px 36px rgba(11,19,36,.08), 0 6px 14px rgba(11,19,36,.04);
  --shadow-lg: 0 28px 60px rgba(11,19,36,.12), 0 10px 26px rgba(11,19,36,.06);
}

body{
  background:
    radial-gradient(900px 360px at 8% -6%, rgba(18,60,140,.08), transparent 62%),
    radial-gradient(760px 300px at 96% -4%, rgba(11,19,36,.06), transparent 58%),
    linear-gradient(180deg, #f5f7fb 0%, var(--bg) 38%, #eef2f7 100%);
  color: var(--text);
}

.site-header{
  background: rgba(248,250,253,.82);
  border-bottom: 1px solid rgba(214,222,234,.9);
  box-shadow: 0 8px 26px rgba(11,19,36,.04);
}

.brand-mark{
  background: linear-gradient(180deg, #ffffff, #f1f5fb);
  border-color: #d9e2ef;
}
.brand-text strong{ letter-spacing: -.01em; }
.brand-text small{ color: #5d6c82; }

.nav a{
  color: #223047;
  border: 1px solid transparent;
}
.nav a:hover{
  background: #f2f6fc;
  border-color: #dde6f2;
  color: #101b30;
}
.nav a.btn-ghost{
  border-color: #d2dceb;
  background: rgba(255,255,255,.9);
}

.section{ padding: 70px 0; }
.section.alt{
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(245,248,253,.65));
  border-block: 1px solid rgba(214,222,234,.8);
}

.hero{
  position: relative;
  padding: 48px 0 34px;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 14px 0 auto;
  height: 240px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(18,60,140,.06), rgba(18,60,140,0) 45%, rgba(11,19,36,.04));
  filter: blur(18px);
}
.hero-grid{ gap: 30px; align-items: stretch; }
.hero-copy{
  position: relative;
  padding: 22px 22px 18px;
  border: 1px solid rgba(214,222,234,.75);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.72));
  box-shadow: var(--shadow-sm);
}
.eyebrow{
  color: var(--primary);
  letter-spacing: .045em;
}
.hero-copy h1{
  color: #0b1324;
  margin-bottom: 12px;
  text-wrap: balance;
}
.lead{
  color: #526177;
  font-size: 1.03rem;
}

.hero-copy::after{
  content: "";
  display: block;
  width: 74px;
  height: 3px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #123c8c, #2f66c9);
  opacity: .9;
}

.info-chip{
  background: rgba(255,255,255,.96);
  border-color: #d8e1ee;
  color: #253449;
  box-shadow: 0 2px 8px rgba(11,19,36,.03);
}
.info-chip:hover{
  border-color: #c3d1e7;
  background: #fff;
}
.hero-note{ margin-top: 8px; }
.hero-note p{
  border-color: rgba(18,60,140,.16);
  background: linear-gradient(180deg, rgba(18,60,140,.05), rgba(18,60,140,.03));
  color: #173979;
  border-left: 4px solid rgba(18,60,140,.38);
  border-radius: 12px;
  padding: 11px 14px;
  box-shadow: none;
}

.card{
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  border-color: #d8e1ee;
  box-shadow: var(--shadow-sm);
}
.card h3{ letter-spacing: -.01em; }

.services-grid .service-card,
.trust-card,
.step,
details,
.form-card{
  transition: transform .14s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
.services-grid .service-card:hover,
.trust-card:hover,
.step:hover,
details:hover,
.form-card:hover{
  border-color: #c7d5e8;
  box-shadow: var(--shadow-md);
}
.services-grid .service-card:hover,
.trust-card:hover,
.step:hover{
  transform: translateY(-2px);
}

.services-grid .service-card{
  position: relative;
  overflow: hidden;
}
.services-grid .service-card::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(18,60,140,.6), rgba(18,60,140,.12));
  opacity: .9;
}
.service-media{
  background: linear-gradient(180deg, #f7faff, #ebf1fb);
  border-color: #d6e1f1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.service-card p,
.trust-card p,
.step p,
details p,
.list,
.muted{ color: #5a687d; }

.form-card{
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,255,.96));
  border-color: #cfdbee;
  box-shadow: var(--shadow-lg);
}
.form-card::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #123c8c, #2456b6, #4b7fe0);
}
input, select, textarea{
  border-color: #ccd8e8;
  background: #fff;
}
input:hover, select:hover, textarea:hover{
  border-color: #bdd0e6;
}
input:focus, select:focus, textarea:focus{
  border-color: #8eb2eb;
  box-shadow: 0 0 0 4px rgba(18,60,140,.12);
}

.contact-mini{
  background: linear-gradient(180deg, #fafcff, #f5f8fc);
  border-color: #dde5f0;
}
.wa-strong{
  background: linear-gradient(180deg, #179f4a, #13803d);
  border-color: #0f6f34;
  box-shadow: 0 10px 20px rgba(22,163,74,.16);
}

.trust-card{
  background: linear-gradient(180deg, #ffffff, #f7faff);
}
.trust-card h3,
.step h3,
details summary{ color: #122038; }

.step{
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-color: #d8e1ee;
}
.step-n{
  background: linear-gradient(180deg, #eef3fe, #e3ebfb);
  border-color: #cadaf7;
  color: #123c8c;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

h2{
  color: #0d1729;
  letter-spacing: -.015em;
}
.section .container > h2 + p.muted{
  max-width: 72ch;
}

details{
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  border-color: #dbe3ee;
}
summary{
  color: #122038;
}

.cta{
  padding: 26px 22px;
  border: 1px solid #d8e1ee;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,251,255,.85));
  box-shadow: var(--shadow-sm);
}

.btn{
  border-color: #123c8c;
  background: linear-gradient(180deg, #1b4fae, #123c8c);
  box-shadow: 0 10px 22px rgba(18,60,140,.22);
}
.btn:hover{
  box-shadow: 0 12px 26px rgba(18,60,140,.26);
}
.btn:focus-visible{
  box-shadow: 0 0 0 4px rgba(18,60,140,.16), 0 10px 22px rgba(18,60,140,.22);
}
.btn-ghost{
  background: rgba(255,255,255,.9);
  color: #0f172a;
  border-color: #d1dceb;
}
.btn-ghost:hover{ background: #f3f6fb; }
.btn-cta{
  background: linear-gradient(180deg, #15459b, #0f3173);
  border-color: #0f3173;
}

.footer{
  padding: 30px 0 36px;
  border-top: 1px solid rgba(255,255,255,.06);
  background:
    linear-gradient(180deg, #0f172a, #0b1324 72%, #0a1221);
  color: #e7edf8;
}
.footer .muted,
.footer-copy{ color: #b3c0d8; }
.footer-links a{
  color: #eaf0fb;
  border-color: rgba(176,196,228,.22);
  background: rgba(255,255,255,.03);
}
.footer-links a:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(176,196,228,.35);
}
.footer-mini a{ color: #9fc1ff; }
.footer-mini a:hover{ color: #bfd6ff; }

.form-alert{
  border-color: #d6deea;
  box-shadow: 0 6px 16px rgba(11,19,36,.04);
}

/* Ajustes de legibilidad móvil para el refinamiento */
@media (max-width: 980px){
  .hero-copy{ padding: 18px 16px 16px; }
  .nav{
    background: rgba(255,255,255,.97);
    border-color: #d5dfec;
  }
}
@media (max-width: 600px){
  .section{ padding: 56px 0; }
  .hero{ padding-top: 30px; }
  .hero-copy{ border-radius: 18px; }
  .cta{ padding: 20px 16px; border-radius: 16px; }
}

/* ===== Responsive hardening (tablet + mobile) ===== */
html, body {
  overflow-x: hidden;
}

.header-inner {
  position: relative;
}

.brand-text strong {
  white-space: normal;
  text-wrap: balance;
}

.hero-copy,
.form-card,
.card,
.cta,
details {
  max-width: 100%;
}

.info-chip,
.contact-mini,
.contact-mini a,
.footer-links a,
.hero-note p {
  overflow-wrap: anywhere;
}

/* Tablet: keep visual hierarchy without collapsing everything */
@media (max-width: 1024px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .hero-grid {
    gap: 22px;
  }

  .hero-copy {
    padding: 18px;
  }

  .form-card {
    width: 100%;
  }
}

/* Tablet portrait: 2-column cards preserve design better than 1-column */
@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .services-grid .service-card,
  .trust-card {
    min-height: auto;
  }

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

  .form-card {
    max-width: 780px;
    margin-inline: auto;
  }

  .nav {
    z-index: 80;
  }
}

/* Mid-size mobile / small tablets */
@media (max-width: 760px) {
  .section {
    padding: 52px 0;
  }

  .hero {
    padding: 26px 0 18px;
  }

  .hero-copy {
    padding: 16px;
    border-radius: 16px;
  }

  .hero-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 14px 0 16px;
  }

  .info-chip {
    width: 100%;
    border-radius: 12px;
    padding: 10px 12px;
    line-height: 1.35;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step {
    padding: 14px;
  }

  .footer-links {
    gap: 6px;
  }

  .footer-links a {
    width: 100%;
    text-align: center;
  }

  .wa-float {
    right: 14px;
    bottom: 14px;
  }
}

/* Phones */
@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

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

  .hero-copy h1 {
    line-height: 1.1;
    letter-spacing: -0.015em;
  }

  .lead {
    font-size: .98rem;
  }

  .hero-note p {
    display: block;
    width: 100%;
    font-size: .92rem;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .card,
  .form-card,
  .cta {
    padding: 14px;
  }

  .contact-mini {
    padding: 12px;
  }

  .contact-mini > div {
    align-items: flex-start;
  }

  .wa-row {
    grid-template-columns: 1fr !important;
    justify-items: start;
    gap: 8px;
  }

  .wa-row .wa-strong {
    justify-self: start;
  }

  .footer {
    padding-bottom: 80px; /* espacio para botón flotante */
  }
}

/* Small phones */
@media (max-width: 420px) {
  .header-inner {
    min-height: 68px;
    gap: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .brand-logo img {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: .9rem;
  }

  .brand-text small {
    display: none;
  }

  .nav {
    right: 12px;
    width: min(320px, calc(100vw - 24px));
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .hero-copy h1 {
    font-size: clamp(1.45rem, 8vw, 1.95rem);
  }

  .eyebrow {
    font-size: .72rem;
    line-height: 1.3;
  }

  .btn {
    min-height: 42px;
    padding: 9px 12px;
    font-size: .95rem;
  }

  label {
    font-size: .92rem;
  }

  input,
  select,
  textarea {
    border-radius: 10px;
    padding: 11px 12px;
  }

  .wa-float {
    right: 10px;
    bottom: 10px;
    padding: 9px;
    box-shadow: 0 10px 22px rgba(22,163,74,.2);
  }

  .wa-float__icon {
    width: 28px;
    height: 28px;
  }

  .wa-float__logo {
    width: 18px;
    height: 18px;
  }
}

/* ===== Device-specific responsive polish (390px / 360px / tablet landscape) ===== */

/* Tablet horizontal (e.g., iPad 1024x768 landscape) */
@media (min-width: 768px) and (max-width: 1180px) and (orientation: landscape) {
  .header-inner {
    min-height: 72px;
    gap: 12px;
  }

  .brand {
    gap: 10px;
    max-width: 40%;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .brand-logo img {
    width: 42px;
    height: 42px;
  }

  .brand-text strong {
    font-size: .92rem;
  }

  .brand-text small {
    font-size: .72rem;
    max-width: 220px;
  }

  .nav {
    gap: 4px;
  }

  .nav a {
    padding: 8px 10px;
    font-size: .9rem;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-copy {
    padding: 18px 18px 16px;
  }

  .hero-points {
    gap: 8px;
  }

  .info-chip {
    font-size: .84rem;
    padding: 7px 10px;
  }

  .form-card {
    max-width: 860px;
    margin-inline: auto;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-copy {
    grid-column: 1 / -1;
    text-align: left;
  }
}

/* iPhone 12/13/14 width class (~390px) */
@media (max-width: 390px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .header-inner {
    min-height: 66px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
    max-width: calc(100% - 52px);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .brand-logo img {
    width: 36px;
    height: 36px;
  }

  .brand-text strong {
    font-size: .86rem;
    line-height: 1.1;
  }

  .nav {
    right: 10px;
    width: min(310px, calc(100vw - 20px));
    border-radius: 12px;
    padding: 8px;
  }

  .nav a {
    padding: 9px 10px;
    font-size: .92rem;
  }

  .hero {
    padding: 22px 0 16px;
  }

  .hero-copy {
    padding: 14px;
    border-radius: 14px;
  }

  .eyebrow {
    font-size: .68rem;
    line-height: 1.28;
    margin-bottom: 8px;
  }

  .hero-copy h1 {
    font-size: clamp(1.35rem, 7.2vw, 1.75rem);
    margin-bottom: 10px;
  }

  .lead {
    font-size: .93rem;
    line-height: 1.45;
  }

  .hero-copy::after {
    width: 58px;
    margin-top: 12px;
  }

  .hero-points {
    gap: 7px;
    margin: 12px 0 14px;
  }

  .info-chip {
    font-size: .84rem;
    padding: 9px 10px;
    border-radius: 11px;
    line-height: 1.3;
  }

  .hero-cta {
    gap: 8px;
  }

  .hero-note p {
    font-size: .88rem;
    line-height: 1.35;
    padding: 10px 12px;
  }

  .card,
  .form-card,
  .cta,
  details {
    padding: 12px;
    border-radius: 14px;
  }

  .service-media {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  .service-media img {
    width: 50px;
    height: 50px;
  }

  h2 {
    font-size: 1.35rem;
  }

  .step {
    padding: 12px;
    gap: 10px;
  }

  .step-n {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .form {
    gap: 10px;
  }

  label {
    gap: 5px;
    font-size: .9rem;
  }

  input, select, textarea {
    padding: 10px 11px;
    font-size: .95rem;
  }

  .contact-mini {
    padding: 10px;
    gap: 7px;
  }

  .btn {
    min-height: 40px;
    padding: 9px 11px;
    font-size: .92rem;
    border-radius: 10px;
  }

  .footer {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .wa-float {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

/* Samsung / compact Android width class (~360px) */
@media (max-width: 360px) {
  .container {
    width: min(var(--container), calc(100% - 16px));
  }

  .site-header {
    backdrop-filter: blur(8px);
  }

  .header-inner {
    min-height: 64px;
    gap: 6px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-logo img {
    width: 34px;
    height: 34px;
  }

  .brand-text strong {
    font-size: .82rem;
  }

  .nav {
    right: 8px;
    width: calc(100vw - 16px);
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .hero-copy {
    padding: 12px;
  }

  .eyebrow {
    font-size: .64rem;
    letter-spacing: .03em;
  }

  .hero-copy h1 {
    font-size: clamp(1.25rem, 7vw, 1.58rem);
    line-height: 1.12;
  }

  .lead {
    font-size: .9rem;
  }

  .info-chip {
    font-size: .8rem;
    padding: 8px 9px;
  }

  .hero-note p {
    font-size: .84rem;
    padding: 9px 10px;
  }

  .service-card h3,
  .trust-card h3 {
    font-size: .98rem;
  }

  .list {
    padding-left: 16px;
    font-size: .9rem;
  }

  .step h3 {
    font-size: .95rem;
  }

  .step p,
  details p,
  .muted,
  .tiny {
    font-size: .88rem;
  }

  .contact-mini > div {
    gap: 6px;
  }

  .wa-strong {
    padding: 7px 10px;
    font-size: .9rem;
  }

  .footer-links a {
    padding: 6px 8px;
    font-size: .88rem;
  }

  .wa-float {
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    padding: 8px;
  }

  .wa-float__icon {
    width: 26px;
    height: 26px;
  }

  .wa-float__logo {
    width: 16px;
    height: 16px;
  }
}

/* ===== Pixel-perfect QA pass (390/412/768/820/1024/1280) ===== */
img, svg { max-width: 100%; height: auto; }

main section[id], .hero, #contacto { scroll-margin-top: 96px; }

.hero-grid > *,
.footer-inner > *,
.header-inner > * { min-width: 0; }

@supports (height: 100dvh) {
  @media (max-width: 980px) {
    .nav {
      max-height: calc(100dvh - 92px);
      overflow-y: auto;
      overscroll-behavior: contain;
    }
  }
}

/* 412px class (Pixel / larger Android phones) */
@media (min-width: 391px) and (max-width: 430px) {
  .container { width: min(var(--container), calc(100% - 22px)); }
  .header-inner { min-height: 68px; }
  .brand-text strong { font-size: .88rem; }
  .brand-text small { display: none; }
  .hero-copy { padding: 14px 14px 13px; }
  .hero-copy h1 { font-size: clamp(1.45rem, 6.3vw, 1.92rem); }
  .lead { font-size: .94rem; }
  .info-chip { font-size: .85rem; }
  .form-card { border-radius: 16px; }
  .footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* 768px tablet portrait */
@media (min-width: 700px) and (max-width: 820px) and (orientation: portrait) {
  .container { width: min(var(--container), calc(100% - 36px)); }
  .hero { padding: 32px 0 24px; }
  .hero-grid { gap: 20px; }
  .hero-copy { padding: 18px; }
  .hero-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .info-chip {
    min-height: 46px;
    display: flex;
    align-items: center;
  }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .form-card { max-width: 100%; }
}

/* 820px tablet portrait / iPad Air width class */
@media (min-width: 821px) and (max-width: 920px) and (orientation: portrait) {
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-points { gap: 9px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .form-card { max-width: 840px; margin-inline: auto; }
}

/* 1024px laptop / tablet landscape edge */
@media (min-width: 981px) and (max-width: 1100px) {
  .container { width: min(var(--container), calc(100% - 40px)); }
  .header-inner { gap: 12px; }
  .brand { max-width: 38%; }
  .nav a { padding: 8px 10px; font-size: .92rem; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 20px; }
  .hero-copy { padding: 18px; }
  .info-chip { font-size: .84rem; }
  .services-grid { gap: 14px; }
}

/* 1280px desktop polish */
@media (min-width: 1200px) and (max-width: 1366px) {
  .container { width: min(var(--container), calc(100% - 56px)); }
  .hero-grid { gap: 28px; }
  .hero-copy { padding: 24px 24px 20px; }
  .services-grid { gap: 16px; }
  .steps { gap: 14px; }
}

/* Very small height phones (keyboard/status bars) */
@media (max-width: 480px) and (max-height: 720px) {
  .hero { padding-top: 18px; }
  .hero-copy { padding: 12px; }
  .hero-points { margin: 10px 0 12px; }
  .wa-float { bottom: calc(8px + env(safe-area-inset-bottom)); }
}


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