/* ==========================================================================
   TuWebLocal — Tema visual 2.0 "Coastal Premium"
   Capa de coherencia visual que se carga DESPUÉS del CSS de Astro.
   Convención: selectores con clase duplicada (.card.card) para ganar
   en especificidad a los selectores scoped [data-astro-cid-*].
   ========================================================================== */

:root {
  --twl-ink: #0b2431;
  --twl-body: #3b4a54;
  --twl-brand: #4ea9d5;
  --twl-brand-dark: #3b8bb2;
  --twl-deep: #176be0;
  --twl-navy: #0f3a4d;
  --twl-navy-2: #0a2a3a;
  --twl-soft: #f2f9fd;
  --twl-soft-2: #e6f3fa;
  --twl-amber: #ffb92e;
  --twl-grad: linear-gradient(120deg, #4ea9d5 0%, #2f8ed0 55%, #176be0 100%);
  --twl-grad-soft: linear-gradient(135deg, #f2f9fd 0%, #e2f0f8 100%);
  --twl-radius: 20px;
  --twl-shadow-sm: 0 4px 14px rgba(11, 36, 49, .07);
  --twl-shadow-md: 0 14px 34px rgba(11, 36, 49, .10);
  --twl-shadow-lg: 0 24px 60px rgba(11, 36, 49, .16);
  --twl-ease: cubic-bezier(.22, .61, .36, 1);
  --color-ink: var(--twl-ink);
  --color-body: var(--twl-body);
  --color-soft: var(--twl-soft);
}

/* ---------- Base ---------- */
body {
  color: var(--twl-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(78, 169, 213, .3); }

h1, h2, h3, h4, h5, h6 { color: var(--twl-ink); letter-spacing: -.015em; }

/* Marcador de texto: sustituye el subrayado duro por un marcador suave */
.u-mark.u-mark {
  text-decoration: none;
  background-image: linear-gradient(120deg, rgba(78, 169, 213, .38), rgba(23, 107, 224, .30));
  background-repeat: no-repeat;
  background-size: 100% .42em;
  background-position: 0 90%;
  border-radius: 2px;
  padding-inline: .06em;
}

/* Texto de marca con degradado */
.text-brand.text-brand {
  background: var(--twl-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botones ---------- */
.btn.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  font-weight: 700;
  letter-spacing: .01em;
  padding: .95rem 2.1rem;
  transition: transform .3s var(--twl-ease), box-shadow .3s var(--twl-ease), filter .3s;
  will-change: transform;
}
.btn.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s var(--twl-ease);
}
.btn.btn:hover::before { transform: translateX(120%); }
.btn.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn.btn:active { transform: translateY(-1px) scale(.99); }

.btn-primary.btn-primary {
  background: var(--twl-grad);
  border: 0;
  padding: calc(.95rem + 2px) calc(2.1rem + 2px);
  box-shadow: 0 8px 22px rgba(47, 142, 208, .38);
}
.btn-primary.btn-primary:hover { box-shadow: 0 14px 30px rgba(23, 107, 224, .42); }

.btn-whatsapp.btn-whatsapp {
  background: linear-gradient(120deg, #2ee06f, #1fb958);
  border: 0;
  padding: calc(.95rem + 2px) calc(2.1rem + 2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, .35);
}
.btn-whatsapp.btn-whatsapp:hover { filter: none; box-shadow: 0 14px 30px rgba(31, 185, 88, .45); }

/* ---------- Navegación flotante ---------- */
@keyframes twl-nav-in {
  from { transform: translateY(-120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.floatnav__bar.floatnav__bar {
  animation: twl-nav-in .7s var(--twl-ease) both;
  border: 1px solid rgba(78, 169, 213, .25);
  box-shadow: 0 12px 40px rgba(11, 36, 49, .14);
}
.floatnav__link.floatnav__link { position: relative; }
.floatnav__link.floatnav__link.is-active {
  color: #fff;
  background: var(--twl-grad);
  box-shadow: 0 4px 14px rgba(47, 142, 208, .35);
}
.floatnav__phone.floatnav__phone {
  background: var(--twl-grad);
  box-shadow: 0 6px 16px rgba(47, 142, 208, .4);
}

/* ---------- HERO (pantalla principal a toda altura) ---------- */
.hero.hero {
  min-height: min(94vh, 980px);
  display: flex;
  align-items: center;
}
.hero__bg.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  will-change: transform;
}
.hero__overlay.hero__overlay {
  background:
    linear-gradient(180deg, rgba(10, 30, 40, .55) 0%, rgba(10, 30, 40, .38) 40%, rgba(10, 42, 58, .78) 100%),
    radial-gradient(90% 70% at 50% 42%, rgba(78, 169, 213, .16), transparent 70%);
}
/* Aurora animada muy sutil sobre el hero */
.hero.hero::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(38% 32% at 22% 30%, rgba(78, 169, 213, .28), transparent 70%),
    radial-gradient(30% 28% at 78% 62%, rgba(23, 107, 224, .22), transparent 70%);
  animation: twl-aurora 16s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
@keyframes twl-aurora {
  from { transform: translate3d(-3%, -2%, 0) rotate(0deg); }
  to   { transform: translate3d(3%, 2%, 0) rotate(4deg); }
}
.hero__inner.hero__inner { padding-block: 6.5rem; z-index: 2; }

/* Entrada escalonada del contenido del hero */
@keyframes twl-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow.hero__eyebrow,
.hero__title.hero__title,
.hero__subtitle.hero__subtitle,
.hero__cta.hero__cta,
.hero__stars.hero__stars {
  animation: twl-rise .8s var(--twl-ease) both;
}
.hero__title.hero__title    { animation-delay: .12s; }
.hero__subtitle.hero__subtitle { animation-delay: .24s; }
.hero__cta.hero__cta        { animation-delay: .36s; }
.hero__stars.hero__stars    { animation-delay: .48s; }

.hero__eyebrow.hero__eyebrow {
  display: inline-block;
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #dff2fc;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: .5rem 1.2rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: 1.2rem;
  text-shadow: none;
}
.hero__title.hero__title {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin-bottom: 1.2rem;
}
.hero__title.hero__title .u-mark {
  background-image: linear-gradient(120deg, rgba(78, 169, 213, .55), rgba(23, 107, 224, .45));
}
.hero__subtitle.hero__subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  max-width: 680px;
  color: #eaf4f9;
}
.hero__cta.hero__cta { font-size: 1.12rem; padding: 1.1rem 2.6rem; }
.hero__stars.hero__stars .stars { color: var(--twl-amber); font-size: 1.35rem; text-shadow: 0 2px 12px rgba(255, 185, 46, .45); }

/* Indicador de scroll */
.hero.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .9) 0 3px, transparent 4px);
  animation: twl-scrollcue 2.2s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}
@keyframes twl-scrollcue {
  0%, 100% { transform: translateY(0); opacity: .85; }
  50%      { transform: translateY(8px); opacity: .45; }
}

/* ---------- Secciones ---------- */
.section.section { padding-block: 6rem; position: relative; }
.section--soft.section--soft {
  background:
    radial-gradient(60% 90% at 8% 0%, rgba(78, 169, 213, .10), transparent 60%),
    radial-gradient(50% 80% at 96% 100%, rgba(23, 107, 224, .08), transparent 60%),
    var(--twl-soft);
}
.h2.h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.14;
  margin-bottom: 1.1rem;
}
.lede.lede { font-size: 1.08rem; color: #51626d; }

/* Imagen del bloque de dos columnas: marco y proporción generosa */
.grid-2.grid-2 { gap: 4rem; }
.rounded-img.rounded-img {
  border-radius: var(--twl-radius);
  box-shadow: var(--twl-shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  transition: transform .5s var(--twl-ease), box-shadow .5s var(--twl-ease);
}
.rounded-img.rounded-img:hover { transform: scale(1.02) rotate(.4deg); box-shadow: 0 30px 70px rgba(11, 36, 49, .22); }

/* ---------- Tarjetas ---------- */
.cards-3.cards-3 { gap: 2rem; }
.card.card {
  position: relative;
  border: 1px solid rgba(78, 169, 213, .18);
  border-radius: var(--twl-radius);
  box-shadow: var(--twl-shadow-sm);
  overflow: hidden;
  transition: transform .35s var(--twl-ease), box-shadow .35s var(--twl-ease), border-color .35s;
}
.card.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--twl-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--twl-ease);
}
.card.card:hover::after { transform: scaleX(1); }
.card.card:hover {
  transform: translateY(-8px);
  border-color: rgba(78, 169, 213, .45);
  box-shadow: var(--twl-shadow-lg);
}
.card.card img { transition: transform .6s var(--twl-ease); }
.card.card:hover img { transform: scale(1.06); }
.card.card h3 { font-size: 1.25rem; margin: 1.2rem 1.3rem .55rem; }
.card.card p  { margin: 0 1.3rem 1.5rem; line-height: 1.65; }

/* ---------- Casos de éxito ---------- */
.cases.cases { gap: 2rem; }
.case.case {
  border-radius: var(--twl-radius);
  border: 1px solid rgba(78, 169, 213, .18);
  box-shadow: var(--twl-shadow-sm);
  overflow: hidden;
  transition: transform .35s var(--twl-ease), box-shadow .35s var(--twl-ease);
}
.case.case:hover { transform: translateY(-8px); box-shadow: var(--twl-shadow-lg); }
.case.case img { transition: transform .7s var(--twl-ease); }
.case.case:hover img { transform: scale(1.05); }
.case__link.case__link { color: var(--twl-deep); transition: letter-spacing .3s var(--twl-ease); }
.case.case:hover .case__link { letter-spacing: .04em; }

/* ---------- Partners / logos ---------- */
.partners.partners { margin-top: 3.4rem; }
.partners.partners img { filter: none; opacity: 1; }

/* ---------- FAQ ---------- */
.faq__item.faq__item {
  border-radius: 16px;
  border: 1px solid rgba(78, 169, 213, .22);
  background: #fff;
  box-shadow: var(--twl-shadow-sm);
  padding: .4rem 1.5rem;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--twl-ease);
}
.faq__item.faq__item:hover { transform: translateY(-2px); border-color: rgba(78, 169, 213, .5); }
.faq__item.faq__item[open] { border-color: rgba(23, 107, 224, .45); box-shadow: var(--twl-shadow-md); }
.faq__item.faq__item summary::after {
  content: "+";
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--twl-deep);
  transition: transform .35s var(--twl-ease);
  line-height: 1;
}
.faq__item.faq__item[open] summary::after { content: "+"; transform: rotate(45deg); }
.faq__item.faq__item p { line-height: 1.7; }

