*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --accent:  #E85D04;
  --blue:    #1B3A6B;
  --blue2:   #0F2447;
  --text:    #1A1F2E;
  --muted:   #6B7A90;
  --bg:      #F5F7FA;
  --white:   #FFFFFF;
  --wa:      #25D366;
  --radius:  12px;
}
html { scroll-behavior: smooth; overflow-y: scroll; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--blue2);
  padding: 8px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.hdr-brand {
  display: flex; align-items: center; gap: 8px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 14px;
}
.dot { width: 8px; height: 8px; background: #22C55E; border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }
.hdr-wa {
  display: inline-flex; align-items: center; gap: 12px;
  background: transparent; color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900; font-size: 28px;
  padding: 4px 0; border-radius: 0;
  transition: opacity .2s; white-space: nowrap;
  letter-spacing: .02em;
  text-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.hdr-wa-icon {
  display: inline-flex; align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  color: #22C55E;
  background: rgba(34,197,94,.16);
  border-radius: 50%;
  font-size: 0;
  line-height: 1;
}
.hdr-wa-icon svg { width: 56px; height: 56px; color: #22C55E; }
.hdr-wa:hover { opacity: .88; }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 760px;
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  border-radius: 12px;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(12, 64, 132, 0.55), rgba(0, 6, 13, 0.918));
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1250px; margin: 0 auto;
  padding: 78px 24px 78px;
  display: grid;
  grid-template-columns: 1fr minmax(360px, 520px);
  gap: 48px; align-items: center;
}
.hero { filter: brightness(1.03); }
.hero-text { color: #fff; }
.hero-badge {
  display: inline-block;
  background: rgba(232,93,4,.95); color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}
.hero-text h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 800; line-height: 1.05; margin-bottom: 18px;
  letter-spacing: -.03em;
}
.hero-text h1 span { color: var(--accent); }
.hero-sub { font-size: 16px; color: rgba(255,255,255,.88); margin-bottom: 28px; max-width: 680px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hbadge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 13px; font-weight: 500;
  padding: 7px 14px; border-radius: 100px;
}

/* ── FORM CARD ── */
.form-card {
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0,0,0,.14);
  padding: 34px 28px;
  border: 1px solid #B0BCCF;
  max-width: 480px;
  width: 100%;
  margin-top: -60px;
}
.form-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px; font-weight: 800; margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}
.form-card-sub { font-size: 17px; color: var(--muted); margin-bottom: 20px; }

