:root {
  --blue: #0b4da2;
  --blue-dark: #073a7d;
  --blue-light: #2f7de0;
  --orange: #f4801f;
  --orange-dark: #e06f10;
  --ink: #16233a;
  --muted: #64748b;
  --line: #e6ebf2;
  --bg: #ffffff;
  --bg-soft: #f6f9fd;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(11, 77, 162, .12);
  --shadow-sm: 0 6px 18px rgba(16, 35, 58, .08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1180px, 92%); margin-inline: auto; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.accent { color: var(--orange); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem;
  padding: .85rem 1.5rem; border-radius: 12px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-arrow { font-size: 1.2rem; line-height: 1; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(244,128,31,.35); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue-light); color: var(--blue-dark); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: #eef4fd; }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue-light); }
.btn-ghost:hover { background: var(--blue); color: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: .85rem 0; }

.logo { display: flex; align-items: center; gap: .6rem; }
.logo-mark { flex: none; }
/* Logo subido desde el panel (sustituye al SVG dibujado) */
img.logo-mark { width: 42px; height: 42px; object-fit: contain; }
/* En el footer (fondo azul oscuro) el logo va sobre una pastilla blanca
   para que el azul de la marca no se pierda contra el fondo. */
.footer-logo-badge {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 12px; background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.footer-logo-badge img.logo-mark { width: 34px; height: 34px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-size: 1.35rem; font-weight: 700; letter-spacing: .5px; color: var(--blue); }
.logo-name b { color: var(--blue); }
.logo-accent { color: var(--orange); }
.logo-sub { font-size: .52rem; letter-spacing: 2.5px; color: var(--muted); margin-top: 2px; }

.main-nav { display: flex; gap: 1.6rem; margin-left: 1rem; }
.main-nav a { font-weight: 500; font-size: .95rem; color: var(--ink); padding: .25rem 0; position: relative; }
.main-nav a:hover { color: var(--blue); }
.main-nav a.active { color: var(--blue); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 3px; border-radius: 3px; background: var(--orange);
}

.header-cta { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.header-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--blue); font-size: .92rem; }
.location-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--orange); color: #fff; border: none;
  padding: .55rem .9rem; border-radius: 10px; font-weight: 600; font-size: .88rem;
  cursor: pointer; font-family: inherit;
}
.location-pill:hover { background: var(--orange-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--blue); border-radius: 3px; transition: .3s; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, #e7f1ff 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  padding: clamp(3rem, 6vw, 6rem) 0;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem; }
.hero-welcome { color: var(--orange); font-weight: 600; letter-spacing: .5px; margin-bottom: .5rem; }
.hero-title { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.05; letter-spacing: -1px; }
.hero-title span { display: block; }
.hero-title .hero-sub-line { font-size: .55em; font-weight: 700; color: var(--muted); margin-top: .3rem; }
.hero-lead { color: var(--muted); font-size: 1.05rem; max-width: 30rem; margin: 1.4rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.8rem; }
.hero-rating { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .95rem; }
.stars { color: #f6b40a; letter-spacing: 2px; font-size: 1.1rem; }

/* Hero visual */
.hero-visual { display: flex; justify-content: center; }
.hero-orb { position: relative; width: min(420px, 90%); aspect-ratio: 1; display: grid; place-items: center; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(47,125,224,.25); }
.ring-1 { inset: 0; animation: spin 22s linear infinite; border-top-color: var(--orange); }
.ring-2 { inset: 14%; border-color: rgba(244,128,31,.3); animation: spin 16s linear infinite reverse; border-right-color: var(--blue-light); }
.ring-3 { inset: 28%; border-color: rgba(47,125,224,.35); animation: spin 12s linear infinite; }
.orb-core {
  width: 44%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(145deg, var(--blue), var(--blue-light));
  display: grid; place-items: center;
  box-shadow: 0 20px 50px rgba(11,77,162,.4), inset 0 0 40px rgba(255,255,255,.15);
}
/* Con logo: núcleo blanco para que el logo (naranja/azul) resalte y se integre */
.orb-core.orb-logo {
  background: #fff;
  box-shadow: 0 18px 45px rgba(11,77,162,.22), inset 0 0 0 1px rgba(11,77,162,.07);
}
.orb-core.orb-logo img { width: 66%; height: 66%; object-fit: contain; display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Section shared ===== */
.plans { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.eyebrow { color: var(--blue-light); font-weight: 600; letter-spacing: 2px; font-size: .8rem; text-transform: uppercase; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.5px; margin: .3rem 0 2.5rem; }

/* ===== Plans grid ===== */
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.plan-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.5rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan-card.featured { border-color: var(--orange); box-shadow: 0 18px 44px rgba(244,128,31,.18); }
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: 1px;
  padding: .35rem 1rem; border-radius: 20px; white-space: nowrap;
}
.plan-name { color: var(--blue); font-size: 1.4rem; font-weight: 700; }
.plan-tag { color: var(--muted); font-weight: 600; font-size: .9rem; margin-top: .2rem; }
.plan-price { margin: 1.2rem 0 1.4rem; display: flex; align-items: baseline; justify-content: center; gap: .25rem; }
.plan-price .cur { font-size: .95rem; font-weight: 700; color: var(--ink); }
.plan-price .amount { font-size: 2.3rem; font-weight: 800; color: var(--ink); letter-spacing: -1px; }
.featured .plan-price .amount { color: var(--orange); }
.plan-price .per { font-size: .85rem; color: var(--muted); }
.plan-features { list-style: none; text-align: left; margin-bottom: 1.6rem; display: grid; gap: .7rem; }
.plan-features li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: #33465f; }
.dot { width: 22px; height: 22px; border-radius: 50%; flex: none; position: relative; }
.dot.down { background: #eaf2fd; }
.dot.up { background: #fff0e2; }
.dot.check { background: #e5f7ec; }
.dot::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px;
}
.dot.down::before { border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); margin-top: 4px; }
.dot.up::before { border-left: 2px solid var(--orange); border-top: 2px solid var(--orange); transform: rotate(45deg); margin-bottom: 4px; }
.dot.check::before { width: 5px; height: 9px; border-right: 2px solid #16a34a; border-bottom: 2px solid #16a34a; transform: rotate(45deg); margin-bottom: 2px; }
.btn-plan { justify-content: center; width: 100%; margin-top: auto; border: 2px solid var(--blue); color: var(--blue); background: #fff; }
.btn-plan:hover { background: var(--blue); color: #fff; }
.btn-plan.btn-primary { border-color: var(--orange); background: var(--orange); color: #fff; }
.btn-plan.btn-primary:hover { background: var(--orange-dark); }
.plans-more { text-align: center; margin-top: 2.5rem; }

/* ===== Coverage / Contact ===== */
.coverage { padding: 0 0 clamp(3rem, 6vw, 5rem); }
.coverage-card {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); color: #fff;
}
.coverage-left { padding: clamp(2rem, 4vw, 3rem); }
.coverage-left h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 1rem; }
.coverage-address, .coverage-note { display: flex; gap: .5rem; color: #e6f0ff; margin-bottom: 1.2rem; }
.coverage-address svg { flex: none; margin-top: 3px; }
.coverage-note { display: block; font-size: .95rem; }

.coverage-right { background: rgba(255,255,255,.08); padding: clamp(1.8rem, 3vw, 2.5rem); backdrop-filter: blur(4px); }
.coverage-right h3 { font-size: 1.25rem; margin-bottom: 1.3rem; }
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.8rem; }
.branch { display: grid; gap: .3rem; }
.branch-name { font-weight: 700; font-size: .98rem; display: flex; align-items: center; gap: .5rem; }
.principal { background: var(--orange); color: #fff; font-size: .62rem; font-weight: 700; padding: .12rem .5rem; border-radius: 10px; letter-spacing: .5px; }
.branch a { display: inline-flex; align-items: center; gap: .45rem; color: #dbe7fb; font-size: .88rem; }
.branch a:hover { color: #fff; }
.ci { width: 15px; height: 15px; fill: currentColor; flex: none; }

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: #dbe7fb; padding-top: 3.5rem;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-logo .logo-name { color: #fff; }
.footer-about { margin-top: 1rem; font-size: .92rem; color: #bcd0ef; max-width: 26rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col a { color: #cddcf5; font-size: .92rem; display: inline-flex; align-items: center; gap: .5rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1.2rem 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .85rem; color: #bcd0ef; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a:hover { color: #fff; }

/* ===== WhatsApp float ===== */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.5);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ===== Hero slides ===== */
.hero-track { position: relative; }
.hero-slide { display: none; }
.hero-slide.active { display: block; animation: fadeIn .5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-img { border-radius: 20px; box-shadow: var(--shadow); }
.hero-dots { display: flex; gap: .5rem; justify-content: center; margin-top: 1.5rem; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: #cdd9ea; cursor: pointer; padding: 0; transition: .2s; }
.hero-dots button.active { background: var(--orange); width: 26px; border-radius: 6px; }

/* ===== Hero ANCHO (imagen a todo el hero + degradado blanco tras el texto) ===== */
/* Se activa con el ajuste "Estilo del slider = Ancho con imagen".
   Capas:  ::before = imagen (con opacidad controlable)
           ::after  = degradado blanco izquierda + difuminado inferior
           .hero-inner = el texto, por encima de todo                        */
.hero-wide { padding: 0; background: none; position: relative; }
.hero-wide .hero-slide { position: relative; background: #fff; overflow: hidden; }

/* Capa 1 — la imagen, ocupa TODO el hero.
   El slide tiene overflow:hidden, así que al escalar (zoom) nunca deja huecos. */
.hero-wide .has-image::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--slide-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--hero-img-op, 1);
  transform: scale(var(--hero-img-scale, 1));
  transform-origin: center center;
}
/* Slides sin imagen: degradado de marca */
.hero-wide .no-image::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #eaf2fd 0%, #dbe9fb 100%);
}

/* Capa 2 — degradado blanco SOLO a la izquierda (detrás del texto) */
.hero-wide .hero-slide::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    /* blanco tras el texto, se disuelve hacia la derecha */
    linear-gradient(90deg,
      rgba(255,255,255,.97) 0%,
      rgba(255,255,255,.93) 26%,
      rgba(255,255,255,.70) 44%,
      rgba(255,255,255,.28) 62%,
      rgba(255,255,255,0)   82%);
}

.hero-wide .hero-inner {
  position: relative; z-index: 2;
  grid-template-columns: 1fr;
  min-height: clamp(460px, 62vh, 620px);
  align-items: center;
  padding-block: 3.5rem;
}
.hero-wide .hero-copy { max-width: min(560px, 54%); }
/* El texto mantiene los colores originales (oscuro sobre el blanco) */
.hero-wide .hero-title { text-shadow: 0 1px 18px rgba(255,255,255,.85); }
/* Con imagen de fondo no hace falta el visual de la derecha */
.hero-wide .has-image .hero-visual { display: none; }
/* Sin imagen, mantenemos el orbe para que no quede vacío */
.hero-wide .no-image .hero-inner { grid-template-columns: 1.05fr .95fr; }
.hero-wide .no-image .hero-copy { max-width: none; }
/* Puntos sobre la imagen */
.hero-wide .hero-dots { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 3; margin: 0; }

/* ===== Plan tabs ===== */
.plan-tabs { display: inline-flex; gap: .3rem; background: #eef3fa; padding: .35rem; border-radius: 12px; margin-bottom: 2rem; }
.plan-tab { border: none; background: transparent; font-family: inherit; font-weight: 600; font-size: .95rem; color: var(--muted); padding: .6rem 1.4rem; border-radius: 9px; cursor: pointer; transition: .2s; }
.plan-tab.active { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.plan-group { display: none; }
.plan-group.active { display: grid; }
.btn-block { width: 100%; justify-content: center; }

/* ===== Beneficios ===== */
.benefits { padding: clamp(2rem,4vw,3.5rem) 0; }
.benefits-card {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  border-radius: 22px; padding: clamp(1.8rem, 4vw, 2.8rem); color: #fff; box-shadow: var(--shadow);
}
.benefits-copy h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 1.2rem; }
.benefits-list { list-style: none; display: grid; gap: .75rem; }
.benefits-list li { display: flex; align-items: flex-start; gap: .7rem; font-size: 1rem; color: #eaf2ff; }
.ben-check {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: #22c55e; color: #fff;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700; margin-top: 2px;
}
.benefits-cta { text-align: center; display: grid; gap: .7rem; justify-items: center; }
.benefits-cta-text { font-size: 1.3rem; font-weight: 800; color: #fff; }
.benefits-cta .btn { width: 100%; max-width: 260px; justify-content: center; }
.benefits-cta .btn-light { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.benefits-cta .btn-light:hover { background: rgba(255,255,255,.25); }

/* ===== Testimonios ===== */
.testimonials { padding: clamp(2.5rem,5vw,4.5rem) 0; background: var(--bg-soft); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

/* --- Carrusel horizontal de una línea (portada) --- */
.testi-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.testi-nav { display: flex; gap: .5rem; flex: none; }
.testi-arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--blue); font-size: 1.4rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: .18s; font-family: inherit;
}
.testi-arrow:hover:not(:disabled) { background: var(--blue); color: #fff; border-color: var(--blue); }
.testi-arrow:disabled { opacity: .35; cursor: default; }

.testi-scroller {
  display: flex; flex-wrap: nowrap; gap: 1.4rem;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .3rem .3rem 1.2rem;      /* aire para que no se corte la sombra */
  margin: 0 -.3rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd7e6 transparent;
}
.testi-scroller::-webkit-scrollbar { height: 6px; }
.testi-scroller::-webkit-scrollbar-track { background: transparent; }
.testi-scroller::-webkit-scrollbar-thumb { background: #cbd7e6; border-radius: 6px; }
.testi-scroller:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 4px; border-radius: var(--radius); }
.testi-slide {
  flex: 0 0 clamp(280px, 32%, 380px);   /* una sola línea: ~3 visibles en escritorio */
  scroll-snap-align: start;
}
.testi-more { text-align: center; margin-top: 1rem; }
.testi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.testi-stars { color: #f6b40a; letter-spacing: 2px; margin-bottom: .8rem; }
.testi-body { color: #33465f; font-size: .98rem; margin-bottom: 1.3rem; }
.testi-author { display: flex; align-items: center; gap: .8rem; }
.testi-author img, .testi-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.testi-avatar { background: linear-gradient(145deg, var(--blue), var(--blue-light)); color: #fff; display: grid; place-items: center; font-weight: 700; }
.testi-author strong { display: block; font-size: .95rem; }
.testi-author small { color: var(--muted); }

/* ===== Noticias ===== */
.news { padding: clamp(2.5rem,5vw,4.5rem) 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-thumb { display: block; aspect-ratio: 16/9; background: #eef3fa; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.news-thumb-ph .ci { width: 40px; height: 40px; fill: rgba(255,255,255,.7); }
.news-body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.news-body time { color: var(--orange); font-size: .8rem; font-weight: 600; }
.news-body h3 { font-size: 1.15rem; margin: .4rem 0 .5rem; line-height: 1.3; }
.news-body h3 a:hover { color: var(--blue); }
.news-body p { color: var(--muted); font-size: .92rem; flex: 1; }
.news-more { color: var(--blue); font-weight: 600; font-size: .9rem; margin-top: .8rem; }

/* ===== Coverage contacts + form ===== */
.coverage-contacts { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.4rem; }
.coverage-contacts a { display: inline-flex; align-items: center; gap: .5rem; color: #eaf2ff; font-weight: 500; }
.coverage-contacts a:hover { color: #fff; }
.coverage-contacts .ci { width: 16px; height: 16px; fill: currentColor; }
.contact-form { display: grid; gap: .8rem; }
.contact-form .frow { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.12); color: #fff; font-family: inherit; font-size: .95rem;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #d5e3fb; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--orange); background: rgba(255,255,255,.2); }
.form-branch-note { font-size: .82rem; color: #d5e3fb; }
.form-ok { background: #e5f7ec; color: #15803d; border-radius: 10px; padding: .9rem 1rem; margin-bottom: 1rem; font-weight: 500; }

/* ===== Footer social ===== */
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; transition: .2s; }
.footer-social a:hover { background: var(--orange); }

/* ===== Modales ===== */
.branch-modal, .lead-modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(8,25,54,.6); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 1rem;
}
.branch-modal.open, .lead-modal.open { display: flex; animation: fadeIn .25s ease; }
.branch-modal-box, .lead-modal-box {
  position: relative; background: #fff; border-radius: 18px; width: min(520px, 100%);
  max-height: 90vh; overflow-y: auto; padding: 2rem; box-shadow: 0 30px 70px rgba(0,0,0,.4);
}
.branch-modal-close, .lead-modal-close {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: #f1f5f9; color: #475569; font-size: 1.3rem; cursor: pointer; line-height: 1;
}
.branch-modal-close:hover, .lead-modal-close:hover { background: #e2e8f0; }
.branch-modal-head { text-align: center; margin-bottom: 1.3rem; }
.branch-modal-head h3 { font-size: 1.4rem; margin: .5rem 0 .3rem; }
.branch-modal-head p { color: var(--muted); font-size: .92rem; }
.branch-list { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.branch-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; text-align: left;
  border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: .8rem .9rem;
  cursor: pointer; font-family: inherit; transition: .18s;
}
.branch-option:hover { border-color: var(--blue-light); background: #f6f9ff; }
.branch-option.selected { border-color: var(--orange); background: #fff7f0; }
.bo-name { font-weight: 700; color: var(--ink); font-size: .9rem; line-height: 1.25; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.bo-name em { background: var(--orange); color: #fff; font-size: .58rem; font-style: normal; font-weight: 700; padding: .1rem .45rem; border-radius: 10px; }
.bo-meta { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .78rem; }
.bo-meta .ci { width: 13px; height: 13px; fill: var(--blue); flex: none; }
/* Con muchas sucursales el modal necesita algo más de ancho */
.branch-modal-box { width: min(680px, 100%); }
@media (max-width: 560px) { .branch-list { grid-template-columns: 1fr; } }

.lead-modal-box h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.lead-sub { color: var(--muted); font-size: .92rem; margin-bottom: 1.2rem; }
.lead-form { display: grid; gap: .8rem; }
.lead-form .frow { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.lead-form input, .lead-form textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 10px; border: 1px solid var(--line);
  font-family: inherit; font-size: .95rem;
}
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid var(--blue-light); border-color: transparent; }

/* ===== Página de noticia ===== */
.article-wrap { padding: 2.5rem 0 4rem; min-height: 60vh; }
.back-link { color: var(--blue); font-weight: 600; display: inline-block; margin-bottom: 1.5rem; }
.article { max-width: 780px; margin: auto; }
.article-date { color: var(--orange); font-weight: 600; }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin: .4rem 0 1.2rem; line-height: 1.15; }
.article-hero { width: 100%; border-radius: 16px; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.article-body p { color: #33465f; margin-bottom: 1.1rem; font-size: 1.05rem; }
.not-found { text-align: center; padding: 3rem 0; }

/* ===== Páginas internas ===== */
.page-hero {
  background:
    radial-gradient(900px 400px at 85% -20%, #e7f1ff 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -1px; margin: .3rem 0 .6rem; }
.page-hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 40rem; }
.page-body { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.page-lead { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; color: var(--muted); font-size: 1.05rem; }
.empty-note { text-align: center; color: var(--muted); padding: 2.5rem 0; }

/* Quiénes somos */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; margin-bottom: 3rem; }
.about-text p { color: #33465f; font-size: 1.06rem; margin-bottom: 1.1rem; }
.about-img { border-radius: 18px; box-shadow: var(--shadow); }
.about-orb { position: relative; aspect-ratio: 1; max-width: 320px; margin: auto; display: grid; place-items: center; }
.about-orb .orb-core { width: 46%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(145deg, var(--blue), var(--blue-light)); display: grid; place-items: center; box-shadow: 0 20px 50px rgba(11,77,162,.4); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-bottom: 3rem; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); text-align: center; }
.value-ic { font-size: 2rem; margin-bottom: .6rem; }
.value-card h3 { font-size: 1.1rem; margin-bottom: .4rem; color: var(--blue); }
.value-card p { color: var(--muted); font-size: .92rem; }
.page-cta { text-align: center; background: linear-gradient(135deg, var(--blue), var(--blue-light)); color: #fff; border-radius: 22px; padding: clamp(2rem, 4vw, 3rem); box-shadow: var(--shadow); }
.page-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 1rem; }
.page-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.page-cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.page-cta .btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }

/* Planes (página) */
.plans-grid-wide { grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); }
.plans-note { text-align: center; color: var(--muted); max-width: 46rem; margin: 2rem auto 0; }

/* Testimonios (página) */
.testi-grid-page { grid-template-columns: repeat(3, 1fr); }
.testi-rating-label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; color: #33465f; }
.testi-rating-label select { padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; }

/* Contacto (página) */
.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.6rem; margin-bottom: 3rem; }
.contact-form-card { background: linear-gradient(135deg, var(--blue), var(--blue-light)); border-radius: 18px; padding: clamp(1.6rem, 3vw, 2.4rem); color: #fff; box-shadow: var(--shadow); }
.contact-form-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.contact-intro { color: #dbe7fb; font-size: .95rem; margin-bottom: 1.2rem; }
.contact-active-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; box-shadow: var(--shadow-sm); }
.contact-active-card h3 { font-size: 1.25rem; color: var(--blue); margin-bottom: 1rem; }
.contact-active-card .ca-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; color: #33465f; }
.contact-active-card .ca-row .ci { width: 17px; height: 17px; fill: var(--blue); flex: none; }
.contact-active-card .ca-row svg [fill="#fff"] { fill: var(--blue); }
.contact-active-card .ca-row svg path[fill="#fff"] { fill: var(--blue); }
.contact-switch-hint { color: var(--muted); font-size: .85rem; margin-top: 1rem; }
.branches-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.3rem; }
.branches-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.branch-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.branch-card h4 { font-size: 1.05rem; color: var(--blue); margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pill-principal { background: var(--orange); color: #fff; font-size: .62rem; font-weight: 700; padding: .1rem .5rem; border-radius: 10px; }
.bc-addr { color: var(--muted); font-size: .88rem; margin-bottom: .7rem; }
.branch-card a { display: flex; align-items: center; gap: .5rem; color: #33465f; font-size: .9rem; margin-bottom: .35rem; }
.branch-card a:hover { color: var(--blue); }
.branch-card a .ci { width: 15px; height: 15px; fill: var(--blue); flex: none; }
/* En la tarjeta oscura, el formulario ya hereda estilos .contact-form */

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { grid-row: 1; order: -1; }
  .hero-orb { width: 260px; }
  /* Hero ancho: el blanco pasa a vertical y el texto ocupa todo */
  .hero-wide .hero-slide::after {
    background:
      linear-gradient(180deg,
        rgba(255,255,255,.94) 0%,
        rgba(255,255,255,.82) 45%,
        rgba(255,255,255,.88) 75%,
        #fff 100%);
  }
  .hero-wide .hero-copy { max-width: 100%; }
  .hero-wide .no-image .hero-inner { grid-template-columns: 1fr; }
  .hero-wide .hero-inner { min-height: 420px; }
  .coverage-card { grid-template-columns: 1fr; }
  .testi-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .branches-grid, .testi-grid-page { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .main-nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 6%;
    transform: translateY(-120%); transition: transform .3s ease; margin: 0;
    box-shadow: var(--shadow-sm);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a.active::after { display: none; }
  .header-phone, .location-pill { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
  .plans-grid, .plan-group.active { grid-template-columns: 1fr; }
  .testi-grid, .news-grid { grid-template-columns: 1fr; }
  .branches { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .contact-form .frow, .lead-form .frow { grid-template-columns: 1fr; }
  .values-grid, .branches-grid, .testi-grid-page { grid-template-columns: 1fr; }
}