/* ---------- CTA final ---------- */
.cta-final.cta-final {
  background:
    radial-gradient(80% 120% at 50% -20%, rgba(78, 169, 213, .22), transparent 60%),
    linear-gradient(135deg, var(--twl-navy) 0%, var(--twl-navy-2) 100%);
  color: #e8f4fa;
}
.cta-final.cta-final .h2 { color: #fff; }
.cta-final.cta-final .lede { color: #bcd9e6; }

/* ---------- Chips de zonas ---------- */
.twl-zonas li {
  background: #fff;
  border: 1px solid rgba(78, 169, 213, .35);
  box-shadow: var(--twl-shadow-sm);
  transition: transform .25s var(--twl-ease), box-shadow .25s, background .25s, color .25s;
}
.twl-zonas li:hover {
  background: var(--twl-grad);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

/* ---------- Formularios ---------- */
.contact-form.contact-form {
  background: #fff;
  border: 1px solid rgba(78, 169, 213, .25);
  border-radius: var(--twl-radius);
  box-shadow: var(--twl-shadow-md);
  padding: 2.4rem;
  /* El formulario suele vivir dentro de un contenedor centrado: las
     etiquetas y los campos tienen que alinearse a la izquierda igualmente. */
  text-align: left;
}
.contact-form.contact-form input,
.contact-form.contact-form textarea {
  border: 1.5px solid #d3e5ee;
  border-radius: 12px;
  padding: .9rem 1.1rem;
  transition: border-color .25s, box-shadow .25s;
}
/* El anillo del navegador se sustituye por uno propio con el mismo cometido:
   siempre queda una indicación visible de dónde está el foco. */
.contact-form.contact-form input:focus,
.contact-form.contact-form textarea:focus {
  outline: 2px solid transparent;
  outline-offset: 0;
  border-color: var(--twl-brand);
  box-shadow: 0 0 0 4px rgba(78, 169, 213, .22);
}
.contact-form.contact-form input:focus-visible,
.contact-form.contact-form textarea:focus-visible {
  border-color: var(--twl-deep);
  box-shadow: 0 0 0 4px rgba(23, 107, 224, .28);
}

/* ---------- Blog ---------- */
.post.post {
  border-radius: var(--twl-radius);
  border: 1px solid rgba(78, 169, 213, .18);
  box-shadow: var(--twl-shadow-sm);
  overflow: hidden;
  transition: transform .35s var(--twl-ease), box-shadow .35s var(--twl-ease);
  background: #fff;
}
.post.post:hover { transform: translateY(-8px); box-shadow: var(--twl-shadow-lg); }
.post.post img, .post__img.post__img { transition: transform .7s var(--twl-ease); }
.post.post:hover img { transform: scale(1.05); }
.post__link.post__link { color: var(--twl-deep); font-weight: 700; }

/* ---------- Precios ---------- */
.plan.plan {
  border-radius: var(--twl-radius);
  border: 1px solid rgba(78, 169, 213, .22);
  box-shadow: var(--twl-shadow-sm);
  background: #fff;
  transition: transform .35s var(--twl-ease), box-shadow .35s var(--twl-ease), border-color .35s;
}
.plan.plan:hover {
  transform: translateY(-8px);
  border-color: rgba(23, 107, 224, .45);
  box-shadow: var(--twl-shadow-lg);
}
/* El precio original es una insignia azul sólido con texto blanco:
   se mantiene la insignia pero con degradado de marca y sombra. */
.plan__price.plan__price {
  background: var(--twl-grad);
  color: #fff;
  font-weight: 800;
  font-style: normal;
  box-shadow: 0 6px 16px rgba(47, 142, 208, .35);
}
.price-banner.price-banner {
  background: var(--twl-grad);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(47, 142, 208, .3);
  font-style: normal;
  text-align: center;
  padding: 1.15rem 1.5rem;
  margin-top: var(--s-7);
  font-size: var(--fs-base);
  line-height: 1.5;
}
.price-banner.price-banner strong { font-size: 1.28rem; font-style: normal; letter-spacing: -.01em; }

/* ---------- Tarjetas de plan ---------- */
.plan.plan { display: flex; flex-direction: column; overflow: hidden; }
.plan__head { padding: clamp(1.5rem, 2.4vw, 1.9rem); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.plan__head p { margin: 0; font-size: var(--fs-sm); line-height: 1.6; color: #5a7080; }
.plan__price.plan__price {
  align-self: flex-start;
  margin-top: auto;
  padding: .6rem 1.35rem;
  border-radius: 999px;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}
.plan.plan > img { width: 100%; height: 210px; object-fit: cover; display: block; }
.plan__wa { align-self: flex-start; margin-top: auto; }
.feature.feature, .pill.pill {
  transition: transform .25s var(--twl-ease), box-shadow .25s;
}
.feature.feature:hover { transform: translateY(-4px); box-shadow: var(--twl-shadow-md); }

/* ---------- Portafolio: stats ---------- */
.stat__num.stat__num {
  background: var(--twl-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

/* ---------- Artículos (twl-*) ---------- */
.twl-articulo { line-height: 1.75; }
/* Solo sombra: las cajas de artículo conservan sus colores semánticos
   (info azul, alerta naranja, tip verde) definidos en cada página. */
.twl-caja { box-shadow: var(--twl-shadow-sm); }
.twl-imagen { border-radius: var(--twl-radius); box-shadow: var(--twl-shadow-md); overflow: hidden; }
.twl-imagen img { border-radius: inherit; }
.twl-paso-numero {
  background: var(--twl-grad) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(47, 142, 208, .4);
}
.twl-testimonio { box-shadow: var(--twl-shadow-md); }
/* Solo el botón primario (texto blanco !important en la página) recibe
   el degradado; el secundario conserva su estilo de borde con texto azul. */
.twl-btn {
  transition: transform .3s var(--twl-ease), box-shadow .3s;
}
.twl-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(23, 107, 224, .42); }
.twl-btn-primario {
  background: var(--twl-grad) !important;
  border: 0 !important;
  box-shadow: 0 8px 22px rgba(47, 142, 208, .38);
}

/* ---------- Página 404 ---------- */
.nf__code.nf__code {
  background: var(--twl-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

/* ---------- Footer ---------- */
.site-footer.site-footer {
  background:
    radial-gradient(70% 100% at 90% 0%, rgba(78, 169, 213, .14), transparent 60%),
    linear-gradient(160deg, var(--twl-navy) 0%, var(--twl-navy-2) 100%);
  position: relative;
}
.site-footer.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--twl-grad);
}
.site-footer__social.site-footer__social a {
  transition: transform .3s var(--twl-ease), background .3s;
}
.site-footer__social.site-footer__social a:hover { transform: translateY(-4px) scale(1.08); }

/* ---------- Botón flotante WhatsApp con pulso ---------- */
.wa-float.wa-float { box-shadow: 0 10px 26px rgba(31, 185, 88, .45); }
.wa-float.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .7);
  animation: twl-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes twl-pulse {
  0%   { transform: scale(1); opacity: .9; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- Revelado al hacer scroll (lo activa /js/twl.js) ---------- */
.twl-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--twl-ease), transform .8s var(--twl-ease);
  transition-delay: var(--twl-delay, 0s);
  will-change: opacity, transform;
}
.twl-reveal.twl-in { opacity: 1; transform: none; }

/* ---------- Accesibilidad: sin movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .twl-reveal { opacity: 1 !important; transform: none !important; }
  .hero__bg.hero__bg { transform: none; }
}

/* ---------- Ajustes móviles ---------- */
@media (max-width: 768px) {
  .section.section { padding-block: 3.8rem; }
  .hero.hero { min-height: 88vh; }
  .hero__inner.hero__inner { padding-block: 5rem; }
  .grid-2.grid-2 { gap: 2.2rem; }
  .hero.hero::before { display: none; }
  .contact-form.contact-form { padding: 1.6rem; }
}

/* ==========================================================================
   BLOQUE SEO 2026 — navegación con submenús, footer de enlaces, migas de pan
   y componentes de las páginas índice (hub) de zonas y sectores.
   ========================================================================== */

/* ---------- H1 del hero: antetítulo + titular dentro del mismo encabezado ---------- */
.hero__h1.hero__h1 { margin: 0 0 1.2rem; max-width: 100%; }
.hero__h1 .hero__eyebrow { display: inline-block; max-width: 100%; }
.hero__h1 .hero__title {
  display: block;
  font-size: clamp(2.1rem, 6.5vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  font-weight: 800;
  color: #fff;
  margin-top: .2rem;
}

/* ---------- Ningún texto largo debe ensanchar el documento ---------- */
html, body { overflow-x: clip; }
.hero__h1 .hero__title,
.hero__title.hero__title,
.hero__subtitle.hero__subtitle,
.h1.h1, .h2.h2, .card h3, .twl-hub__card h3, .faq__item summary h3 {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.hero__inner.hero__inner { max-width: 100%; }

/* En pantallas estrechas el titular tiene que caber sin recortarse */
@media (max-width: 560px) {
  .hero__h1 .hero__title,
  .hero__title.hero__title { font-size: clamp(1.85rem, 8.6vw, 2.6rem); line-height: 1.1; }
  .hero__eyebrow.hero__eyebrow { font-size: .78rem; letter-spacing: .1em; padding: .42rem .9rem; }
  .hero__subtitle.hero__subtitle { font-size: 1rem; }
  .hero__cta.hero__cta { font-size: 1rem; padding: .95rem 1.8rem; }
}

/* ---------- Submenús desplegables de la navegación ---------- */
.twl-drop { position: relative; display: inline-flex; }
.twl-drop__btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: .98rem;
  color: var(--twl-ink);
  padding: .5rem .85rem;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.twl-drop__btn:hover,
.twl-drop__btn[aria-expanded="true"] { color: var(--twl-brand-dark); background: rgba(78, 169, 213, .16); }
.twl-drop__caret {
  width: 0; height: 0;
  border-left: 4.5px solid transparent;
  border-right: 4.5px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform .25s var(--twl-ease);
}
.twl-drop__btn[aria-expanded="true"] .twl-drop__caret { transform: rotate(180deg); }

.twl-drop__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 268px;
  background: #fff;
  border: 1px solid rgba(78, 169, 213, .28);
  border-radius: 16px;
  box-shadow: var(--twl-shadow-lg);
  padding: .6rem;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s var(--twl-ease), transform .22s var(--twl-ease), visibility .22s;
  z-index: 120;
}
.twl-drop__panel::before {
  content: "";
  position: absolute;
  top: -12px; left: 0; right: 0; height: 12px;
}
.twl-drop:hover .twl-drop__panel,
.twl-drop:focus-within .twl-drop__panel,
.twl-drop__btn[aria-expanded="true"] + .twl-drop__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.twl-drop__title {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .095em;
  color: #5c7686;
  margin: .35rem .8rem .45rem;
}
.twl-drop__panel a {
  display: block;
  padding: .6rem .8rem;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--twl-ink);
  text-decoration: none;
  transition: background .18s, color .18s, padding-left .18s;
}
.twl-drop__panel a:hover {
  background: rgba(78, 169, 213, .14);
  color: var(--twl-deep);
  padding-left: 1.05rem;
}
.twl-drop__all {
  margin-top: .3rem;
  border-top: 1px solid #e6f0f5;
  color: var(--twl-deep) !important;
  font-weight: 700 !important;
}
.twl-drop__all::after { content: " →"; }

/* El menú de escritorio necesita más espacio: pasamos al menú móvil antes */
@media (max-width: 1120px) {
  .floatnav .floatnav__links { display: none; }
  .floatnav .floatnav__toggle { display: flex; }
  .floatnav .floatnav__mobile { display: flex; }
  .floatnav .floatnav__phone-num { display: none; }
}
@media (min-width: 1121px) {
  .floatnav .floatnav__mobile { display: none; }
}

/* ---------- Agrupaciones del menú móvil ---------- */
.twl-mgroup {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: #7d94a1;
  margin: .8rem 1rem .25rem;
}
.floatnav__mobile { max-height: 78vh; overflow-y: auto; overscroll-behavior: contain; }
.twl-msub.twl-msub { font-size: .98rem; padding-block: .62rem; padding-left: 1.5rem; position: relative; }
.twl-msub.twl-msub::before {
  content: "";
  position: absolute;
  left: .75rem; top: 50%;
  width: 5px; height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--twl-brand);
  opacity: .55;
}
.twl-msub--all.twl-msub--all { color: var(--twl-deep); font-weight: 700; }

/* ---------- Migas de pan ---------- */
.twl-breadcrumb {
  background: var(--twl-soft);
  border-bottom: 1px solid rgba(78, 169, 213, .16);
  padding: .85rem 0;
  font-size: .88rem;
}
.twl-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  list-style: none;
  margin: 0;
  padding: 0;
  /* #6b8291 daba 3.78:1 sobre el fondo claro: por debajo del mínimo AA */
  color: #4c6675;
}
.twl-breadcrumb li { display: flex; align-items: center; gap: .45rem; }
.twl-breadcrumb li + li::before { content: "›"; color: #a9c0cd; font-size: 1.05rem; line-height: 1; }
.twl-breadcrumb a { color: var(--twl-deep); text-decoration: none; font-weight: 600; }
.twl-breadcrumb a:hover { text-decoration: underline; }
.twl-breadcrumb [aria-current="page"] { color: #445d6b; font-weight: 600; }
.twl-breadcrumb li + li::before { color: #8aa3b1; }
/* La cabecera es fija. En las páginas sin hero, la banda de migas ocupa
   ese espacio en lugar de dejar un hueco blanco flotando bajo el menú. */
.twl-breadcrumb--top { padding-top: calc(84px + .85rem); }
@media (max-width: 768px) { .twl-breadcrumb--top { padding-top: calc(76px + .85rem); } }

/* ---------- Rejilla de tarjetas de las páginas índice (hub) ---------- */
.twl-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  margin-top: 2.6rem;
}
.twl-hub__card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  background: #fff;
  border: 1px solid rgba(78, 169, 213, .2);
  border-radius: var(--twl-radius);
  box-shadow: var(--twl-shadow-sm);
  padding: 1.6rem 1.5rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--twl-ease), box-shadow .3s var(--twl-ease), border-color .3s;
}
.twl-hub__card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--twl-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--twl-ease);
}
.twl-hub__card:hover { transform: translateY(-6px); border-color: rgba(78, 169, 213, .5); box-shadow: var(--twl-shadow-lg); }
.twl-hub__card:hover::after { transform: scaleX(1); }
.twl-hub__card h3 { font-size: 1.18rem; margin: 0; }
.twl-hub__card p { margin: 0; font-size: .96rem; line-height: 1.6; color: var(--twl-body); }
.twl-hub__card .twl-hub__cta { margin-top: auto; padding-top: .6rem; color: var(--twl-deep); font-weight: 700; font-size: .93rem; }
.twl-hub__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--twl-brand-dark);
  background: rgba(78, 169, 213, .14);
  border-radius: 999px;
  padding: .28rem .7rem;
}