.field { margin-bottom: 14px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  border: 1.6px solid #9AA7B8; border-radius: 14px;
  font-family: 'Inter', sans-serif; font-size: 15px;
  color: var(--text); background: #F7F8FB;
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
}
.field input:hover, .field select:hover, .field textarea:hover {
  border-color: #7F8EA4;
  background: #EFF3F9;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px rgba(232,93,4,.12);
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field select { padding-right: 40px; cursor: pointer; }
.field select option:first-child { color: var(--muted); }
.field textarea { resize: vertical; min-height: 72px; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ''; position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1 3l4 4 4-4' fill='none' stroke='%236B7A90' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  pointer-events: none;
}

.btn-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.btn-primary, .btn-wa-form {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 16px 18px; border: none; border-radius: 16px;
  font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 800;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, filter .2s;
  min-height: 56px; white-space: nowrap;
}
.btn-primary   { background: var(--accent); color: #fff; box-shadow: 0 16px 30px rgba(232,93,4,.25); }
.btn-wa-form   { background: var(--wa);     color: #fff; box-shadow: 0 16px 30px rgba(37,211,102,.20); }
.btn-primary:hover, .btn-wa-form:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 20px 35px rgba(0,0,0,.18);
}
.btn-primary:active, .btn-wa-form:active { transform: translateY(0); }
.btn-primary svg, .btn-wa-form svg { width: 20px; height: 20px; }
.btn-primary:active, .btn-wa-form:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.form-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 8px; }

/* CHECKBOX CONSENT */
#f-consent {
  width: 18px; height: 18px; min-width: 18px; min-height: 18px;
  border: 1.5px solid #AFC0D1; border-radius: 4px;
  appearance: none; cursor: pointer;
  background: #FAFBFC;
  transition: all .2s;
}
#f-consent:hover { border-color: var(--accent); }
#f-consent:checked {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M13.78 4.22a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06 0l-3.5-3.5a.75.75 0 011.06-1.06L5.97 11.94l6.72-6.72a.75.75 0 011.06 0z'/%3E%3C/svg%3E");
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}
#f-consent:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-consent-label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  cursor: pointer;
}
.form-privacy-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
  max-width: 420px;
}
.feedback {
  display: none; padding: 11px; border-radius: 8px;
  font-size: 13px; font-weight: 500; text-align: center; margin-top: 12px;
}
.feedback.ok    { display:block; background:#DCFCE7; color:#166534; }
.feedback.error { display:block; background:#FEE2E2; color:#991B1B; }

/* ── SECTION BASE ── */
.section { padding: 60px 24px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}
.section-title::before,
.section-title::after {
  content: none;
  display: none;
}
.section-title svg { display: block; }
.section-sub { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.section-note { max-width: 760px; margin: 0 auto 32px; color: rgba(255,255,255,.88); font-size: 16px; line-height: 1.8; text-align: center; }

/* Subtítulos centrados con color de acento */
.section-sub, .seo-h4, .form-card-sub {
  text-align: center;
  color: var(--accent);
}

/* Parrafos más grandes para mejorar legibilidad */
.section-inner p, .section-inner li, .seo-p, .seo-article p {
  font-size: 19px;
}

/* ── SERVICIOS ── */
/* ── SEO CONTENT TYPOGRAPHY ── */
.section-inner h3 {
  font-size: 24px; font-weight: 700; margin-top: 10px; margin-bottom: 18px;
  color: var(--text);
}
.section-inner h4 {
  font-size: 20px; font-weight: 700; margin-top: 10px; margin-bottom: 16px;
  color: var(--text);
}
.section-inner article { margin-top: 12px; }
.section-inner article h3 { font-size: 20px; margin-bottom: 8px; }
.section-inner p, .section-inner li { font-size: 19px; color: var(--muted); }
.section-inner ul { margin-top: 10px; padding-left: 20px; }
.section-inner hr { border: none; height: 1px; background: rgba(0,0,0,0.06); margin: 26px 0; }
#seo-zona { color: var(--accent); font-weight:700; }

/* ── SEO SECTION CLASSES (replace inline styles) ── */
.seo-section { background: var(--bg); }
.seo-inner { padding-top: 6px; }
.seo-h3 { font-size: 22px; margin-top: 16px; color: var(--text); }
.seo-h4 { margin-top: 8px; color: var(--text); font-weight:700; font-size: 21px; }
.seo-p { max-width: 780px; margin-top: 12px; color: var(--muted); line-height: 1.95; font-size: 19px; }
.seo-p a.seo-link { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(107,122,144,.45); text-underline-offset: 2px; }
.seo-p a.seo-link:hover { color: var(--accent, #E85D04); text-decoration-color: var(--accent, #E85D04); }
.seo-list { max-width: 780px; color: var(--muted); line-height: 1.8; margin-top: 10px; padding-left: 20px; }
.seo-hr { opacity: .06; margin: 26px 0; border: none; height: 1px; background: rgba(0,0,0,.06); }
.seo-article { max-width: 780px; color: var(--muted); line-height: 1.8; margin-top: 12px; }
.seo-note { margin-top: 20px; color: var(--muted); }
.seo-inner { padding-top: 6px; max-width: 980px; margin: 0 auto; }
 .seo-h3 { font-size: 22px; margin: 16px auto 0; color: var(--text); text-align: center; max-width: 760px; }
 .seo-h4 { margin-top: 8px; color: var(--text); font-size: 21px; font-weight:700; }
 .seo-p { max-width: 760px; margin: 0.75rem auto 0; color: var(--muted); line-height: 1.95; font-size: 19px; }
 .seo-list { max-width: 760px; margin: 0.75rem auto 0; color: var(--muted); line-height: 1.8; padding-left: 20px; }
 .seo-hr { opacity: .06; margin: 26px 0; border: none; height: 1px; background: rgba(0,0,0,.06); }
 .seo-article { max-width: 760px; margin: 0.75rem auto 0; color: var(--muted); line-height: 1.8; }
 .seo-note { max-width: 760px; margin: 1rem auto 0; color: var(--muted); }

.seo-calles {
  max-width: 760px;
  margin: 12px auto 0;
  text-align: center;
  min-height: 50px;
}
.seo-calles-tag {
  display: inline-block;
  background: rgba(232,93,4,.08);
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  margin: 3px 2px;
  letter-spacing: .01em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 34px;
  min-height: 300px;
}
.services-grid .service-card:nth-child(5) {
  grid-column: 1 / -1;
}
@media (max-width: 576px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-card:nth-child(5) { grid-column: auto; width: auto; }
}
.service-card {
  background: var(--white);
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius);
  padding: 8px 14px;
  min-height: 300px;
  transition: box-shadow .25s, transform .25s;
  box-shadow: 0 12px 30px rgba(16,25,54,.08);
}
.service-card:hover { box-shadow: 0 14px 38px rgba(16,25,54,.12); transform: translateY(-3px); }
.service-icon {
  font-size: 24px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: #FEF3C7;
  border-radius: 50%;
  margin: 0 auto 10px;
}
.service-card { text-align: center; }
.service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 700; margin-bottom: 4px;
}
.service-card p { font-size: 16px; color: var(--muted); text-align: left; padding-top: 12px; }

/* ── ANTES/DESPUÉS ── */
.antes-despues { background: var(--blue2); }
.antes-despues .section-title,
.antes-despues .section-sub { color: #fff; }
.antes-despues .section-sub { color: rgba(255,255,255,.65); }
.ad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 720px; margin: 0 auto; min-height: 400px; }
.ad-card {
  border-radius: var(--radius); overflow: hidden;
  position: relative; background: transparent;
  min-height: 180px; display: flex; align-items: flex-end;
}
.ad-img {
  width: 100%; height: 200px; object-fit: cover;
  display: block; opacity: 1; border-radius: 12px;
  filter: saturate(1.05) brightness(1.02);
  transition: transform .3s ease, box-shadow .3s ease;
}
.ad-img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.ad-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, #1e3557 0%, #2a4a7f 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; opacity: .5;
}
.ad-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
}
.ad-label.after { background: linear-gradient(transparent, rgba(var(--accent-rgb,232,93,4),.8)); }

/* ── TESTIMONIOS ── */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  min-height: 150px;
}
.testimonio-card {
  background: var(--white);
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius);
  padding: 22px 20px;
}
.test-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.test-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.test-name { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; }
.test-stars { color: #F59E0B; font-size: 13px; }
.test-text { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ── FAQ ── */
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; min-height: 350px; }
.faq-item {
  background: var(--white);
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius); overflow: hidden;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 600;
  user-select: none;
  transition: background .15s;
}
.faq-q:hover { background: #F8FAFC; }
.faq-q .arrow {
  flex-shrink: 0; width: 20px; height: 20px;
  border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
  transition: transform .3s;
}
.faq-item.open .arrow { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s;
  font-size: 14px; color: var(--muted);
  padding: 0 20px;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 20px 16px; }

/* ── CTA FINAL ── */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue2) 100%);
  text-align: center; padding: 56px 24px; color: #fff;
}
.cta-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 4vw, 34px); font-weight: 800; margin-bottom: 10px;
}
.cta-section p { color: rgba(255,255,255,.72); margin-bottom: 28px; font-size: 15px; }
.cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.cta-btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700;
  padding: 15px 28px; border-radius: 12px;
  transition: opacity .2s;
}
.cta-btn-wa:hover { opacity: .88; }
.cta-btn-form {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.4); color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700;
  padding: 13px 28px; border-radius: 12px;
  transition: background .2s; cursor: pointer;
}
.cta-btn-form:hover { background: rgba(255,255,255,.25); }

