/* =========================================================
   Helvetia Seguros · Decesos
   Estilos globales (inspiración: layout tipo "Starbelly")
   ========================================================= */

:root {
  --primary: #000d6e;
  --primary-600: #0a1a8a;
  --primary-400: #2a3aa8;
  --primary-100: #e6e8f5;
  --primary-50: #f3f4fb;
  --ink: #0b1033;
  --text: #4a5072;
  --muted: #8a8fab;
  --line: #e4e6f1;
  --bg: #f7f8fc;
  --white: #ffffff;
  --success: #12805c;
  --danger: #c0392b;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(0, 13, 110, .06);
  --shadow: 0 10px 40px rgba(0, 13, 110, .08);
  --shadow-lg: 0 25px 60px rgba(0, 13, 110, .16);

  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 84px;
  --container: 1240px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; transition: color .3s; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--primary); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 600px) { .container { padding: 0 16px; } }

.icon--fill { fill: currentColor !important; stroke: none !important; }
.icon { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Apertura con la forma del rombo de Helvetia ----------
   Una capa azul con un "agujero" en forma de rombo (máscara) que crece
   desde el centro hasta descubrir toda la página, o se cierra al salir. */
@property --hole { syntax: "<length>"; inherits: false; initial-value: 0px; }
.preloader, .page-curtain {
  --hole: 0px;
  --rombo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 208'%3E%3Cpath d='M2.52 97.92c-3.36 3.36-3.36 8.8 0 12.15L93.93 201.48c3.36 3.36 8.8 3.36 12.15 0L197.49 110.07c3.36-3.36 3.36-8.8 0-12.15L106.08 6.52c-3.36-3.36-8.8-3.36-12.15 0Z'/%3E%3C/svg%3E");
  -webkit-mask: var(--rombo) center / var(--hole) var(--hole) no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: var(--rombo) center / var(--hole) var(--hole) no-repeat, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
@keyframes holeOpen { from { --hole: 0px; } to { --hole: 300vmax; } }
@keyframes holeClose { from { --hole: 300vmax; } to { --hole: 0px; } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.preloader__inner { text-align: center; transition: opacity .35s, transform .5s var(--ease); }
.preloader.is-done { animation: holeOpen 1.1s cubic-bezier(.7, 0, .25, 1) both; }
.preloader.is-done .preloader__inner { opacity: 0; transform: scale(.92); }
.preloader__logo { width: 180px; margin: 0 auto 28px; opacity: .95; }
.preloader__bar { width: 220px; height: 3px; background: rgba(255,255,255,.18); border-radius: 3px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: #fff; transition: width .2s linear; }
.preloader__pct { margin-top: 14px; font-size: 14px; letter-spacing: .2em; opacity: .7; }

/* ---------- Transición entre páginas ----------
   Al llegar a una página el rombo se abre; al pulsar un enlace se cierra
   y en el centro aparece el icono de Helvetia. */
.page-curtain {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--primary);
  pointer-events: none;
  animation: holeOpen 1s cubic-bezier(.7, 0, .25, 1) .05s both;
}
.page-curtain::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 67px; margin: -33px 0 0 -32px;
  background: url("../assets/img/icono-helvetia-blanco.svg") center / contain no-repeat;
  opacity: 0; transform: scale(.6);
  animation: iconOut .5s ease-in both;
}
@keyframes iconOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(1.4); } }
.page-curtain.is-in { animation: holeClose .55s cubic-bezier(.6, 0, .4, 1) both; }
.page-curtain.is-in::after { animation: none; opacity: 1; transform: none; transition: opacity .3s .3s, transform .5s var(--ease) .3s; }
.page { animation: pageIn .8s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  height: 54px;
  padding: 0 26px 0 6px;
  border: 0; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 500; font-size: 15px; letter-spacing: .02em;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 13, 110, .22);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  overflow: hidden;
}
.btn__icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14);
  transition: transform .4s var(--ease);
}
.btn__icon .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 13, 110, .3); color: var(--btn-fg); }
.btn:hover .btn__icon { transform: rotate(-8deg) scale(1.08); }
.btn:active { transform: translateY(0); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--primary); box-shadow: var(--shadow-sm); }
.btn--light .btn__icon { background: var(--primary-100); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary-100); }
.btn--ghost .btn__icon { background: var(--primary-50); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn--sm { height: 44px; padding: 0 18px 0 4px; font-size: 14px; gap: 10px; }
.btn--sm .btn__icon { width: 36px; height: 36px; border-radius: 8px; }
.btn--plain { padding: 0 26px; }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }
.btn--wa { --btn-bg: #1faa53; box-shadow: 0 8px 24px rgba(31, 170, 83, .25); }
.btn--wa:hover { box-shadow: 0 14px 30px rgba(31, 170, 83, .35); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 850;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(37, 211, 102, .4);
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s var(--ease);
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: waPulse 2.4s ease-out infinite; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float__label {
  position: absolute; right: 70px; white-space: nowrap; padding: 8px 14px; border-radius: 10px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; box-shadow: var(--shadow);
  opacity: 0; transform: translateX(10px); transition: .3s var(--ease); pointer-events: none;
}
.wa-float:hover .wa-float__label { opacity: 1; transform: none; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 560px) { .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; } .wa-float__label { display: none; } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* ---------- Header ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s, box-shadow .4s, height .4s;
}
.topbar.is-scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); height: 72px; }
.topbar .container { display: flex; align-items: center; gap: 30px; }
.topbar__logo img { height: 30px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a {
  position: relative; display: block; padding: 8px 14px;
  color: var(--ink); font-weight: 500; font-size: 15px;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.cart-btn, .burger {
  position: relative; width: 48px; height: 48px; border-radius: 12px;
  border: 0; background: var(--primary); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease);
}
.cart-btn:hover { transform: translateY(-2px); }
.cart-btn .icon { width: 22px; height: 22px; }
.cart-btn__count {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: #fff; color: var(--primary);
  font-size: 12px; font-weight: 600; line-height: 22px; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transform: scale(0); transition: transform .4s var(--ease);
}
.cart-btn__count.is-visible { transform: scale(1); }
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.94); } }
.burger { display: none; background: var(--primary-50); color: var(--primary); }
.user-btn {
  position: relative; width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-50); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.user-btn .icon { width: 22px; height: 22px; }