/* ---------- Bloque de enlaces internos dentro del contenido ---------- */
.twl-linkbox {
  background: var(--twl-grad-soft);
  border: 1px solid rgba(78, 169, 213, .24);
  border-radius: var(--twl-radius);
  padding: 1.8rem 1.7rem;
  margin: 2.4rem 0;
}
.twl-linkbox__title { font-weight: 800; color: var(--twl-ink); margin: 0 0 1rem; font-size: 1.05rem; }
.twl-linkbox ul { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.twl-linkbox li a {
  display: inline-block;
  background: #fff;
  border: 1px solid rgba(78, 169, 213, .32);
  border-radius: 999px;
  padding: .48rem 1.05rem;
  font-size: .93rem;
  font-weight: 600;
  color: var(--twl-deep);
  text-decoration: none;
  box-shadow: var(--twl-shadow-sm);
  transition: transform .22s var(--twl-ease), background .22s, color .22s, border-color .22s;
}
.twl-linkbox li a:hover { background: var(--twl-grad); color: #fff; border-color: transparent; transform: translateY(-3px); }

/* ==========================================================================
   FORMULARIOS
   ========================================================================== */
.contact-form.contact-form { gap: 1.15rem; }

/* Etiqueta del campo */
.contact-form.contact-form label > span:first-child {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  font-size: .93rem;
  font-weight: 640;
  color: var(--twl-ink);
  letter-spacing: -.005em;
  margin-bottom: .15rem;
}
/* "opcional" en vez de asteriscos rojos: menos ruido y más claro */
.twl-opt {
  font-style: normal;
  font-size: .78rem;
  font-weight: 500;
  color: #7d95a4;
  background: rgba(78, 169, 213, .1);
  border-radius: 999px;
  padding: .12rem .55rem;
  letter-spacing: .01em;
}

.contact-form.contact-form input,
.contact-form.contact-form textarea {
  width: 100%;
  font-size: 1rem;
  min-height: 52px;
  background: #fcfeff;
  transition: border-color .22s var(--ease-out), box-shadow .22s var(--ease-out), background .22s;
}
.contact-form.contact-form textarea { min-height: 118px; line-height: 1.6; padding-top: .85rem; }
.contact-form.contact-form input::placeholder,
.contact-form.contact-form textarea::placeholder { color: #93a9b6; }
.contact-form.contact-form input:hover,
.contact-form.contact-form textarea:hover { border-color: rgba(78, 169, 213, .55); background: #fff; }

/* Validación: solo se avisa cuando el campo ya se ha usado */
.contact-form.contact-form input:user-invalid,
.contact-form.contact-form textarea:user-invalid {
  border-color: #d0574c;
  box-shadow: 0 0 0 3px rgba(208, 87, 76, .14);
}
.contact-form.contact-form input:user-valid:not(:placeholder-shown) { border-color: rgba(31, 185, 88, .5); }

/* Botón de envío: ancho propio, no ocupa toda la caja */
.contact-form .form-submit.form-submit {
  align-self: flex-start;
  margin-top: .35rem;
  padding-inline: 2.4rem;
  min-height: 52px;
}
.contact-form .form-submit[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Mensaje de estado */
.form-status.form-status {
  font-size: .93rem;
  line-height: 1.5;
  margin: 0;
  min-height: 0;
}
.form-status.form-status:not(:empty) {
  padding: .8rem 1.1rem;
  border-radius: 12px;
  border: 1px solid transparent;
}
.form-status.form-status.ok { background: #e9f6ef; border-color: rgba(31, 185, 88, .35); color: #14663f; }
.form-status.form-status.err { background: #fdeeec; border-color: rgba(208, 87, 76, .35); color: #96332a; }

/* Separador antes de las alternativas de contacto */
.twl-form-alt-sep {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: .6rem 0 0;
  font-size: .84rem;
  color: #8299a7;
}
.twl-form-alt-sep::before,
.twl-form-alt-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(78, 169, 213, .28);
}
.contact-alt { margin-top: .2rem; }

/* ---------- Consentimiento RGPD en formularios ---------- */
.twl-consent {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: .7rem;
  font-weight: 400 !important;
  font-size: .88rem;
  line-height: 1.55;
  color: #4c6675 !important;
  background: rgba(78, 169, 213, .06);
  border: 1px solid rgba(78, 169, 213, .18);
  border-radius: 12px;
  padding: .85rem 1rem !important;
  transition: border-color .22s, background .22s;
}
.twl-consent:hover { background: rgba(78, 169, 213, .1); border-color: rgba(78, 169, 213, .35); }
.twl-consent:has(input:checked) { border-color: rgba(31, 185, 88, .45); background: rgba(31, 185, 88, .07); }
.twl-consent input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: .1rem;
  accent-color: var(--twl-deep);
  padding: 0 !important;
  cursor: pointer;
}
.twl-consent { cursor: pointer; padding-block: .35rem; }
.twl-consent a { color: var(--twl-deep); font-weight: 600; }

/* ==========================================================================
   AVISO DE COOKIES
   Ni tapa el contenido ni bloquea la navegación: aparece abajo, ocupa lo justo
   y las dos opciones pesan lo mismo, como exige la normativa.
   ========================================================================== */
.twl-cookies {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 0 clamp(.75rem, 3vw, 1.5rem) clamp(.75rem, 3vw, 1.5rem);
  padding-bottom: max(clamp(.75rem, 3vw, 1.5rem), env(safe-area-inset-bottom));
  pointer-events: none;
  transform: translateY(120%);
  opacity: 0;
  transition: transform .38s var(--ease-out, cubic-bezier(.16, 1, .3, 1)), opacity .38s ease;
}
.twl-cookies.is-visible { transform: translateY(0); opacity: 1; }

.twl-cookies__box {
  pointer-events: auto;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.8rem;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(78, 169, 213, .3);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(11, 36, 49, .22);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  padding: 1.15rem clamp(1.1rem, 2.5vw, 1.6rem);
}
.twl-cookies__body { flex: 1 1 22rem; min-width: 0; }
.twl-cookies__title {
  margin: 0 0 .25rem;
  font-weight: 750;
  font-size: 1rem;
  color: var(--twl-ink, #0b2431);
}
.twl-cookies__text {
  margin: 0;
  font-size: .89rem;
  line-height: 1.55;
  color: #4c6675;
  max-width: 68ch;
}
.twl-cookies__text a { color: var(--twl-deep, #176be0); font-weight: 600; }

.twl-cookies__actions { display: flex; gap: .6rem; flex: 0 0 auto; }
.twl-cookies__btn {
  font: inherit;
  font-size: .93rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .72rem 1.5rem;
  min-height: 44px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease-out, ease), box-shadow .2s, background .2s, color .2s;
}
.twl-cookies__btn--main {
  background: var(--twl-grad, linear-gradient(120deg, #4ea9d5, #176be0));
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 142, 208, .32);
}
.twl-cookies__btn--main:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(23, 107, 224, .4); }
.twl-cookies__btn--ghost {
  background: #fff;
  color: #2b4b5c;
  border-color: rgba(78, 169, 213, .45);
}
.twl-cookies__btn--ghost:hover { background: #eef6fb; transform: translateY(-2px); }
.twl-cookies__btn:active { transform: translateY(0) scale(.985); }

@media (max-width: 620px) {
  .twl-cookies__box { padding: 1.05rem 1.1rem; gap: .9rem; }
  .twl-cookies__actions { width: 100%; }
  .twl-cookies__btn { flex: 1 1 0; padding-inline: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .twl-cookies { transition: none; transform: none; opacity: 1; }
}

/* Mientras el aviso está abierto, el botón flotante se aparta para no quedar
   debajo y seguir siendo accesible. */
body:has(.twl-cookies.is-visible) .wa-float {
  transform: translateY(-7rem);
  transition: transform .38s var(--ease-out, cubic-bezier(.16, 1, .3, 1));
}
@media (max-width: 620px) {
  body:has(.twl-cookies.is-visible) .wa-float { transform: translateY(-11rem); }
}

/* Enlace del pie para volver a decidir */
.twl-foot__legal button[data-cookies-open] {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #8fadbe;
  font-size: .85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color .2s;
}
.twl-foot__legal button[data-cookies-open]:hover { color: #fff; text-decoration: underline; }

/* ---------- Mapa que no se carga hasta que el usuario lo pide ---------- */
.twl-map-facade {
  position: relative;
  min-height: 420px;
  height: 100%;
  border-radius: var(--twl-radius);
  overflow: hidden;
  box-shadow: var(--twl-shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--twl-grad-soft);
}
.twl-map-facade > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.5) brightness(.92);
}
.twl-map-facade__body {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 340px;
  padding: 1.8rem 1.5rem;
  background: rgba(255, 255, 255, .93);
  border-radius: 16px;
  box-shadow: var(--twl-shadow-md);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.twl-map-facade__body p { margin: 0 0 .6rem; color: var(--twl-body); font-size: .96rem; }
.twl-map-facade__body p strong { color: var(--twl-ink); font-size: 1.08rem; }
.twl-map-facade__body .btn { margin: .5rem 0 .9rem; }
.twl-map-facade__body small { display: block; font-size: .78rem; line-height: 1.5; color: #7d94a1; }
.twl-map-facade__body small a { color: var(--twl-deep); }
.twl-map-facade.is-loaded { display: block; background: none; }

/* ==========================================================================
   PIE DE PÁGINA
   Cuatro columnas con pesos distintos: la marca manda, los tres bloques de
   enlaces son secundarios y comparten un mismo ritmo vertical.
   ========================================================================== */
.twl-foot {
  display: grid;
  grid-template-columns: 1.55fr .95fr .8fr 1fr;
  gap: clamp(2rem, 4.5vw, 4.2rem);
  padding-block: clamp(3rem, 6vw, 4.75rem) clamp(2.4rem, 4vw, 3.25rem);
  align-items: start;
}
.twl-foot__col { min-width: 0; }

/* --- Columna de marca --- */
.twl-foot__logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  margin-bottom: .95rem;
}
.twl-foot__logo img { width: 34px; height: 34px; border-radius: 9px; background: #fff; padding: 3px; }
.twl-foot__claim {
  color: #a9c6d6;
  font-size: .93rem;
  line-height: 1.65;
  margin: 0 0 1.5rem;
  max-width: 34ch;
}
.twl-foot__nap { display: flex; flex-direction: column; gap: .55rem; font-style: normal; margin-bottom: 1.5rem; }
.twl-foot__napline {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #cde1ec;
  font-size: .91rem;
  text-decoration: none;
  transition: color .2s var(--twl-ease);
}
.twl-foot__napline svg { flex: 0 0 auto; color: var(--twl-brand); }
a.twl-foot__napline:hover { color: #fff; }

/* Botón de WhatsApp del pie. La hoja original lo pinta en blanco con un
   selector de dos clases con scope, así que hace falta más especificidad. */
.site-footer .twl-foot__wa.twl-foot__wa {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: linear-gradient(120deg, #2ee06f, #1fb958);
  color: #06251a;
  border: 0;
  border-radius: 999px;
  padding: .78rem 1.4rem;
  font-weight: 700;
  font-size: .94rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(31, 185, 88, .28);
  transition: transform .22s var(--twl-ease), box-shadow .22s var(--twl-ease);
}
.site-footer .twl-foot__wa.twl-foot__wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(31, 185, 88, .38);
}

.twl-foot__social { display: flex; gap: .5rem; margin-top: 1.4rem; }
.twl-foot__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #b9d4e0;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: color .22s, background .22s, transform .22s var(--twl-ease);
}
.twl-foot__social a:hover { color: #fff; background: rgba(78, 169, 213, .28); transform: translateY(-2px); }

/* --- Columnas de enlaces --- */
.twl-foot__label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #93bed5;
  margin: 0 0 .95rem;
}
.twl-foot__label--mt { margin-top: 1.9rem; }
.twl-foot__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.twl-foot__list a {
  display: block;
  color: #c3dbe8;
  text-decoration: none;
  font-size: .92rem;
  line-height: 1.35;
  padding: .38rem 0;
  transition: color .2s var(--twl-ease), transform .2s var(--twl-ease);
}
.twl-foot__list a:hover { color: #fff; transform: translateX(3px); }
.twl-foot__all { color: #fff !important; font-weight: 650; }
.twl-foot__all::after { content: " →"; color: var(--twl-brand); }

/* --- Barra inferior --- */
.twl-foot__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.twl-foot__bottom-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .2rem 1.5rem;
  padding-block: .5rem;
}
.twl-foot__copy { margin: 0; color: #8fadbe; font-size: .85rem; }
.twl-foot__legal { display: flex; flex-wrap: wrap; gap: 0 1.35rem; }
/* 44px de alto: objetivo táctil cómodo en móvil */
.twl-foot__legal a {
  color: #8fadbe;
  font-size: .85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color .2s;
}
.twl-foot__legal a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 1080px) {
  .twl-foot { grid-template-columns: 1fr 1fr 1fr; }
  .twl-foot__col--brand { grid-column: 1 / -1; }
  .twl-foot__claim { max-width: 52ch; }
}
@media (max-width: 700px) {
  .twl-foot { grid-template-columns: 1fr 1fr; gap: 2.2rem 1.5rem; }
  .twl-foot__bottom-in { flex-direction: column; align-items: flex-start; gap: 0; padding-block: .8rem 1.2rem; }
  .twl-foot__legal { gap: 0 1.1rem; }
}
@media (max-width: 420px) {
  .twl-foot { grid-template-columns: 1fr; }
}

/* ==========================================================================
   REFINAMIENTO VISUAL
   Escala de espaciado y de texto unificadas, ritmo vertical entre secciones,
   y movimiento con una sola curva y una sola duración base.
   ========================================================================== */
:root {
  /* Escala de espaciado 4/8 */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 2.5rem;  --s-8: 3rem;
  --s-9: 4rem;    --s-10: 5rem;   --s-11: 6rem;   --s-12: 8rem;

  /* Ritmo vertical de las secciones: una sola fuente de verdad */
  --sec-y: clamp(3.25rem, 6.5vw, 5.5rem);

  /* Escala tipográfica modular */
  --fs-xs: .8rem;    --fs-sm: .9rem;    --fs-base: 1rem;
  --fs-md: 1.0625rem; --fs-lg: 1.1875rem;
  --fs-h3: clamp(1.1rem, 1.6vw, 1.28rem);
  --fs-h2: clamp(1.75rem, 3.1vw, 2.6rem);
  --fs-h1: clamp(2rem, 4.4vw, 3.05rem);

  /* Movimiento */
  --dur: .5s;
  --dur-fast: .22s;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  -webkit-tap-highlight-color: rgba(23, 107, 224, .12);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* El menú es fijo: un ancla no debe dejar el titular debajo de la barra */
:where(h1, h2, h3, h4, [id]) { scroll-margin-top: 6.5rem; }

/* Evita el retardo de 300 ms al tocar y el resalte gris del navegador */
a, button, summary, label, input, textarea, .twl-hub__card, .case, .post {
  touch-action: manipulation;
}

/* ---------- Ritmo vertical ---------- */
.section.section { padding-block: var(--sec-y); }
/* Dos secciones del mismo fondo seguidas se leen como un solo bloque:
   se elimina el aire duplicado entre ellas. */
.section--soft.section--soft + .section--soft.section--soft { padding-top: 0; }
.section:not(.section--soft):not(.cta-final) + .section:not(.section--soft):not(.cta-final) { padding-top: 0; }
/* Primera sección tras el hero a pantalla completa: no necesita tanto aire */
.hero + .section.section,
.twl-breadcrumb + .section.section { padding-top: clamp(2.75rem, 5vw, 4.25rem); }

/* ---------- Titulares ---------- */
.h1.h1 { font-size: var(--fs-h1); line-height: 1.12; letter-spacing: -.018em; text-wrap: balance; margin-bottom: var(--s-4); }
.h2.h2 { font-size: var(--fs-h2); line-height: 1.16; letter-spacing: -.016em; text-wrap: balance; margin-bottom: var(--s-4); }
.card h3, .twl-hub__card h3, .feature h3, .plan h2 { font-size: var(--fs-h3); letter-spacing: -.008em; text-wrap: balance; }
.lede.lede {
  font-size: var(--fs-md);
  line-height: 1.62;
  color: #55697a;
  max-width: 64ch;
  text-wrap: pretty;
  margin-bottom: var(--s-7);
}
.text-center > .lede.lede { margin-inline: auto; }
main p { text-wrap: pretty; }
/* Un titular de sección centrado y su entradilla forman una unidad */
.text-center > .h2.h2 { margin-bottom: var(--s-3); }

/* ---------- Tarjetas de sector y zona ---------- */
.twl-hub { gap: clamp(1.1rem, 2vw, 1.6rem); margin-top: var(--s-8); }
.twl-hub__card {
  padding: clamp(1.5rem, 2.4vw, 1.85rem);
  gap: var(--s-3);
  border-color: rgba(78, 169, 213, .22);
  background: linear-gradient(180deg, #fff 0%, #fcfeff 100%);
}
.twl-hub__card h3 { margin-top: var(--s-1); }
.twl-hub__card p { font-size: var(--fs-sm); line-height: 1.62; color: #5a7080; }
.twl-hub__card .twl-hub__cta {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding-top: var(--s-4);
  font-size: var(--fs-sm);
}
.twl-hub__card .twl-hub__cta::after { content: ""; }
/* 12px es el mínimo legible: por debajo, la etiqueta deja de leerse en móvil */
.twl-hub__tag { font-size: .75rem; letter-spacing: .085em; padding: .32rem .72rem; color: #2c7ba6; }
/* Icono de la tarjeta: anclado arriba a la derecha para no robar altura
   y hacer contrapeso a la etiqueta de la izquierda. */
.twl-hub__card { position: relative; }
.twl-hub__ico {
  position: absolute;
  top: clamp(1.3rem, 2.2vw, 1.65rem);
  right: clamp(1.3rem, 2.2vw, 1.65rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(78, 169, 213, .15), rgba(23, 107, 224, .1));
  color: var(--twl-brand-dark);
  transition: transform .3s var(--ease-out), background .3s var(--ease-out), color .3s;
}
.twl-hub__card:hover .twl-hub__ico {
  transform: rotate(-6deg) scale(1.08);
  background: var(--twl-grad);
  color: #fff;
}
/* El título no debe pasar por debajo del icono */
.twl-hub__card h3 { padding-right: 3.4rem; }

/* ---------- Tarjetas de servicio ---------- */
.card.card h3 { margin: var(--s-5) var(--s-5) var(--s-2); }
.card.card p  { margin: 0 var(--s-5) var(--s-6); font-size: var(--fs-sm); line-height: 1.66; }
.cards-3.cards-3 { gap: clamp(1.1rem, 2vw, 1.75rem); }

/* ---------- Bloque de enlaces internos ---------- */
.twl-linkbox { padding: clamp(1.4rem, 2.4vw, 1.9rem); margin-block: var(--s-8); }
.twl-linkbox__title { font-size: var(--fs-base); margin-bottom: var(--s-4); }
.twl-linkbox li a { padding: .5rem 1.05rem; font-size: var(--fs-sm); }

/* ==========================================================================
   PREGUNTAS FRECUENTES
   Estilo completo y autónomo. El del proyecto original solo alcanzaba a los
   bloques con un identificador concreto, así que las preguntas añadidas
   después salían sin formato: con el triángulo del navegador a la vista y el
   signo "+" descolgado bajo el texto. Aquí no se depende de ese atributo.
   ========================================================================== */
.faq {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  max-width: 900px;
  margin-inline: auto;
}

.faq .faq__item,
.faq__item.faq__item {
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(78, 169, 213, .22);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(11, 36, 49, .04);
  overflow: hidden;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s;
}
.faq__item.faq__item:hover { border-color: rgba(78, 169, 213, .5); box-shadow: 0 8px 22px rgba(11, 36, 49, .08); }
.faq__item.faq__item[open] {
  border-color: rgba(23, 107, 224, .4);
  box-shadow: 0 10px 28px rgba(11, 36, 49, .1);
}

/* --- La cabecera de cada pregunta --- */
.faq__item summary,
.faq__item.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  list-style: none;
  cursor: pointer;
  padding: 1.15rem clamp(1.1rem, 2.2vw, 1.5rem);
  margin: 0;
  transition: background .22s var(--ease-out);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::marker { content: ""; }
.faq__item summary:hover { background: rgba(78, 169, 213, .06); }
.faq__item[open] summary { background: rgba(78, 169, 213, .05); }

.faq__item summary h3,
.faq__item.faq__item summary h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.42;
  font-weight: 640;
  color: var(--twl-ink);
  letter-spacing: -.005em;
  flex: 1 1 auto;
  min-width: 0;
  transition: color .22s;
}
.faq__item summary:hover h3,
.faq__item[open] summary h3 { color: var(--twl-deep); }

/* --- Signo de abrir y cerrar, dibujado con dos trazos --- */
.faq__item.faq__item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 13px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 13px no-repeat,
    rgba(78, 169, 213, .12);
  color: var(--twl-brand-dark);
  transform: none;
  transition: transform .32s var(--ease-out), background-color .25s, color .25s;
}
.faq__item.faq__item summary:hover::after { background-color: rgba(78, 169, 213, .22); }
/* Al abrir, el trazo vertical desaparece y el signo gira: "+" pasa a ser "−" */
.faq__item.faq__item[open] summary::after {
  content: "";
  background:
    linear-gradient(currentColor, currentColor) center / 13px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 0 no-repeat,
    var(--twl-brand-dark);
  color: #fff;
  transform: rotate(180deg);
}

/* --- La respuesta --- */
.faq__item p,
.faq__item.faq__item p {
  margin: 0;
  padding: 0 clamp(1.1rem, 2.2vw, 1.5rem) 1.3rem;
  font-size: .96rem;
  line-height: 1.72;
  color: #4f6675;
  max-width: 68ch;
}
.faq__item[open] p { animation: twl-faq-in .34s var(--ease-out) both; }
@keyframes twl-faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .faq__item[open] p { animation: none; }
}

/* El titular de la sección comparte eje con la lista */
.container-tw:has(> .faq) > .h2,
.container-tw:has(> .faq) > .lede {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}
.container-tw:has(> .faq) > .h2 { margin-bottom: var(--s-7); }
/* Un titular centrado no lleva el acento lateral: quedaría suelto a un lado */
.twl-prosa:has(> .faq) > h2,
.container-tw:has(> .faq) > .h2 { padding-left: 0; }
.twl-prosa:has(> .faq) > h2::before,
.container-tw:has(> .faq) > .h2::before { display: none; }

/* ---------- Casos de éxito ---------- */
.cases.cases { gap: clamp(1.1rem, 2vw, 1.75rem); }
.case__body { padding: var(--s-5); }
.case__body h3 { font-size: var(--fs-h3); margin-bottom: var(--s-2); }
.case__body p { font-size: var(--fs-sm); line-height: 1.6; }

/* ---------- Movimiento unificado ---------- */
.twl-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: var(--twl-delay, 0s);
}
.twl-reveal.twl-in { opacity: 1; transform: none; }

/* Micro-interacciones: una sola duración corta en todo el sitio */
.btn.btn,
.card.card,
.case.case,
.plan.plan,
.twl-hub__card,
.twl-drop__panel a,
.floatnav__link,
.twl-linkbox li a { transition-duration: var(--dur-fast); transition-timing-function: var(--ease-out); }

.card.card:hover, .case.case:hover, .plan.plan:hover { transform: translateY(-6px); }
.twl-hub__card:hover { transform: translateY(-5px); }
.btn.btn:hover { transform: translateY(-2px); }
.btn.btn:active { transform: translateY(0) scale(.985); }

/* Foco visible y coherente en todo el sitio */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--twl-deep);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Detalles finos ---------- */
.partners.partners { margin-top: var(--s-8); gap: clamp(.8rem, 2vw, 1.4rem); }
.grid-2.grid-2 { gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.mt { margin-top: var(--s-7); }
.section .container-tw > .h2:first-child { margin-top: 0; }

/* Cifras alineadas en columnas */
.stat__num, .plan__price, .price-banner { font-variant-numeric: tabular-nums; }

@media (max-width: 768px) {
  .twl-hub { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CABECERA DE LAS PÁGINAS INTERNAS
   Antes había un corte seco: barra fija, franja blanca, banda azul con las
   migas y otra vez blanco. Ahora las migas y el titular comparten un mismo
   fondo que se apaga hacia el contenido, así la página empieza de una pieza.
   ========================================================================== */
/* El degradado se pinta sobre el contenedor principal, no sobre cada bloque:
   así las migas, el titular y la entradilla quedan dentro de una misma
   superficie que se apaga hacia el contenido, sin franjas ni cortes. */
main:has(> .twl-breadcrumb--top) {
  position: relative;
  background:
    radial-gradient(58% 100% at 12% 0%, rgba(78, 169, 213, .16), transparent 62%),
    radial-gradient(46% 88% at 92% 4%, rgba(23, 107, 224, .11), transparent 64%),
    linear-gradient(180deg, #e6f2f9 0%, #f2f9fc 46%, #fbfdfe 78%, #fff 100%);
  background-repeat: no-repeat;
  background-size: 100% 30rem, 100% 30rem, 100% 30rem;
}

.twl-breadcrumb--top {
  background: none;
  border-bottom: 0;
  padding-bottom: .35rem;
  position: relative;
  z-index: 1;
}

/* El bloque del titular vive dentro de esa misma superficie */
.twl-breadcrumb--top + .section.section {
  background: none;
  position: relative;
  z-index: 1;
  padding-top: clamp(1.5rem, 2.8vw, 2.4rem);
}
.twl-breadcrumb--top + .section .h1 { margin-top: 0; }
.twl-breadcrumb--top + .section .h1 + .lede { margin-top: .85rem; }

/* Línea de cierre muy tenue donde acaba la cabecera */
main:has(> .twl-breadcrumb--top) > .twl-breadcrumb--top + .section::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(1180px, calc(100% - 2.5rem));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(78, 169, 213, .3) 22%, rgba(78, 169, 213, .3) 78%, transparent);
}
/* Salvo cuando la propia sección ya trae contenido pesado debajo */
.twl-breadcrumb--top + .section:has(.plans)::after,
.twl-breadcrumb--top + .section:has(.cases)::after,
.twl-breadcrumb--top + .section:has(.posts)::after { display: none; }

/* ==========================================================================
   BLOQUES DE LECTURA
   Los textos largos necesitan ritmo: medida de línea corta, aire entre ideas,
   un acento antes de cada apartado y entrada escalonada al hacer scroll.
   ========================================================================== */
.twl-prosa { --prosa: 68ch; }

.twl-prosa > p,
.twl-prosa > ul,
.twl-prosa > ol {
  max-width: var(--prosa);
  font-size: 1.03rem;
  line-height: 1.78;
  color: #46596a;
  margin: 0 0 1.15rem;
}

/* Apartados: acento vertical + más aire por encima que por debajo */
.twl-prosa > h2,
.twl-prosa > h3 {
  position: relative;
  padding-left: 1.15rem;
  margin: 3.1rem 0 1.05rem;
  max-width: 26ch;
  line-height: 1.22;
  letter-spacing: -.014em;
  color: var(--twl-ink);
  text-wrap: balance;
}
.twl-prosa > h3 { font-size: clamp(1.22rem, 2.1vw, 1.45rem); max-width: 34ch; }
.twl-prosa > h2 { font-size: clamp(1.55rem, 2.8vw, 2.05rem); }
.twl-prosa > h2::before,
.twl-prosa > h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  bottom: .18em;
  width: 4px;
  border-radius: 4px;
  background: var(--twl-grad);
}
.twl-prosa > h3::before { background: rgba(78, 169, 213, .55); width: 3px; }
.twl-prosa > *:first-child { margin-top: 0; }

/* El párrafo que abre un apartado entra más grande: guía la lectura */
.twl-prosa > h2 + p {
  font-size: 1.13rem;
  line-height: 1.68;
  color: #344a5a;
  max-width: 62ch;
}

/* Las negritas del texto llevan el color de la marca, no solo más peso */
.twl-prosa strong { color: var(--twl-ink); font-weight: 660; }
.twl-prosa > h2 + p strong { color: var(--twl-deep); }

/* Enlaces dentro del texto: se ven sin gritar y se subrayan al pasar */
.twl-prosa a:not(.btn):not(.twl-linkbox a) {
  color: var(--twl-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(23, 107, 224, .32);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: text-decoration-color .2s var(--ease-out), color .2s;
}
.twl-prosa a:not(.btn):hover {
  color: var(--twl-brand-dark);
  text-decoration-color: currentColor;
}

/* Listas con marcador propio */
.twl-prosa > ul { list-style: none; padding-left: 0; }
.twl-prosa > ul > li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: .65rem;
}
.twl-prosa > ul > li::before {
  content: "";
  position: absolute;
  left: .1rem;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--twl-brand);
  transform: rotate(45deg);
}
.twl-prosa > ol { padding-left: 1.3rem; }
.twl-prosa > ol > li { margin-bottom: .65rem; padding-left: .35rem; }
.twl-prosa > ol > li::marker { color: var(--twl-deep); font-weight: 700; }

/* Párrafo destacado: rompe la mancha de texto y sube lo importante */
.twl-prosa .twl-destacado {
  max-width: var(--prosa);
  margin: 2rem 0;
  padding: 1.35rem 1.6rem;
  background: linear-gradient(135deg, rgba(78, 169, 213, .09), rgba(23, 107, 224, .05));
  border-left: 4px solid var(--twl-brand);
  border-radius: 0 14px 14px 0;
  font-size: 1.06rem;
  line-height: 1.7;
  color: #2f4757;
}
.twl-prosa .twl-destacado strong { color: var(--twl-deep); }

/* Cifra o dato suelto que merece verse de lejos */
.twl-prosa .twl-dato {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  max-width: var(--prosa);
  margin: 1.8rem 0;
  padding: 1.2rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(78, 169, 213, .28);
  border-radius: 16px;
  box-shadow: var(--twl-shadow-sm);
}
.twl-prosa .twl-dato__n {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  background: var(--twl-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}
.twl-prosa .twl-dato__t { font-size: .99rem; line-height: 1.55; color: #46596a; }

/* Separador entre bloques largos */
.twl-prosa .twl-sep {
  max-width: var(--prosa);
  height: 1px;
  margin: 2.6rem 0;
  border: 0;
  background: linear-gradient(90deg, rgba(78, 169, 213, .45), rgba(78, 169, 213, 0));
}

/* Entrada escalonada de cada bloque al llegar a la vista */
.twl-prosa > .twl-reveal { will-change: opacity, transform; }

@media (max-width: 640px) {
  .twl-prosa > p, .twl-prosa > ul, .twl-prosa > ol { font-size: 1rem; line-height: 1.72; }
  .twl-prosa > h2 + p { font-size: 1.06rem; }
  .twl-prosa > h2, .twl-prosa > h3 { padding-left: .9rem; margin-top: 2.4rem; }
  .twl-prosa .twl-destacado { padding: 1.15rem 1.2rem; font-size: 1.01rem; }
  .twl-prosa .twl-dato { flex-direction: column; gap: .35rem; padding: 1.1rem 1.2rem; }
}