/* ── FOOTER ── */
footer {
  background: var(--blue2); color: rgba(255,255,255,.7);
  text-align: center; padding: 24px 16px; font-size: 12px;
}

.footer-inner { max-width: 1280px; margin: 0 auto; padding: 8px 12px; }
.footer-zonas-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin: 14px 0 10px;
  letter-spacing: .03em;
}
.footer-copy {
  font-size: 10px;
  color: rgba(255,255,255,.45);
  margin-top: 16px;
}

.footer-social { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 14px 0 4px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  color: rgba(255,255,255,.75); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  transition: background .2s, color .2s, transform .2s;
}
.footer-social a:hover { color: #fff; background: rgba(255,255,255,.16); transform: translateY(-2px); }
.footer-social svg { width: 14px; height: 14px; display: block; }
.footer-links { margin: 8px 0 4px; }
.footer-otros-serv { margin: 12px 0 4px; }
.footer-otros-serv a {
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55); text-align: center; line-height: 1.5;
  font-size: 12px; font-weight: 500; text-decoration: none;
  border: 1px solid rgba(255,255,255,.18); border-radius: 100px;
  padding: 8px 18px; transition: background .2s, color .2s;
}
.footer-otros-serv a:hover { color: #fff; background: rgba(255,255,255,.1); }
.footer-links a {
  color: rgba(255,255,255,.75);
  text-decoration: underline;
  font-weight: 500;
  font-size: 11px;
}
.footer-links a:hover {
  color: rgba(255,255,255,.8);
}
.footer-legal {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  margin: 14px auto 6px;
  max-width: 600px;
  text-align: center;
  line-height: 1.5;
}
.footer-legal a {
  color: rgba(255,255,255,.7);
  text-decoration: underline;
  font-weight: 500;
}
.footer-legal a:hover {
  color: #fff;
}
.footer-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px auto 0;
  max-width: 1250px;
  width: 100%;
  justify-content: center;
}
.footer-locations-group {
  width: 100%;
}
.footer-locations-group h3 {
  display: none;
}
.footer-locations-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.footer-locations-group li {
  margin: 0;
  width: calc(20% - 6px);
  min-width: 130px;
}
.footer-locations a {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.95);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .015em;
  line-height: 1.3;
  text-align: center;
  transition: background .2s, transform .15s;
}
.footer-locations a:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .footer-locations {
    gap: 4px;
  }
  .footer-locations-group ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
  }
  .footer-locations-group li {
    width: calc(50% - 4px);
    min-width: 0;
  }
  .footer-locations a {
    width: 100%;
    font-size: 10px;
    padding: 5px 10px;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
  .footer-locations-group li:first-child {
    width: 100%;
  }
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 71, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 9999;
}
.modal-overlay.show { opacity: 1; visibility: visible; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 18px;
  padding: 36px 28px 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.30);
  transform: translateY(16px) scale(.97);
  transition: transform .25s ease;
}
.modal-overlay.show .modal-card { transform: translateY(0) scale(1); }