.user-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.user-btn__label {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, -4px);
  padding: 6px 12px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: .25s var(--ease);
}
.user-btn:hover .user-btn__label, .user-btn:focus-visible .user-btn__label { opacity: 1; transform: translate(-50%, 0); }
.burger span, .burger span::before, .burger span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: .3s;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after { top: 0; transform: rotate(-45deg); }
.topbar__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); margin-right: 8px; }
.topbar__phone .icon { color: var(--primary); }

@media (max-width: 1080px) {
  .topbar__phone { display: none; }
}
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw);
    background: #fff; box-shadow: var(--shadow-lg);
    padding: 100px 28px 30px;
    transform: translateX(105%); visibility: hidden;
    transition: transform .5s var(--ease), visibility 0s linear .5s;
    z-index: -1;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .5s var(--ease); }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a { font-size: 20px; padding: 10px 0; }
  .nav a::after { left: 0; right: auto; width: 30px; }
  .topbar__actions { margin-left: auto; }
}

/* ---------- Minicart (drawer) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 950; background: rgba(11, 16, 51, .45);
  opacity: 0; visibility: hidden; transition: .4s;
}
.overlay.is-visible { opacity: 1; visibility: visible; }
.minicart {
  position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 960;
  width: min(420px, calc(100vw - 24px));
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(calc(100% + 24px)); visibility: hidden;
  transition: transform .55s var(--ease), visibility 0s linear .55s;
}
.minicart.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease); }
.minicart__head { display: flex; align-items: center; justify-content: space-between; padding: 24px 26px; border-bottom: 1px dashed var(--line); }
.minicart__head h3 { margin: 0; }
.minicart__close { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--primary-50); color: var(--primary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .3s; }
.minicart__close:hover { transform: rotate(90deg); }
.minicart__body { flex: 1; overflow-y: auto; padding: 10px 26px; }
.minicart__foot { padding: 20px 26px 26px; border-top: 1px dashed var(--line); }
.minicart__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; color: var(--ink); }
.minicart__total strong { font-size: 1.4rem; font-weight: 600; }
.minicart__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.minicart__btns .btn { justify-content: center; padding: 0 12px; }
.mini-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); animation: pageIn .5s var(--ease) both; }
.mini-item:last-child { border-bottom: 0; }
.mini-item__icon { width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.mini-item__icon .icon { width: 26px; height: 26px; }
.mini-item__info { flex: 1; min-width: 0; }
.mini-item__info h4 { margin: 0 0 2px; font-size: 15px; }
.mini-item__info small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.mini-item__price { font-weight: 600; color: var(--ink); white-space: nowrap; }
.mini-item__remove { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; font-size: 13px; text-decoration: underline; }
.mini-item__remove:hover { color: var(--danger); }
.empty-state { text-align: center; padding: 50px 10px; color: var(--muted); }
.empty-state .icon { width: 48px; height: 48px; margin: 0 auto 14px; color: var(--primary-100); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 990;
  transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: 14px; background: var(--ink); color: #fff;
  box-shadow: var(--shadow-lg); transition: transform .5s var(--ease); font-size: 15px;
  max-width: calc(100vw - 32px);
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; }
.toast .icon { color: #7ef0c3; }

/* ---------- Sections / titles ---------- */
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 70px 0; }
.section--white { background: #fff; }
@media (max-width: 768px) { .section { padding: 70px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.title-dashed { position: relative; margin-bottom: 24px; }
.title-dashed::after { display: none;
  content: ""; position: absolute; left: 0; bottom: 0; width: 90px; height: 3px;
  background-image: linear-gradient(90deg, var(--primary) 50%, transparent 50%);
  background-size: 12px 3px;
}
.text-center .title-dashed::after { left: 50%; transform: translateX(-50%); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 50px; flex-wrap: wrap; }
.section-head > div { max-width: 640px; }
.section-head p { margin: 0; }
.text-center { text-align: center; }
.lead { font-size: 1.15rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 70px) 0 120px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -20%; right: -10%; width: 62%; height: 130%;
  background: var(--primary-50); border-radius: 0 0 0 220px; z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; margin-bottom: 26px;
  background: #fff; border-radius: 40px; box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 500; color: var(--ink);
}
.hero__tag b { background: var(--primary); color: #fff; padding: 3px 12px; border-radius: 30px; font-weight: 500; }
.hero h1 span { color: var(--primary); position: relative; }
.hero h1 span svg { position: absolute; left: 0; bottom: -10px; width: 100%; height: 14px; }
.hero h1 span svg path { stroke: var(--primary); stroke-width: 3; fill: none; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.4s 1.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__text { font-size: 1.15rem; max-width: 520px; margin-bottom: 36px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 40px; padding: 0; list-style: none; }
.hero__checks li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); }
.hero__checks .icon { color: var(--primary); }

.hero__visual { position: relative; height: 540px; }
.hero__circle {
  position: absolute; top: 50%; left: 50%; width: min(460px, 92%); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--primary-400), var(--primary) 70%);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero__circle::before, .hero__circle::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,.25);
}
.hero__circle::before { inset: 40px; animation: spin 60s linear infinite; }
.hero__circle::after { inset: 100px; animation: spin 40s linear infinite reverse; }
.hero__illu { width: 62%; color: #fff; position: relative; z-index: 1; }
.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 14px; background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.35; color: var(--ink); font-weight: 500;
  animation: float 6s ease-in-out infinite;
}
.float-card small { display: block; color: var(--muted); font-weight: 400; }
.float-card__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.float-card--1 { top: 50px; left: -20px; }
.float-card--2 { top: 46%; right: -30px; animation-delay: -2s; }
.float-card--3 { bottom: 40px; left: 20px; animation-delay: -4s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes spin { to { transform: rotate(360deg); } }

.rotating-badge {
  position: absolute; z-index: 3; right: 40px; top: 0;
  width: 130px; height: 130px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.rotating-badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.rotating-badge text { font-size: 10.5px; letter-spacing: 3.2px; text-transform: uppercase; fill: var(--primary); font-weight: 500; }
.rotating-badge strong { font-size: 26px; font-weight: 600; line-height: 1; text-align: center; }
.rotating-badge strong small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .1em; }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero::before { width: 100%; height: 55%; top: auto; bottom: 0; right: 0; border-radius: 120px 0 0 0; }
  .hero__visual { height: 460px; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) {
  .hero { padding-bottom: 80px; }
  .hero__visual { height: 380px; }
  .hero__circle { width: min(320px, 86%); }
  .float-card { font-size: 13px; padding: 10px 14px 10px 10px; }
  .float-card__ico { width: 36px; height: 36px; }
  .float-card--1 { left: 0; }
  .float-card--2 { right: 0; }
  .rotating-badge { width: 100px; height: 100px; right: 10px; }
  .rotating-badge text { font-size: 8.5px; }
  .rotating-badge strong { font-size: 20px; }
}

/* ---------- Features 01/02/03 ---------- */
.features { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.features__list { display: grid; gap: 34px; margin-top: 40px; }
.feature { display: grid; grid-template-columns: 64px 1fr; gap: 22px; }
.feature__num {
  width: 64px; height: 64px; border-radius: 16px; background: var(--primary-50); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600;
  transition: .4s var(--ease);
}
.feature:hover .feature__num { background: var(--primary); color: #fff; transform: rotate(-6deg); }
.feature h4 { margin-bottom: 4px; }
.feature p { margin: 0; }
.features__media { position: relative; }
.media-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.2;
  background: linear-gradient(160deg, var(--primary-400), var(--primary));
  display: flex; align-items: flex-end; padding: 40px; color: #fff;
}
.media-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
  transform: scale(1.08); transition: transform 1.6s var(--ease);
}
.media-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0, 13, 110, 0) 30%, rgba(0, 13, 110, .55) 60%, rgba(0, 10, 84, .92) 100%);
}
.media-card blockquote { z-index: 2; }
.features__media.is-visible .media-card__img { transform: scale(1); }
.media-card:hover .media-card__img { transform: scale(1.04); }
.media-card blockquote { margin: 0; font-size: 1.4rem; line-height: 1.45; position: relative; max-width: 420px; }
.media-card blockquote cite { display: block; margin-top: 14px; font-size: 14px; font-style: normal; opacity: .7; }
.stat-card {
  position: absolute; left: -40px; top: 40px; padding: 26px 30px; border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow); text-align: center;
}
.stat-card strong { display: block; font-size: 3rem; line-height: 1; color: var(--primary); font-weight: 600; }
.stat-card > span { font-size: 14px; color: var(--ink); }
@media (max-width: 980px) {
  .features { grid-template-columns: 1fr; gap: 50px; }
  .stat-card { left: 16px; top: 16px; padding: 18px 22px; }
  .stat-card strong { font-size: 2.2rem; }
}