.modal-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 12px;
}
.modal-msg {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 22px;
}
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, filter .15s ease;
}
.modal-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.modal-btn-primary { background: var(--accent); color: #fff; }
.modal-btn-wa { background: var(--wa); color: #fff; }

/* ── FLOTANTE ── */
.wa-float {
  position: fixed; bottom: 22px; right: 18px;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.25); z-index: 999;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }

/* ── WA BUBBLE (tooltip) ── */
.wa-bubble {
  position: absolute;
  bottom: 70px;
  right: 0;
  transform: translateX(20px);
  background: #fff;
  color: #166534;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s, transform .25s;
  z-index: 1000;
  font-weight: 500;
}
.wa-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 4px 4px 8px rgba(0,0,0,.08);
}
.wa-bubble .wa-bubble-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
}
.wa-bubble.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .section { padding: 56px 20px; }
  .section-inner { max-width: 960px; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding: 48px 22px 56px; }
  .hero-text { text-align: center; }
  .hero-badges { justify-content: center; }
  .form-card { max-width: 540px; margin: 0 auto; }
  .ad-grid { max-width: 100%; }
  .services-grid, .ad-grid, .testimonios-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 48px 18px 52px;
    gap: 30px;
  }
  .hero-text h1 {
    font-size: clamp(28px, 8vw, 46px);
  }
  .hero-sub { font-size: 18px; margin-bottom: 24px; max-width: 100%; }
  .form-card { margin-top: 0; padding: 30px 20px; border-radius: 24px; }
  .form-card-title { font-size: 24px; }
  .form-card-sub { font-size: 15px; margin-bottom: 18px; }
  .field input, .field select, .field textarea { font-size: 16px; padding: 14px 14px; }
  .btn-primary, .btn-wa-form { font-size: 16px; min-height: 54px; padding: 16px 16px; }
  .section-inner p, .section-inner li, .seo-p, .seo-article p { font-size: 20px; line-height: 1.95; }
  .section-title { font-size: clamp(28px, 6vw, 38px); }
  .services-grid, .testimonios-grid, .faq-list { gap: 20px; }
  .ad-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
  .site-header { padding: 10px 16px; }
  .hdr-brand { font-size: 13px; }
  .hdr-wa { font-size: 22px; gap: 8px; }
  .hero { min-height: auto; }
  .hero-inner { padding: 40px 16px 46px; gap: 24px; }
  .hero-text h1 { font-size: clamp(26px, 10vw, 40px); }
  .hero-sub { font-size: 17px; }
  .form-card { padding: 24px 16px; border-radius: 20px; max-width: 100%; width: 100%; }
  .form-card-title { font-size: 22px; }
  .form-card-sub { font-size: 15px; }
  .form-consent-label { font-size: 13px; }
  .form-privacy-note { font-size: 12px; }
  .field input, .field select, .field textarea { font-size: 16px; padding: 13px 14px; }
  .btn-group { grid-template-columns: 1fr; }
  .btn-primary, .btn-wa-form { font-size: 15px; min-height: 52px; padding: 14px 14px; width: 100%; }
  .section-title { font-size: clamp(26px, 7vw, 34px); }
  .section-sub, .section-note { font-size: 16px; }
  .section-inner p, .section-inner li, .seo-p, .seo-article p { font-size: 17px; line-height: 1.8; }
  .ad-grid { grid-template-columns: 1fr; gap: 18px; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonios-grid { grid-template-columns: 1fr; gap: 16px; }
  .faq-list { gap: 12px; }
  .seo-p, .seo-article, .seo-list { max-width: 100%; }
  .section-title::before, .section-title::after { display: none; }
  .service-card h3 { font-size: 24px; }
  .service-card p { font-size: 17px; }
}