/* ---------- Cards grid (coberturas) ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1080px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: #fff; border-radius: var(--radius-lg); padding: 34px 30px;
  box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  overflow: hidden;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card__icon {
  width: 66px; height: 66px; border-radius: 18px; margin-bottom: 26px;
  background: var(--primary-50); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  transition: .5s var(--ease);
}
.card__icon .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.card:hover .card__icon { background: var(--primary); color: #fff; transform: scale(1.06) rotate(-6deg); }
.card h3 { font-size: 1.2rem; }
.card p { margin: 0; font-size: 15px; }
.card p + p { margin-top: 12px; }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; }
.card ul li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.card ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--primary); }
.card__more { margin-top: 18px; }
.card--dark { background: var(--primary); color: rgba(255,255,255,.8); }
.card--dark h3 { color: #fff; }
.card--dark .card__icon { background: rgba(255,255,255,.12); color: #fff; }
.card--dark ul li::before { background: #fff; }

/* Foto suave de fondo en las tarjetas de coberturas */
.card__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  opacity: .2; filter: grayscale(1) contrast(1.05);
  -webkit-mask-image: linear-gradient(200deg, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%);
          mask-image: linear-gradient(200deg, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%);
  transform: scale(1.06); transition: opacity .6s var(--ease), transform 1.2s var(--ease);
  pointer-events: none;
}
.card:has(.card__bg) > :not(.card__bg) { position: relative; z-index: 1; }
.card:hover .card__bg { opacity: .3; transform: scale(1); }
.card--dark .card__bg { opacity: .32; mix-blend-mode: luminosity; }
.card--dark:hover .card__bg { opacity: .42; }
.card__corner { position: absolute; top: 22px; right: 26px; font-size: 13px; color: var(--muted); font-weight: 500; }

/* ---------- Product cards ---------- */
.product {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.product:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.product__cover {
  position: relative; height: 210px; padding: 28px;
  background: linear-gradient(140deg, var(--primary-400), var(--primary));
  color: #fff; display: flex; align-items: flex-end; overflow: hidden;
}
.product__cover--alt { background: linear-gradient(140deg, #3c4cb8, #000a54); }
.product__cover--light { background: var(--primary-50); color: var(--primary); }
.product__cover .big-ico { position: absolute; right: -20px; top: -20px; width: 200px; height: 200px; opacity: .14; stroke-width: 1; transition: transform .8s var(--ease); }
.product:hover .big-ico { transform: rotate(-12deg) scale(1.08); }
.product__badge { position: absolute; top: 22px; left: 22px; padding: 5px 12px; border-radius: 20px; background: #fff; color: var(--primary); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.product__cover h3 { color: inherit; margin: 0; font-size: 1.5rem; position: relative; }
.product__body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.product__body ul { margin: 0 0 24px; padding: 0; list-style: none; font-size: 15px; }
.product__body li { display: flex; gap: 10px; margin-bottom: 8px; align-items: flex-start; }
.product__body li .icon { color: var(--primary); margin-top: 4px; width: 16px; height: 16px; }
.product__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 22px; border-top: 1px dashed var(--line); }
.price { color: var(--ink); line-height: 1.1; }
.price small { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.price strong { font-size: 1.8rem; font-weight: 600; }
.price span { font-size: 14px; color: var(--muted); }

/* ---------- Slider (servicios) ---------- */
.slider { position: relative; }
.slider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px 4px 30px; margin: -10px -4px 0;
  cursor: grab;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.slider__track > * { scroll-snap-align: start; }
.slider__nav { display: flex; gap: 10px; }
.slider__nav button {
  width: 52px; height: 52px; border-radius: 14px; border: 0; cursor: pointer;
  background: #fff; color: var(--primary); box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; justify-content: center; transition: .3s var(--ease);
}
.slider__nav button:hover { background: var(--primary); color: #fff; }
@media (max-width: 1080px) { .slider__track { grid-auto-columns: calc((100% - 48px) / 3); } }
@media (max-width: 800px) { .slider__track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 560px) { .slider__track { grid-auto-columns: 82%; } }

/* ---------- Promo band (mascotas) ---------- */
.promo {
  position: relative; border-radius: 30px; overflow: hidden;
  background: var(--primary); color: rgba(255,255,255,.82);
  padding: 70px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.promo h2 { color: #fff; }
.promo h2 em { font-style: normal; border-bottom: 3px dashed rgba(255,255,255,.5); }
.promo__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 26px 0 34px; padding: 0; list-style: none; font-size: 15px; }
.promo__list li { display: flex; gap: 10px; align-items: flex-start; }
.promo__list .icon { color: #fff; margin-top: 4px; width: 16px; height: 16px; }
.promo__art { position: relative; height: 340px; }
.promo__blob { position: absolute; inset: 0; margin: auto; width: 320px; height: 320px; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; background: rgba(255,255,255,.08); animation: morph 10s ease-in-out infinite; }
.promo__blob--2 { width: 250px; height: 250px; background: rgba(255,255,255,.08); animation-delay: -5s; }
.promo__art svg.paw { position: absolute; inset: 0; margin: auto; width: 170px; height: 170px; color: #fff; stroke-width: 1.2; }
.promo__note { font-size: 12px; opacity: .6; margin-top: 18px; }
.promo::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.2); }
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: rotate(0); }
  50% { border-radius: 63% 37% 41% 59% / 56% 59% 41% 44%; transform: rotate(30deg); }
}
@media (max-width: 900px) {
  .promo { grid-template-columns: 1fr; padding: 50px 28px; }
  .promo__art { height: 240px; order: -1; }
  .promo__blob { width: 220px; height: 220px; }
  .promo__blob--2 { width: 170px; height: 170px; }
  .promo__art svg.paw { width: 110px; height: 110px; }
}
@media (max-width: 560px) { .promo__list { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; text-align: center; padding: 0 20px; }
.step__num {
  position: relative; width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.step__num .icon { width: 36px; height: 36px; stroke-width: 1.5; }
.step__num::after {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -4px; right: -4px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.steps .step:not(:last-child)::before {
  content: ""; position: absolute; top: 48px; left: calc(50% + 70px); right: calc(-50% + 70px);
  border-top: 2px dashed var(--primary-100);
}
@media (max-width: 900px) { .steps .step::before { display: none; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; }
.faq__aside { position: sticky; top: 110px; align-self: start; }
.accordion { display: grid; gap: 14px; }
.acc { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .3s; }
.acc.is-open { box-shadow: var(--shadow); }
.acc__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px; border: 0; background: none; text-align: left; cursor: pointer;
  font-weight: 500; font-size: 16.5px; color: var(--ink);
}
.acc__plus { position: relative; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-50); flex-shrink: 0; transition: .4s var(--ease); }
.acc__plus::before, .acc__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--primary); transform: translate(-50%, -50%); transition: .4s var(--ease); }
.acc__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc.is-open .acc__plus { background: var(--primary); }
.acc.is-open .acc__plus::before, .acc.is-open .acc__plus::after { background: #fff; }
.acc.is-open .acc__plus::after { transform: translate(-50%, -50%) rotate(0); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc.is-open .acc__a { grid-template-rows: 1fr; }
.acc__a > div { overflow: hidden; }
.acc__a p { padding: 0 26px 22px; margin: 0; font-size: 15px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 30px; } .faq__aside { position: static; } }

/* ---------- CTA band ---------- */
.cta {
  border-radius: 30px; padding: 60px 70px;
  background: #fff; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta::before { content: ""; position: absolute; left: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--primary-50); }
.cta > * { position: relative; }
.cta h2 { margin-bottom: 6px; }
.cta p { margin: 0; }
.cta__phone { display: flex; align-items: center; gap: 16px; color: var(--ink); }
.cta__phone .ico { width: 60px; height: 60px; border-radius: 16px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; animation: ring 3s ease-in-out infinite; }
.cta__phone strong { display: block; font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.cta__phone small { color: var(--muted); }
@keyframes ring { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-12deg); } 88% { transform: rotate(12deg); } 92% { transform: rotate(-8deg); } 96% { transform: rotate(6deg); } }
@media (max-width: 700px) { .cta { padding: 40px 26px; } }

/* ---------- Page banner ---------- */
.banner { padding: calc(var(--header-h) + 70px) 0 70px; background: var(--primary-50); position: relative; overflow: hidden; }
.banner::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px dashed var(--primary-100); }
.banner::before { content: ""; position: absolute; right: 60px; bottom: -160px; width: 300px; height: 300px; border-radius: 50%; background: #fff; opacity: .7; }
.banner .container { position: relative; z-index: 1; }
.banner h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 12px; }
.breadcrumbs { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; }
.breadcrumbs a { color: var(--ink); }

/* ---------- Shop / configurator ---------- */
.shop { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 1000px) { .shop { grid-template-columns: 1fr; } }
.panel { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 34px; }
@media (max-width: 560px) { .panel { padding: 24px 18px; } }
.panel + .panel { margin-top: 24px; }
.panel__title { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.panel__title span { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.panel__title h3 { margin: 0; }
.sticky { position: sticky; top: 100px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box {
  height: 100%; padding: 22px; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fff;
  transition: .3s var(--ease);
}
.choice__box h4 { margin: 0 0 4px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.choice__box p { margin: 0; font-size: 14px; }
.choice__check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); flex-shrink: 0; transition: .3s; position: relative; }
.choice input:checked + .choice__box { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.choice input:checked + .choice__box .choice__check { border-color: var(--primary); background: var(--primary); }
.choice input:checked + .choice__box .choice__check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--primary); outline-offset: 2px; }
.choice__meta { display: block; margin-top: 10px; font-size: 13px; color: var(--primary); font-weight: 500; }

.addon { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); border: 1.5px solid var(--line); cursor: pointer; transition: .3s; }
.addon + .addon { margin-top: 12px; }
.addon:hover { border-color: var(--primary-100); }
.addon input { width: 20px; height: 20px; accent-color: var(--primary); flex-shrink: 0; }
.addon__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.addon__info { flex: 1; min-width: 0; }
.addon__info strong { display: block; color: var(--ink); font-weight: 500; }
.addon__info small { display: block; font-size: 13px; line-height: 1.5; }
.addon__price { font-weight: 600; color: var(--ink); white-space: nowrap; font-size: 15px; }
.addon.is-checked { border-color: var(--primary); background: var(--primary-50); }
.addon.is-disabled { opacity: .45; pointer-events: none; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg);
  transition: border-color .3s, box-shadow .3s, background .3s; outline: none;
}
.field textarea { height: auto; min-height: 110px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-50); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field__error { display: none; font-size: 13px; color: var(--danger); margin-top: 5px; }
.field.has-error .field__error { display: block; }
.field__hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex-shrink: 0; }
.check + .check { margin-top: 12px; }
.check.has-error { color: var(--danger); }

.insured { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 12px; align-items: end; padding: 16px; border-radius: var(--radius); background: var(--bg); animation: pageIn .4s var(--ease) both; }
.insured + .insured { margin-top: 12px; }
.insured .field label { font-size: 13px; }
.insured .field input, .insured .field select { height: 46px; background: #fff; }
.insured__remove { width: 46px; height: 46px; border-radius: 12px; border: 0; background: #fff; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: .3s; }
.insured__remove:hover { color: var(--danger); }
.insured__remove[disabled] { opacity: .3; pointer-events: none; }
@media (max-width: 640px) { .insured { grid-template-columns: 1fr 1fr; } .insured .field:first-child { grid-column: 1 / -1; } }

.add-insured { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; border: 1.5px dashed var(--primary-100); background: none; padding: 12px 18px; border-radius: 12px; color: var(--primary); font-weight: 500; cursor: pointer; transition: .3s; }
.add-insured:hover { border-color: var(--primary); background: var(--primary-50); }

.summary h3 { margin-bottom: 18px; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.summary__row span:last-child { color: var(--ink); font-weight: 500; text-align: right; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; color: var(--ink); }
.summary__total strong { font-size: 2.2rem; font-weight: 600; color: var(--primary); line-height: 1; }
.summary__total strong small { font-size: 14px; color: var(--muted); font-weight: 400; }
.summary__note { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 16px; }
.price-flash { animation: flash .5s var(--ease); }
@keyframes flash { 40% { transform: scale(1.08); } }

/* ---------- Cart page ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-row { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px dashed var(--line); }
.cart-row:first-child { padding-top: 0; }
.cart-row__ico { width: 64px; height: 64px; border-radius: 16px; background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.cart-row__ico .icon { width: 28px; height: 28px; }
.cart-row h4 { margin: 0 0 4px; }
.cart-row ul { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); line-height: 1.6; }
.cart-row__price { font-weight: 600; color: var(--ink); font-size: 1.15rem; white-space: nowrap; text-align: right; }
.cart-row__price small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--bg); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: .3s; }
.icon-btn:hover { background: #fde8e6; color: var(--danger); }
@media (max-width: 640px) {
  .cart-row { grid-template-columns: 48px 1fr auto; gap: 14px; }
  .cart-row__ico { width: 48px; height: 48px; }
  .cart-row__price { grid-column: 2; text-align: left; }
  .cart-row .icon-btn { grid-row: 1; grid-column: 3; }
}

/* ---------- Checkout success ---------- */
.success { text-align: center; max-width: 620px; margin: 0 auto; }
.success__ico { width: 110px; height: 110px; margin: 0 auto 30px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 14px var(--primary-50); animation: pop .7s var(--ease) both; }
.success__ico .icon { width: 50px; height: 50px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(0); } 70% { transform: scale(1.1); } to { transform: scale(1); } }
.ref { display: inline-block; padding: 8px 18px; background: var(--primary-50); color: var(--primary); border-radius: 10px; font-weight: 600; letter-spacing: .05em; margin: 10px 0 30px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 90px 0 0; margin-top: 110px; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; right: -150px; top: -150px; width: 400px; height: 400px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.1); }
.footer a { color: rgba(255,255,255,.65); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; }
.footer__logo img { height: 30px; width: auto; margin-bottom: 22px; }
.footer h5 { color: #fff; font-size: 16px; margin-bottom: 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.footer li { margin-bottom: 10px; }
.footer__contact li { display: flex; gap: 10px; }
.footer__contact .icon { color: #fff; margin-top: 4px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 26px 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (max-width: 980px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal].is-visible { opacity: 1; transform: none; }

.back-top {
  position: fixed; right: 28px; bottom: 96px; z-index: 800;
  width: 50px; height: 50px; border-radius: 14px; border: 0; cursor: pointer;
  background: #fff; color: var(--primary); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px); transition: .4s var(--ease); pointer-events: none;
}
.back-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { background: var(--primary); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Páginas legales (texto de mrgseguros.es) ---------- */
.legal-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 10px; }
.legal-hero p { font-size: 1.1rem; max-width: 640px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.legal-nav a { padding: 9px 18px; border-radius: 30px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-sm); transition: .3s var(--ease); }
.legal-nav a:hover { color: var(--primary); transform: translateY(-2px); }
.legal-nav a[aria-current="page"] { background: var(--primary); color: #fff; }
.legal-body { max-width: 900px; padding-top: 60px; padding-bottom: 20px; font-size: 15.5px; }
.legal-body h2 { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; margin: 2.2em 0 .8em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h2 .num { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.legal-body h3 { font-size: 1.08rem; margin: 1.6em 0 .6em; }
.legal-body ul, .legal-body ol { padding-left: 20px; }
.legal-body li { margin-bottom: 6px; }
.legal-data { margin: 0 0 1.5em; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.legal-data > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.legal-data > div:last-child { border-bottom: 0; }
.legal-data dt { color: var(--ink); font-weight: 500; }
.legal-data dd { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.legal-table th { text-align: left; background: var(--primary-50); color: var(--ink); font-weight: 500; padding: 12px 16px; white-space: nowrap; }
.legal-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.legal-note { background: var(--primary-50); border-left: 4px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 0 0 1.5em; }
.legal-note p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .legal-data > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 18px; } }

/* ---------- Selector de idioma (Google Translate, como mrgseguros.es) ---------- */
.lang { position: relative; }
.lang-btn {
  height: 48px; padding: 0 12px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--primary-50); color: var(--primary); font-weight: 600; font-size: 13px; letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 6px; transition: background .3s, color .3s;
}
.lang-btn .icon { width: 19px; height: 19px; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: var(--primary); color: #fff; }
.lang-list {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 920; min-width: 170px;
  list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  animation: pageIn .3s var(--ease) both;
}
.lang-list[hidden] { display: none; }
.lang-list button {
  width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 9px 12px; border-radius: 9px; font-size: 14.5px; color: var(--ink);
}
.lang-list button:hover, .lang-list button:focus-visible { background: var(--primary-50); outline: none; }
.lang-list button[aria-current="true"] { color: var(--primary); font-weight: 600; }
.lang-list button[aria-current="true"]::after { content: " ✓"; }
/* Ocultar la barra y los globos de Google Translate */
.goog-te-banner-frame, body > .skiptranslate, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-yAWNEb-L7lbkb { display: none !important; }
body { top: 0 !important; }
font[style] { background: none !important; box-shadow: none !important; }

@media (max-width: 560px) {
  .topbar .container { gap: 10px; }
  .topbar__logo img { height: 24px; }
  .topbar__actions { gap: 6px; }
  .lang-btn, .user-btn, .cart-btn, .burger { height: 40px; border-radius: 10px; }
  .user-btn, .cart-btn, .burger { width: 40px; }
  .lang-btn { padding: 0 8px; gap: 4px; }
  .lang-btn .icon { display: none; }
}
.lang-btn, .user-btn { background: #fff; box-shadow: var(--shadow-sm); }
.topbar.is-scrolled .lang-btn, .topbar.is-scrolled .user-btn { background: var(--primary-50); box-shadow: none; }

/* ---------- Productos: botón siempre a la derecha ---------- */
.product__foot .btn { margin-left: auto; }

/* ---------- Servicios: tarjetas con foto arriba ---------- */
.card--media { padding: 0; display: flex; flex-direction: column; }
.card__media { position: relative; margin: 10px 10px 0; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--primary-50); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card--media:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 22px 24px 28px; }
.card__num { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.card--media h3 { margin-bottom: 8px; }

/* ---------- Helvetia Ocio ---------- */
.ocio { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; max-width: 1080px; }
.ocio__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.ocio__img img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.ocio__img:hover img { transform: scale(1.03); }
.ocio__text h2 { color: var(--primary); margin-bottom: 22px; }
.ocio__text p { font-size: 1.15rem; line-height: 1.75; color: var(--ink); }
.ocio__text strong { color: var(--primary); font-weight: 600; }
@media (max-width: 860px) { .ocio { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Calcula tu precio y contrata (tarificador en 4 pasos) ---------- */
.pasos { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 18px 0 0; }
.pasos li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; font-size: 15px; }
.pasos li span { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); }
.pasos li.is-on { color: var(--primary); }
.pasos li.is-on span { background: var(--primary); color: #fff; }
.pasos li.is-ok span { background: var(--primary-100); color: var(--primary); }
.paso { display: none; }
.paso.is-on { display: block; animation: pageIn .5s var(--ease) both; }
.choice__nota { display: block; margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.mt { margin-top: 12px; }
.sub { font-size: 1rem; margin: 26px 0 12px; }
.fila { display: grid; grid-template-columns: 40px 1fr 1fr 46px; gap: 12px; align-items: end; padding: 14px; border-radius: var(--radius); background: var(--bg); margin-bottom: 12px; animation: pageIn .4s var(--ease) both; }
.fila__n { width: 40px; height: 46px; border-radius: 12px; background: var(--primary-50); color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.fila .field label { font-size: 13px; }
.fila .field input, .fila .field select { height: 46px; background: #fff; }
.fila__quitar { width: 46px; height: 46px; border-radius: 12px; border: 0; background: #fff; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: .3s; }
.fila__quitar:hover { color: var(--danger); }
.fila__quitar[disabled] { opacity: .3; pointer-events: none; }
@media (max-width: 640px) { .fila { grid-template-columns: 40px 1fr 46px; } .fila .field:nth-of-type(2) { grid-column: 2 / 4; grid-row: 2; } }
.trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn--lg { height: 60px; font-size: 16px; margin-top: 6px; }
.form-error { color: var(--danger); font-weight: 500; margin: 14px 0 0; min-height: 1.2em; }
.lista-salud { margin: 12px 0 0 30px; padding-left: 18px; font-size: 14.5px; }
.lista-salud li { margin-bottom: 4px; }
.asegurado + .asegurado { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); }
.asegurado h4 { margin-bottom: 14px; }
.asegurado h4 small { font-weight: 400; color: var(--muted); font-size: 14px; }
.nav-pasos { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.precio-pagar { display: flex; flex-direction: column; gap: 2px; padding: 22px 24px; border-radius: var(--radius); background: var(--primary-50); margin-bottom: 10px; }
.precio-pagar small { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--primary); }
.precio-pagar strong { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 600; color: var(--primary); line-height: 1.1; }
.precio-pagar span { font-size: 1.1rem; color: var(--ink); font-weight: 500; }
.resumen-pago { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.resumen-pago div { padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); }
.resumen-pago span { display: block; font-size: 13px; color: var(--muted); }
.resumen-pago strong { color: var(--ink); font-weight: 600; }
.resultado h3 { margin-bottom: 14px; }
.res-vacio { color: var(--muted); font-size: 15px; padding: 6px 0 4px; }
.res-grande { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.res-grande strong { font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 600; color: var(--primary); line-height: 1; }
.res-grande span { font-size: 1.1rem; color: var(--muted); }
.res-anual { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.res-anual strong { font-size: 1.9rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.res-anual span { color: var(--muted); }
.res-anual[hidden] { display: none; }
.res-aviso { font-size: 13.5px; color: var(--ink); margin: 12px 0 0; }
.res-aviso:empty { display: none; }
.res-nota { font-size: 13px; color: var(--muted); margin: 10px 0 18px; }
.ayuda { display: flex; gap: 14px; align-items: center; }
.ayuda strong { color: var(--ink); }