/* Botón Volver (artículos) */
.volver-wrap {
  display: flex;
  justify-content: center;
  margin: 36px auto 20px;
  padding: 0 16px;
}
.btn-volver {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue2) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(27, 58, 107, 0.25), 0 2px 4px rgba(27, 58, 107, 0.1);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.btn-volver::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, #ff7a1f 100%);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 0;
}
.btn-volver > * { position: relative; z-index: 1; }
.btn-volver:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(232, 93, 4, 0.35), 0 4px 8px rgba(27, 58, 107, 0.15);
}
.btn-volver:hover::before { opacity: 1; }
.btn-volver:active { transform: translateY(0); }
.btn-volver svg { transition: transform .25s ease; }
.btn-volver:hover svg { transform: translateX(-3px); }

/* Botón volver arriba (artículos) */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 92px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(232, 93, 4, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease, background .2s ease;
  z-index: 90;
  text-decoration: none;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #C44A03; transform: translateY(-3px); }
.back-to-top:active { transform: translateY(0); }
.back-to-top svg { width: 22px; height: 22px; }
@media (max-width: 576px) {
  .back-to-top { right: 14px; bottom: 84px; width: 46px; height: 46px; }
  .back-to-top svg { width: 20px; height: 20px; }
}

/* Grillas de imágenes SEO (artículos) */
.seo-figures {
  display: grid;
  gap: 18px;
  margin: 28px 0;
  max-width: 100%;
}
.seo-figures-mid {
  grid-template-columns: repeat(2, 1fr);
  margin: 36px 0;
  padding: 24px 0;
  border-top: 1px solid rgba(27, 58, 107, 0.08);
  border-bottom: 1px solid rgba(27, 58, 107, 0.08);
}
.seo-figures-bot {
  grid-template-columns: repeat(3, 1fr);
  margin: 40px 0 20px;
}
.seo-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 36, 71, 0.08), 0 1px 3px rgba(15, 36, 71, 0.05);
  border: 1px solid rgba(15, 36, 71, 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.seo-figure:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(15, 36, 71, 0.12), 0 2px 6px rgba(15, 36, 71, 0.08);
}
.seo-figure-img {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #1B3A6B, #0F2447);
}
.seo-figure-img svg { display: block; width: 100%; height: 100%; }
.seo-figure figcaption {
  display: block;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.4;
  color: #1A1F2E;
}
.seo-figure figcaption strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}
.seo-figure figcaption span {
  display: block;
  color: #6B7A90;
  font-size: 13px;
}
@media (max-width: 768px) {
  .seo-figures-bot, .seo-figures-mid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .seo-figures-bot, .seo-figures-mid { grid-template-columns: 1fr; }
}

/* ── HERO SLIDESHOW (artículos) ── */
.hero-slideshow { position: relative; overflow: hidden; }
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slideshow .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,36,71,0.85) 0%, rgba(27,58,107,0.70) 60%, rgba(232,93,4,0.55) 100%);
  z-index: 1;
}
.hero-slideshow .hero-inner {
  position: relative;
  z-index: 2;
}

/* ── HEADER URGENCIA BADGE ── */
.hdr-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hdr-urgencia {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(232,93,4,.90);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: .02em;
}

/* ── HERO BACK BUTTON ── */
.hero-back {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(15,36,71,.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.hero-back:hover {
  background: rgba(15,36,71,.85);
  transform: translateX(-2px);
}
.hero-back svg { transition: transform .2s; }
.hero-back:hover svg { transform: translateX(-3px); }

@media (max-width: 576px) {
  .hero-back {
    top: 10px;
    left: 10px;
    padding: 8px 12px;
    font-size: 0;
    gap: 0;
  }
  .hero-back svg { width: 18px; height: 18px; }
}

/* ── SEO FIGURE CENTER ── */
.seo-figure-center {
  max-width: 700px;
  margin: 36px auto !important;
}
.seo-figure-center .seo-figure-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #1B3A6B, #0F2447);
  margin: 0;
}

/* ── SERVICE CARDS GRID (tarjetitas) ── */
.service-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px;
  margin: 28px 0;
  width: 100%;
}
.service-card-tn {
  display: block !important;
  background: var(--white);
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 8px 24px rgba(16,25,54,.07);
  transition: box-shadow .25s, transform .25s;
  min-width: 0;
}
.service-card-tn:hover {
  box-shadow: 0 12px 30px rgba(16,25,54,.12);
  transform: translateY(-3px);
}
.service-card-tn-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #FFF3E0;
  border-radius: 50%;
  margin: 0 0 14px 0;
  flex-shrink: 0;
}
.service-card-tn-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}
.service-card-tn h3 {
  display: block !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
  line-height: 1.3;
}
.service-card-tn p {
  display: block !important;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .service-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 576px) {
  .service-cards-grid { grid-template-columns: 1fr !important; }
  .hdr-urgencia { display: none; }
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  transform: scale(.9);
  transition: transform .25s;
}
.modal-overlay.show .modal-card { transform: scale(1); }
.modal-icon { font-size: 48px; margin-bottom: 12px; }
.modal-msg { font-size: 15px; line-height: 1.5; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.modal-btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
}
.modal-btn:active { opacity: .8; }
.modal-btn-primary { background: var(--accent); color: #fff; }
.modal-btn-wa { background: #25D366; color: #fff; }
.modal-error .modal-icon { color: #EF4444; }
.modal-ok .modal-icon { color: #22C55E; }
.modal-wa .modal-icon { color: #25D366; }

/* ── MODAL EXIT INTENT ── */
.modal-wa .modal-icon { color: #25D366; }
