@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Caveat:wght@600;700&display=swap');

/* ══════════════════════════════════════════════════════════════════════════
   Un Corazón Contigo · sistema de diseño
   Profesionales voluntarios al servicio de nuestra gente.

   Superficies blancas sobre crema, esquinas generosas, sombras casi
   imperceptibles, iconos en círculos pastel. Cálido antes que institucional:
   quien llega aquí está mal, y la pantalla no debería sumarle tensión.

   Sistema completo en docs/04-IDENTIDAD.md
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Paleta del manual */
  --confianza: #0D2B4E;
  --corazon:   #FF6B6B;
  --esperanza: #FFCB57;
  --bienestar: #6CCBAE;
  --calidez:   #8E92C6;

  /* Derivados de servicio */
  --confianza-hondo: #071C36;
  --confianza-tenue: #E7EDF5;
  /* Sobre coral no cabe texto blanco (2.8:1). Este rojo sí lo admite (4.7:1). */
  --corazon-fuerte:  #CE4141;
  --corazon-tenue:   #FFEDEC;
  --esperanza-tenue: #FFF6E0;
  --bienestar-tenue: #E7F7F1;
  --calidez-tenue:   #EFF0F9;

  /* Fondos */
  --blanco: #FFFFFF;
  --crema:  #FFF8F3;
  --nube:   #F6F8FC;
  /* Base cálida de toda la plataforma: crema con un pelín de rosa, para que no
     se sienta un blanco clínico. Las tarjetas siguen blancas y resaltan encima. */
  --fondo:  #FFF5F1;

  /* Texto */
  --tinta:   #12253F;   /* 14.0:1 sobre blanco */
  --tinta-2: #5A6B84;   /*  4.9:1 sobre blanco · 4.6:1 sobre crema */
  --linea:   #EAE2DC;
  --linea-fria: #E1E7F0;

  --r:      18px;
  --r-sm:   12px;
  --r-pill: 999px;

  --sombra:      0 1px 2px rgba(13, 43, 78, .04), 0 6px 20px rgba(13, 43, 78, .06);
  --sombra-alta: 0 2px 6px rgba(13, 43, 78, .06), 0 16px 40px rgba(13, 43, 78, .11);

  --ease: cubic-bezier(.25, .8, .35, 1);
  --t: 220ms;

  --shell: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Detalle de fondo: acuarela suave, solo en las pantallas públicas y de entrada
   (no en el panel de trabajo). Fija, muy tenue y desvanecida hacia abajo: da
   calidez sin quitarle protagonismo al contenido, que va en tarjetas blancas. */
body[data-modo="publico"]::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('/img/fondo-acuarela.jpg') no-repeat top center;
  background-size: cover;
  opacity: .42;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 20%, transparent 66%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 20%, transparent 66%);
}
@media (prefers-reduced-motion: no-preference) {
  body[data-modo="publico"]::before { transition: opacity var(--t) var(--ease); }
}

h1, h2, h3, h4 {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.1vw, 2.2rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.03rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* El acento manuscrito del manual. Solo para frases cortas, nunca para leer. */
.manuscrito {
  font-family: 'Caveat', 'Nunito', cursive;
  font-weight: 700;
  font-size: 1.45em;
  line-height: 1.3;
  color: var(--corazon-fuerte);
}

a { color: var(--confianza); text-underline-offset: 3px; }
a:hover { color: var(--corazon-fuerte); }

:focus-visible { outline: 3px solid var(--confianza); outline-offset: 3px; border-radius: 6px; }

button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }

/* ── La sonrisa: el gesto que firma la marca ────────────────────────────── */

.sonrisa {
  display: block; width: 62px; height: 12px; flex: none;
  margin-top: 4px;
  color: var(--corazon);
}
.sonrisa::after {
  content: ''; display: block; width: 100%; height: 100%;
  border-bottom: 4px solid currentColor;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.sonrisa--centro { margin-inline: auto; }

/* ── Estructura ─────────────────────────────────────────────────────────── */

.shell { width: min(100% - 40px, var(--shell)); margin-inline: auto; }
.shell--narrow { width: min(100% - 40px, 760px); margin-inline: auto; }

.page { padding: 34px 0 90px; }
.stack { display: grid; gap: 26px; }
.stack--tight { gap: 16px; }
.stack--loose { gap: 52px; }

.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.row--centro { justify-content: center; }
.grow { flex: 1 1 220px; }

.section-head { display: grid; gap: 10px; margin-bottom: 6px; justify-items: start; }
.section-head--centro { justify-items: center; text-align: center; }
.section-head p { color: var(--tinta-2); max-width: 64ch; }

.muted { color: var(--tinta-2); }
.small { font-size: .93rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* Bandas de color a todo el ancho, para separar secciones sin usar líneas */
.banda { padding: 56px 0; }
.banda--crema  { background: var(--crema); }
.banda--nube   { background: var(--nube); }
.banda--calidez{ background: var(--calidez-tenue); }
.banda--confianza { background: var(--confianza); color: var(--blanco); }
.banda--confianza .muted { color: rgba(255, 255, 255, .82); }
.banda--confianza a { color: var(--esperanza); }

/* Panel destacado (p. ej. las cifras de impacto): navy redondeado que flota sobre
   el fondo continuo, en lugar de una banda a sangre que "corta" la página. */
.panel-impacto {
  background: var(--confianza); color: var(--blanco);
  border-radius: 28px; padding: clamp(36px, 5vw, 56px);
  box-shadow: var(--sombra-alta);
}
.panel-impacto .muted { color: rgba(255, 255, 255, .82); }
.panel-impacto a { color: var(--esperanza); }

/* ── Cabecera ───────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 40;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
/* Al bajar, el header se vuelve una lámina esmerilada para seguir siendo legible
   sobre el contenido; arriba del todo es invisible y se funde con la página. */
.nav.is-scrolled {
  background: rgba(255, 245, 241, .82);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
          backdrop-filter: saturate(1.5) blur(12px);
  border-bottom-color: var(--linea);
  box-shadow: 0 6px 24px rgba(13, 43, 78, .06);
}
.nav__bar {
  width: min(100% - 40px, var(--shell));
  margin-inline: auto; min-height: 78px;
  display: flex; align-items: center; gap: 18px;
}

/* Logotipo: símbolo + «Un Corazón Contigo» en dos colores */
.marca { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.marca:hover { color: inherit; }
.marca__simbolo { flex: none; }
.marca__texto { display: grid; line-height: 1.05; }
.marca__linea { font-weight: 800; font-size: 1.05rem; color: var(--confianza); letter-spacing: -.015em; }
.marca__linea em { font-style: normal; color: var(--corazon-fuerte); }
.marca--negativa .marca__linea { color: var(--blanco); }
.marca--negativa .marca__linea em { color: var(--corazon); }

.nav__links { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav__acciones { display: flex; align-items: center; gap: 8px; margin-left: 10px; flex: none; }
@media (max-width: 980px) { .nav__acciones { margin: 8px 0 0; } }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 14px; border-radius: var(--r-sm);
  font-weight: 700; font-size: .95rem; color: var(--tinta-2); text-decoration: none;
  transition: color var(--t) var(--ease);
}
.nav__link:hover { color: var(--confianza); }
.nav__badge {
  display: inline-grid; place-items: center; min-width: 19px; height: 19px;
  margin-left: 6px; padding: 0 5px; border-radius: 99px;
  background: var(--corazon-fuerte); color: var(--blanco);
  font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.nav__link.is-active { color: var(--confianza); }
.nav__link.is-active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 3px; border-radius: 3px; background: var(--corazon);
}
.nav__toggle { display: none; }

@media (max-width: 980px) {
  .nav__bar { flex-wrap: wrap; min-height: 68px; padding-block: 10px; }
  .nav__toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 46px; height: 46px; border: 1px solid var(--linea);
    border-radius: var(--r-sm); background: var(--blanco); color: var(--confianza); cursor: pointer;
  }
  .nav__links {
    display: none; width: 100%; margin-left: 0; flex-direction: column;
    align-items: stretch; gap: 2px; padding-bottom: 10px;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__link.is-active::after { display: none; }
  .nav__link.is-active { background: var(--confianza-tenue); }
}

/* ── Tarjetas ───────────────────────────────────────────────────────────── */

.card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFDFE 55%, #F2F6FA 100%);
  border: 1px solid var(--linea);
  border-radius: var(--r);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .9),
    inset 0 -3px 6px rgba(13, 43, 78, .05),
    0 10px 24px rgba(13, 43, 78, .10);
  padding: 28px;
  position: relative;
}
.card--pad-sm { padding: 20px; }
.card--plano { box-shadow: 0 8px 18px rgba(13, 43, 78, .08); }
.card--crema { background: var(--crema); box-shadow: none; }
.card--nube  { background: var(--nube); box-shadow: none; border-color: var(--linea-fria); }

/* Filo de color: clasifica sin gritar */
.card--filo { padding-top: 32px; overflow: hidden; }
.card--filo::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--confianza); }
.card--filo-corazon::before   { background: var(--corazon); }
.card--filo-esperanza::before { background: var(--esperanza); }
.card--filo-bienestar::before { background: var(--bienestar); }
.card--filo-calidez::before   { background: var(--calidez); }

.card--confianza { background: var(--confianza); color: var(--blanco); border-color: var(--confianza); }
.card--hondo     { background: var(--confianza-hondo); color: var(--blanco); border-color: var(--confianza-hondo); }
.card--confianza .muted, .card--hondo .muted { color: rgba(255, 255, 255, .82); }
.card--confianza a, .card--hondo a { color: var(--esperanza); }

.card--corazon   { background: var(--corazon-tenue);   border-color: #FBD9D7; box-shadow: none; }
.card--esperanza { background: var(--esperanza-tenue); border-color: #F6E3B8; box-shadow: none; }
.card--bienestar { background: var(--bienestar-tenue); border-color: #C9E9DE; box-shadow: none; }
.card--calidez   { background: var(--calidez-tenue);   border-color: #D6D8EE; box-shadow: none; }

.card--link { display: block; color: inherit; text-decoration: none; cursor: pointer;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.card--link:hover { transform: translateY(-4px); border-color: #DED3CB; color: inherit;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .9),
    inset 0 -3px 6px rgba(13, 43, 78, .05),
    0 18px 38px rgba(13, 43, 78, .16); }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(256px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.grid--side { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .grid--side { grid-template-columns: 1fr; } }

/* ── Botones ────────────────────────────────────────────────────────────── */

/* Botones «caramelo»: píldora con degradado brillante —luz arriba, color
   hondo abajo—, brillo interior y un halo de su propio color debajo, que los
   hace flotar. Cada variante define sus tres paradas y el halo. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 13px 30px;
  --g-luz: #3E6CA6; --g-base: #16375E; --g-hondo: #071C36;
  --halo: rgba(13, 43, 78, .40); --brillo: rgba(255, 255, 255, .38);
  background: linear-gradient(180deg, var(--g-luz) 0%, var(--g-base) 55%, var(--g-hondo) 100%);
  color: var(--blanco);
  border: none; border-radius: var(--r-pill);
  font-weight: 800; font-size: 1rem;
  cursor: pointer; text-decoration: none;
  box-shadow:
    inset 0 2px 3px var(--brillo),
    inset 0 -4px 7px rgba(0, 0, 0, .25),
    0 10px 22px var(--halo);
  transition: filter var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.btn:hover:not(:disabled) {
  filter: brightness(1.1); color: var(--blanco);
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 3px var(--brillo),
    inset 0 -4px 7px rgba(0, 0, 0, .25),
    0 16px 30px var(--halo);
}
.btn:active:not(:disabled) {
  transform: translateY(2px); filter: brightness(.95);
  box-shadow: inset 0 3px 7px rgba(0, 0, 0, .30), 0 4px 10px var(--halo);
}
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Destello: una franja de luz cruza el boton cada pocos segundos. */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute; top: -60%; bottom: -60%; left: -30%;
  width: 34px;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: btn-destello 4.6s ease-in-out infinite;
}
.btn:disabled::after { display: none; }
@keyframes btn-destello {
  0%       { left: -30%; }
  16%      { left: 130%; }
  100%     { left: 130%; }
}
@media (prefers-reduced-motion: reduce) { .btn::after { animation: none; opacity: 0; } }

/* El rojo de acción es más profundo que el coral de marca: sobre coral,
   el texto blanco solo alcanza 2.8:1 y no se puede leer. */
.btn--corazon { --g-luz: #EE7B7B; --g-base: #CE4141; --g-hondo: #9E2E2E; --halo: rgba(206, 65, 65, .42); }

.btn--linea, .btn--claro {
  --g-luz: #FFFFFF; --g-base: #F5F8FC; --g-hondo: #DFE7F1;
  --halo: rgba(13, 43, 78, .16); --brillo: rgba(255, 255, 255, .9);
  color: var(--confianza);
  box-shadow:
    inset 0 2px 3px var(--brillo),
    inset 0 -4px 7px rgba(13, 43, 78, .10),
    0 10px 22px var(--halo);
}
.btn--linea:hover:not(:disabled), .btn--claro:hover:not(:disabled) {
  color: var(--confianza);
  box-shadow:
    inset 0 2px 3px var(--brillo),
    inset 0 -4px 7px rgba(13, 43, 78, .10),
    0 16px 30px var(--halo);
}

/* Sobre amarillo o pasteles el texto va en tinta, nunca en blanco. */
.btn--esperanza { --g-luz: #FFE18E; --g-base: #FFCB57; --g-hondo: #E0A637; --halo: rgba(224, 166, 55, .45); color: var(--tinta); }
.btn--esperanza:hover:not(:disabled) { color: var(--tinta); }

.btn--sm { min-height: 44px; padding: 9px 19px; font-size: .94rem; }
.btn--compacto { min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.btn--lg { min-height: 56px; padding: 15px 26px; font-size: 1.02rem; }
.btn--full { width: 100%; }

/* ── Formularios ────────────────────────────────────────────────────────── */

.field { display: grid; gap: 7px; }
.field > label { font-weight: 700; font-size: .94rem; }
.field__hint { font-size: .87rem; color: var(--tinta-2); }

.input, .select, .textarea {
  width: 100%; min-height: 52px;
  background: var(--blanco);
  border: 1.5px solid #D9DFE9; border-radius: var(--r-sm);
  padding: 13px 16px;
  font-family: inherit; font-size: 1rem; color: var(--tinta);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.textarea { min-height: 124px; resize: vertical; line-height: 1.6; }
.select { appearance: none; cursor: pointer; padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6B84' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.input::placeholder, .textarea::placeholder { color: #94A2B6; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--confianza); box-shadow: 0 0 0 4px rgba(13, 43, 78, .1);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: var(--corazon-fuerte); box-shadow: 0 0 0 4px rgba(206, 65, 65, .13);
}

/* ── Buscador desplegable (combobox) ──────────────────────────────────────
   Reemplaza al <select> nativo en campos críticos como el "área en la que
   ayudas": filtra mientras se escribe y pinta las opciones en un panel propio
   (no en el popup nativo, que en algunos móviles falla). El valor elegido va
   en un <input type="hidden"> para que el envío del formulario no cambie. */
.combo { position: relative; }
.combo__input {
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6B84' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.combo__panel {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0;
  max-height: 264px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--blanco); border: 1.5px solid #D9DFE9; border-radius: var(--r-sm);
  box-shadow: var(--sombra-alta); padding: 6px;
}
.combo__opcion {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: none; border: none; font: inherit; color: var(--tinta);
  padding: 11px 13px; border-radius: var(--r-sm); line-height: 1.35;
  transition: background var(--t) var(--ease);
}
.combo__opcion:hover, .combo__opcion.is-activa {
  background: var(--confianza-tenue); color: var(--confianza);
}
.combo__estado {
  padding: 11px 13px; font-size: .9rem; color: var(--tinta-2); margin: 0;
}
.combo__estado a { color: var(--confianza); font-weight: 700; cursor: pointer; }

.radio-set { display: flex; flex-wrap: wrap; gap: 9px; }
.radio-chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 10px 18px;
  background: var(--blanco); border: 1.5px solid #D9DFE9; border-radius: var(--r-pill);
  font-weight: 700; font-size: .94rem; cursor: pointer;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
}
.radio-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-chip:hover { border-color: #ADBCD0; }
.radio-chip:has(input:checked) { background: var(--confianza); border-color: var(--confianza); color: var(--blanco); }
.radio-chip:has(input:focus-visible) { outline: 3px solid var(--confianza); outline-offset: 2px; }
.radio-set--col { flex-direction: column; align-items: stretch; }
.radio-chip--ancho { width: 100%; justify-content: flex-start; border-radius: 14px; min-height: 52px; }

/* ══ Intake guiado (orientación al especialista) ═════════════════════════════ */
.intake__progreso { display: flex; gap: 8px; justify-content: center; margin-bottom: 4px; }
.intake__punto { width: 34px; height: 5px; border-radius: 999px; background: var(--linea); }
.intake__punto.is-on { background: var(--confianza); }
.intake__preg { border: none; padding: 0; margin: 18px 0 0; }
.intake__preg > legend { padding: 0; font-weight: 700; font-size: 1rem; margin-bottom: 10px; line-height: 1.4; }

.card--reco { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit;
  padding: 14px 16px; }
.card--reco:hover { border-color: var(--confianza); }
.card--reco .btn { flex: none; pointer-events: none; }

.intake-rojo { border: 1.5px solid #FBD9D7; }
.intake-lineas { margin-top: 16px; padding: 14px 16px; border-radius: 14px;
  background: var(--corazon-tenue); border: 1px solid #FBD9D7; }
.intake-lineas > ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.intake-lineas__num { display: inline-block; min-width: 44px; font-weight: 800; color: #A83535; }
.intake-lineas--generica { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5;
  color: #8A3A2E; }

/* Dictado por voz */
.dictado { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.dictar { display: inline-flex; align-items: center; gap: 7px; }
.dictar__mic { display: inline-flex; line-height: 0; }
.dictar.is-grabando { background: var(--corazon-fuerte); color: var(--blanco); border-color: var(--corazon-fuerte);
  animation: dictar-pulso 1.2s ease-in-out infinite; }
@keyframes dictar-pulso {
  0%, 100% { box-shadow: 0 0 0 0 rgba(206, 65, 65, .4); }
  50%      { box-shadow: 0 0 0 6px rgba(206, 65, 65, 0); }
}

/* Panel de remisión en el hilo de la alerta (bandeja del equipo) */
.caso-remitir { border: 1px solid var(--linea); border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.caso-remitir__pros { display: grid; gap: 8px; margin-top: 10px; }
.caso-pro { display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; }
.caso-pro .btn { flex: none; }

/* Consola de Equipo (super admin) */
.btn--peligro { --g-luz: #FFFFFF; --g-base: #FDF3F2; --g-hondo: #F3D9D7; --halo: rgba(206, 65, 65, .18); --brillo: rgba(255, 255, 255, .9); color: var(--corazon-fuerte); }
.btn--peligro:hover:not(:disabled) { color: var(--corazon-fuerte); }
.equipo-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.equipo-fila { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.equipo-fila:last-child { border-bottom: none; }
.equipo-fila.is-inactivo { opacity: .55; }
.equipo-fila__acciones { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; }

/* Guía del acompañante */
.guia-h { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin: 0 0 14px; }
.guia-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guia-lista > li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.guia-lista > li > :first-child { flex: none; margin-top: 2px; color: var(--bienestar); }
.guia-ciclo { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.guia-paso { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--linea); border-radius: 12px; }
.guia-paso__n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px;
  background: var(--confianza); color: var(--blanco); font-weight: 800; font-size: .85rem; }
.guia-orden { margin: 0; padding-left: 22px; display: grid; gap: 8px; line-height: 1.5; }
.guia-riesgo { border: 1.5px solid #F3C9C7; background: var(--corazon-tenue); }

/* Ficha del caso (panel del equipo) */
.caso-ficha { max-width: 560px; }
.caso-sec { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--linea); }
.caso-sec__t { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--tinta-2); }
.caso-nota { background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.segmento--sm { margin-top: 8px; display: inline-flex; flex-wrap: wrap; }
.segmento--sm a { padding: 6px 12px; font-size: .85rem; }

.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; font-weight: 700; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  width: 54px; height: 30px; flex: none; border-radius: var(--r-pill);
  background: #CBD4E0; position: relative; transition: background var(--t) var(--ease);
}
.switch__track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--blanco); box-shadow: 0 1px 3px rgba(13, 43, 78, .3);
  transition: transform var(--t) var(--ease);
}
.switch input:checked + .switch__track { background: var(--bienestar); }
.switch input:checked + .switch__track::after { transform: translateX(24px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--confianza); outline-offset: 3px; }

/* ── Etiquetas, sellos y avatares ───────────────────────────────────────── */

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: var(--r-pill);
  font-size: .83rem; font-weight: 700; line-height: 1.5;
  background: var(--nube); color: var(--tinta-2); border: 1px solid var(--linea-fria);
}
.pill--confianza { background: var(--confianza-tenue); color: var(--confianza); border-color: #CFDCEC; }
.pill--corazon   { background: var(--corazon-tenue);   color: #A83535;          border-color: #FBD9D7; }
.pill--esperanza { background: var(--esperanza-tenue); color: #7A5600;          border-color: #F6E3B8; }
.pill--bienestar { background: var(--bienestar-tenue); color: #1A6B54;          border-color: #C9E9DE; }
.pill--calidez   { background: var(--calidez-tenue);   color: #4A4E86;          border-color: #D6D8EE; }

/* «solido» rellena con el tono que ya tenga. Sobre los pasteles el texto va
   en tinta: solo el azul confianza admite texto blanco. */
.pill--solido                  { background: var(--confianza); color: var(--blanco); border-color: var(--confianza); }
.pill--confianza.pill--solido  { background: var(--confianza); color: var(--blanco); border-color: var(--confianza); }
.pill--corazon.pill--solido    { background: var(--corazon);   color: var(--tinta);  border-color: var(--corazon); }
.pill--esperanza.pill--solido  { background: var(--esperanza); color: var(--tinta);  border-color: var(--esperanza); }
.pill--bienestar.pill--solido  { background: var(--bienestar); color: var(--tinta);  border-color: var(--bienestar); }
.pill--calidez.pill--solido    { background: var(--calidez);   color: var(--tinta);  border-color: var(--calidez); }

.sello {
  width: 54px; height: 54px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--confianza-tenue); color: var(--confianza);
}
.sello--corazon   { background: var(--corazon-tenue);   color: #A83535; }
.sello--esperanza { background: var(--esperanza-tenue); color: #7A5600; }
.sello--bienestar { background: var(--bienestar-tenue); color: #1A6B54; }
.sello--calidez   { background: var(--calidez-tenue);   color: #4A4E86; }
.sello--confianza { background: var(--confianza-tenue); color: var(--confianza); }
.sello--solido    { background: var(--confianza);       color: var(--blanco); }
.sello--claro     { background: rgba(255, 255, 255, .18); color: var(--blanco); }
.sello--lg { width: 66px; height: 66px; }

.avatar {
  width: 54px; height: 54px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  font-weight: 800; font-size: 1.16rem;
  background: var(--confianza-tenue); color: var(--confianza);
}
.avatar--foto { object-fit: cover; background: var(--nube); }
.avatar--confianza { background: var(--confianza-tenue); color: var(--confianza); }
.avatar--corazon   { background: var(--corazon-tenue);   color: #A83535; }
.avatar--esperanza { background: var(--esperanza-tenue); color: #7A5600; }
.avatar--bienestar { background: var(--bienestar-tenue); color: #1A6B54; }
.avatar--calidez   { background: var(--calidez-tenue);   color: #4A4E86; }

/* ── Portada ────────────────────────────────────────────────────────────── */

.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 40px; align-items: center; padding: 30px 0 20px; position: relative; }

/* Ilustracion de portada viva: el simbolo se mece, el corazon central late,
   los corazones sueltos flotan y la hoja se balancea. Todo sobre el SVG
   vectorial, asi que se ve perfecto a cualquier resolucion y el bucle es
   exacto. Con "menos movimiento" activado queda quieta. */
.hero__arte svg .arte-simbolo,
.hero__arte svg .arte-late,
.hero__arte svg .arte-flota,
.hero__arte svg .arte-hoja,
.hero__arte svg .arte-halo,
.hero__arte svg .arte-sol,
.hero__arte svg .arte-onda {
  transform-box: fill-box;
  transform-origin: center;
}
.hero__arte svg .arte-simbolo { transform-origin: 50% 90%; animation: arte-mece 4.8s ease-in-out infinite; }
.hero__arte svg .arte-late    { animation: arte-late 1.9s ease-in-out infinite; }
.hero__arte svg .arte-halo    { animation: arte-respira 4.8s ease-in-out infinite; }
.hero__arte svg .arte-sol     { animation: arte-sol 6.5s ease-in-out infinite; }
.hero__arte svg .arte-onda    { animation: arte-onda 5.6s ease-in-out infinite; }
.hero__arte svg .arte-flota-1 { animation: arte-flota 3.8s ease-in-out infinite; }
.hero__arte svg .arte-flota-2 { animation: arte-flota 4.6s ease-in-out .9s infinite; }
.hero__arte svg .arte-flota-3 { animation: arte-flota 4.2s ease-in-out 1.8s infinite; }
.hero__arte svg .arte-hoja    { transform-origin: 15% 15%; animation: arte-hoja 4.4s ease-in-out infinite; }

@keyframes arte-mece {
  0%, 100% { transform: rotate(-4.5deg) translateY(0); }
  25%      { transform: rotate(0deg) translateY(-7px); }
  50%      { transform: rotate(4.5deg) translateY(0); }
  75%      { transform: rotate(0deg) translateY(-7px); }
}
@keyframes arte-late {
  0%, 100% { transform: scale(1); }
  14%      { transform: scale(1.32); }
  28%      { transform: scale(1.04); }
  42%      { transform: scale(1.24); }
  60%      { transform: scale(1); }
}
@keyframes arte-respira {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.07) rotate(-2deg); }
}
@keyframes arte-sol {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50%      { transform: scale(1.06) translate(6px, -6px); }
}
@keyframes arte-onda {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50%      { transform: translateX(-14px) scaleY(1.06); }
}
@keyframes arte-flota {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg) scale(1); }
  35%      { transform: translateY(-16px) translateX(5px) rotate(13deg) scale(1.15); }
  70%      { transform: translateY(-6px) translateX(-4px) rotate(-9deg) scale(1); }
}
@keyframes arte-hoja {
  0%, 100% { transform: rotate(-9deg) translateY(0); }
  50%      { transform: rotate(11deg) translateY(-11px); }
}
.hero__arte svg .arte-destello {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: arte-titila 3.2s ease-in-out infinite;
}
.hero__arte svg .arte-destello-2 { animation-duration: 2.6s; animation-delay: .7s; }
.hero__arte svg .arte-destello-3 { animation-duration: 3.6s; animation-delay: 1.3s; }
.hero__arte svg .arte-destello-4 { animation-duration: 2.9s; animation-delay: 2s; }
.hero__arte svg .arte-destello-5 { animation-duration: 2.4s; animation-delay: .4s; }
.hero__arte svg .arte-destello-6 { animation-duration: 3.4s; animation-delay: 1.7s; }
.hero__arte svg .arte-destello-7 { animation-duration: 2.2s; animation-delay: 1s; }
.hero__arte svg .arte-destello-8 { animation-duration: 2.8s; animation-delay: 2.4s; }

@keyframes arte-titila {
  0%, 100% { opacity: 0; transform: scale(.25) rotate(0deg); }
  45%      { opacity: .95; transform: scale(1.15) rotate(24deg); }
  60%      { opacity: .7; transform: scale(.9) rotate(32deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__arte svg .arte-destello { animation: none; }
  .hero__arte svg .arte-simbolo, .hero__arte svg .arte-late,
  .hero__arte svg .arte-halo, .hero__arte svg .arte-sol,
  .hero__arte svg .arte-onda, .hero__arte svg .arte-flota-1,
  .hero__arte svg .arte-flota-2, .hero__arte svg .arte-flota-3,
  .hero__arte svg .arte-hoja { animation: none; }
}
@media (max-width: 980px) { .hero { grid-template-columns: 1fr; gap: 28px; } }

.hero h1 span { display: block; }
.hero h1 .hero__acento, h2 .hero__acento { color: var(--corazon-fuerte); display: block; }
.hero h1 .hero__acento {
  background: linear-gradient(110deg, var(--corazon-fuerte) 42%, #FF9E92 50%, var(--corazon-fuerte) 58%);
  background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: titulo-brillo 5s ease-in-out infinite;
}
@keyframes titulo-brillo {
  0%, 45% { background-position: 130% 0; }
  100%    { background-position: -60% 0; }
}
.hero__lead { font-size: clamp(1.04rem, 2vw, 1.18rem); color: var(--tinta-2); max-width: 48ch; }
.hero__iniciativa {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px; padding: 7px 15px 7px 12px;
  background: rgba(206, 65, 65, .08);
  border: 1px solid rgba(206, 65, 65, .20);
  border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
  color: var(--corazon-fuerte); line-height: 1.2;
}
.hero__iniciativa svg { flex: none; }
@media (max-width: 560px) { .hero__iniciativa { font-size: .76rem; } }

/* Listas de «Sobre nosotros»: valores (en dos columnas) y check (una columna). */
.lista-valores, .lista-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lista-valores { grid-template-columns: repeat(2, auto); justify-content: center; gap: 9px 26px; }
.lista-valores li, .lista-check li { display: flex; align-items: center; gap: 10px; color: var(--tinta); font-weight: 700; }
.lista-valores li svg { color: var(--corazon-fuerte); flex: none; }
.lista-check li { font-weight: 600; }
.lista-check li svg { color: #1A6B54; flex: none; }
@media (max-width: 460px) { .lista-valores { grid-template-columns: 1fr; justify-content: start; } }

/* Sellos de confianza bajo el hero */
.garantias { display: flex; flex-wrap: wrap; gap: 22px; }
.garantia { display: flex; gap: 11px; align-items: flex-start; }
.garantia strong { display: block; font-size: .93rem; }
.garantia span { font-size: .84rem; color: var(--tinta-2); }

/* La ilustración: formas planas, sin desenfoque */
.hero__arte { position: relative; display: grid; place-items: center; }
.hero__arte svg { width: 100%; height: auto; max-width: 520px; }

.cifra { display: grid; gap: 2px; }
.cifra__num { font-weight: 800; font-size: 2.3rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cifra__label { font-size: .9rem; font-weight: 600; }

/* Pasos numerados, con hilo punteado entre ellos */
.pasos-fila {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 24px; position: relative;
}
.paso-hito { display: grid; justify-items: center; text-align: center; gap: 10px; position: relative; }
.paso-hito__sello { position: relative; }
.paso-hito__num {
  position: absolute; right: -4px; bottom: -4px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--confianza); color: var(--blanco);
  font-size: .78rem; font-weight: 800; border: 3px solid var(--blanco);
}
.paso-hito h4 { font-size: .99rem; }
.paso-hito p { font-size: .88rem; color: var(--tinta-2); margin: 0; max-width: 24ch; }
/* El hilo solo aparece cuando hay sitio para leerlo como secuencia */
@media (min-width: 1000px) {
  .paso-hito:not(:last-child)::after {
    content: ''; position: absolute; top: 32px; left: calc(50% + 42px); right: calc(-50% + 42px);
    border-top: 2px dashed #DCD3CC;
  }
}

/* Pasos en columna (para «cómo funciona» dentro de una tarjeta) */
.pasos { counter-reset: paso; display: grid; gap: 18px; }
.paso { display: flex; gap: 15px; align-items: flex-start; }
.paso__num {
  counter-increment: paso; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--confianza); color: var(--blanco); font-weight: 800; font-size: 1rem;
}
.paso__num::before { content: counter(paso); }

/* Testimonios */
.testimonio { position: relative; padding-top: 34px; }
.testimonio::before {
  content: '“'; position: absolute; top: -6px; left: 22px;
  font-family: Georgia, 'Times New Roman', serif; font-size: 4.6rem; line-height: 1;
  color: var(--corazon); opacity: .35;
}
.testimonio p { font-size: .97rem; }
.testimonio__quien { display: flex; gap: 11px; align-items: center; margin-top: 18px; }

/* ── Horarios ───────────────────────────────────────────────────────────── */

.dias { display: grid; gap: 12px; }
.dia { border: 1px solid var(--linea); border-radius: var(--r-sm); background: var(--blanco); padding: 15px 17px; }
.dia__head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 11px; font-weight: 800; font-size: 1.01rem; }
.dia__count { font-weight: 600; font-size: .84rem; color: var(--tinta-2); }

.horas { display: flex; flex-wrap: wrap; gap: 8px; }
.hora {
  min-height: 44px; padding: 8px 17px;
  background: var(--blanco); color: var(--confianza);
  border: 1.5px solid #C8D3E2; border-radius: var(--r-pill);
  font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.hora:hover { background: var(--confianza-tenue); border-color: var(--confianza); }
.hora.is-selected { background: var(--confianza); border-color: var(--confianza); color: var(--blanco); }

/* ── Editor de disponibilidad ───────────────────────────────────────────── */

.semana { display: grid; gap: 12px; }
.dia-editor { background: var(--crema); border-radius: var(--r-sm); padding: 15px 17px; display: grid; gap: 11px; }
.dia-editor__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dia-editor__nombre { font-weight: 800; font-size: 1.01rem; }
.dia-editor__franjas { display: grid; gap: 9px; }

.franja-hora { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.franja-hora .input { width: 168px; min-height: 44px; padding: 9px 13px; }
.franja-hora__sep { font-weight: 700; color: var(--tinta-2); }

.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border: 1.5px solid #D9DFE9; border-radius: var(--r-sm);
  background: var(--blanco); color: var(--tinta-2); cursor: pointer;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.icon-btn:hover { color: var(--confianza); border-color: var(--confianza); background: var(--confianza-tenue); }
.icon-btn--danger:hover { color: var(--corazon-fuerte); border-color: var(--corazon-fuerte); background: var(--corazon-tenue); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Tablas ─────────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th {
  text-align: left; font-size: .78rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-2);
  padding: 0 15px 10px; border-bottom: 2px solid var(--linea);
}
.table td { padding: 13px 15px; border-bottom: 1px solid var(--linea); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--crema); }

/* ── Avisos ─────────────────────────────────────────────────────────────── */

.aviso {
  display: flex; gap: 13px; align-items: flex-start;
  border-radius: var(--r-sm); padding: 14px 17px;
  border: 1px solid var(--linea); background: var(--crema);
  font-size: .95rem;
}
.aviso--info { background: var(--confianza-tenue); border-color: #CFDCEC; color: var(--tinta); }
.aviso--warn { background: var(--esperanza-tenue); border-color: #F6E3B8; color: #6B4B00; }
.aviso--bad  { background: var(--corazon-tenue);   border-color: #FBD9D7; color: #A83535; }
.aviso--good { background: var(--bienestar-tenue); border-color: #C9E9DE; color: #1A6B54; }
.aviso svg { flex: none; margin-top: 3px; }
.aviso strong { display: block; }

.vacio { text-align: center; padding: 46px 22px; display: grid; gap: 14px; justify-items: center; }
.vacio p { color: var(--tinta-2); max-width: 44ch; }

.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 4px solid var(--linea); border-top-color: var(--corazon);
  animation: giro .8s linear infinite; margin-inline: auto;
}
@keyframes giro { to { transform: rotate(1turn); } }

/* ── Notificaciones ─────────────────────────────────────────────────────── */

.toasts {
  position: fixed; inset-inline: 0; bottom: 20px; z-index: 90;
  display: grid; gap: 9px; justify-items: center; padding-inline: 16px; pointer-events: none;
}
.toast {
  pointer-events: auto; max-width: 520px; width: fit-content;
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--confianza); color: var(--blanco);
  border-radius: var(--r-pill); box-shadow: var(--sombra-alta);
  padding: 14px 24px; font-weight: 700;
  animation: sube var(--t) var(--ease);
}
.toast--good { background: #1A6B54; }
.toast--bad  { background: var(--corazon-fuerte); }
@keyframes sube { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Diálogo ────────────────────────────────────────────────────────────── */

.overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(13, 43, 78, .5);
  display: grid; place-items: center; padding: 20px;
  animation: aparece 160ms var(--ease);
}
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: min(100%, 560px); max-height: 88vh; overflow-y: auto;
  background: var(--blanco); border-radius: var(--r);
  box-shadow: var(--sombra-alta); padding: 30px 28px;
  animation: sube 220ms var(--ease);
}

/* ── Entrada ────────────────────────────────────────────────────────────── */

.enter { animation: entra 340ms var(--ease) both; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.enter-1 { animation-delay: 40ms; }
.enter-2 { animation-delay: 90ms; }
.enter-3 { animation-delay: 140ms; }
.enter-4 { animation-delay: 190ms; }

/* ── Pie ────────────────────────────────────────────────────────────────── */

.footer { background: linear-gradient(to bottom, transparent, var(--crema) 42%); border-top: none; margin-top: 40px; }
.footer__inner { padding: 46px 0 40px; display: grid; gap: 32px; }
.footer__cols { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 30px; }
@media (max-width: 1000px) { .footer__cols { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); } }
.footer h4 { font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; color: var(--confianza); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer a { color: var(--tinta-2); text-decoration: none; font-size: .92rem; }
.footer a:hover { color: var(--corazon-fuerte); text-decoration: underline; }
.footer p { color: var(--tinta-2); font-size: .92rem; }
.footer__legal { border-top: 1px solid var(--linea); padding-top: 20px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.footer__valores { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer__valor { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 700; color: var(--tinta-2); }
.footer__iniciativa { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 4px 0 0; font-size: .92rem; font-weight: 700; color: var(--confianza); text-align: center; }
.footer__iniciativa svg { flex: none; }

.boletin { display: flex; gap: 8px; }
.boletin .input { min-height: 46px; padding: 10px 15px; }

/* ── Marcador de imagen pendiente ───────────────────────────────────────── */

/* Donde falta una foto real. Se ve que falta: no finge ser el diseño final. */
.foto-pendiente {
  display: grid; place-items: center; gap: 8px; text-align: center;
  background: var(--nube);
  border: 2px dashed #C6D0E0; border-radius: var(--r);
  color: var(--tinta-2); padding: 22px; min-height: 180px;
}
.foto-pendiente__que { font-weight: 800; font-size: .95rem; color: var(--confianza); }
.foto-pendiente__medida { font-size: .8rem; font-variant-numeric: tabular-nums; }

/* ── Accesibilidad ──────────────────────────────────────────────────────── */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--blanco); color: var(--confianza);
  padding: 13px 24px; border-radius: var(--r-pill);
  box-shadow: var(--sombra-alta); font-weight: 800; text-decoration: none;
  transition: top var(--t) var(--ease);
}
.skip-link:focus { top: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   Página «¿Cómo funciona?»
   ══════════════════════════════════════════════════════════════════════════ */

/* Encabezado con manchas orgánicas planas a los lados */
.portadilla {
  position: relative; padding: 60px 0 68px; overflow: hidden;
  background: #FFFBF8; border-bottom: 1px solid var(--linea);
}
.portadilla h1 span { display: block; }
.portadilla__fondo { position: absolute; inset: 0; pointer-events: none; }

.mancha { position: absolute; display: block; }
.mancha--izq {
  width: 340px; height: 320px; top: -70px; left: -120px;
  background: var(--corazon-tenue); opacity: .75;
  border-radius: 58% 42% 46% 54% / 52% 48% 52% 48%;
}
.mancha--der {
  width: 320px; height: 340px; top: -60px; right: -130px;
  background: var(--calidez-tenue); opacity: .75;
  border-radius: 44% 56% 60% 40% / 48% 56% 44% 52%;
}
.corazon-suelto { position: absolute; display: block; }
.corazon-suelto--1 { top: 34px;  right: 33%; }
.corazon-suelto--2 { top: 176px; left: 6%; }
.corazon-suelto--3 { top: 104px; left: 13%; opacity: .8; }
@media (max-width: 760px) { .corazon-suelto, .mancha--der { display: none; } }

/* Cadena de pasos, unidos por hilos punteados con punta de flecha */
.cadena {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(168px, 100%), 1fr));
  gap: 26px 18px;
}
.cadena__paso {
  position: relative; text-align: center; display: grid; justify-items: center;
  --hilo: var(--confianza);
}
.cadena__paso--corazon   { --hilo: var(--corazon); }
.cadena__paso--esperanza { --hilo: var(--esperanza); }
.cadena__paso--bienestar { --hilo: var(--bienestar); }
.cadena__paso--calidez   { --hilo: var(--calidez); }
.cadena__paso h4 { font-size: .98rem; margin-top: 12px; }
.cadena__paso p { font-size: .87rem; color: var(--tinta-2); margin: 6px 0 0; max-width: 24ch; }

.cadena__aro { width: 88px; height: 88px; }
.cadena__num {
  display: grid; place-items: center;
  width: 28px; height: 28px; margin-top: 14px; border-radius: 50%;
  color: var(--blanco); font-size: .82rem; font-weight: 800;
  background: var(--confianza);
}
.cadena__paso--corazon   .cadena__num { background: var(--corazon-fuerte); }
.cadena__paso--esperanza .cadena__num { background: #C89000; }
.cadena__paso--bienestar .cadena__num { background: #1A6B54; }
.cadena__paso--calidez   .cadena__num { background: #5F63A4; }

/* El hilo solo aparece cuando los pasos caben en fila y se leen como secuencia */
@media (min-width: 1040px) {
  .cadena__paso:not(:last-child)::after,
  .cadena__paso:not(:last-child)::before { content: ''; position: absolute; top: 43px; }
  .cadena__paso:not(:last-child)::after {
    left: calc(50% + 56px); right: calc(-50% + 66px); height: 2px;
    background-image: linear-gradient(to right, var(--hilo) 58%, transparent 58%);
    background-size: 11px 2px; background-repeat: repeat-x;
  }
  .cadena__paso:not(:last-child)::before {
    right: calc(-50% + 56px);
    border: 5px solid transparent; border-left-color: var(--hilo);
    margin-top: -4px;
  }
}

/* Tres columnas separadas por filetes, como en la referencia */
.tres-columnas {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 24px;
}
.tres-columnas > * + * { border-left: 1px solid var(--linea-fria); padding-left: 24px; }
@media (max-width: 760px) {
  .tres-columnas > * + * { border-left: none; border-top: 1px solid var(--linea-fria); padding: 20px 0 0; }
}

.ilustracion { width: 100%; height: auto; max-width: 380px; margin-inline: auto; }

/* Preguntas frecuentes */
.pregunta {
  background: var(--blanco); border: 1px solid var(--linea);
  border-radius: var(--r-sm); padding: 4px 18px;
}
.pregunta summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 0; cursor: pointer; font-weight: 700; list-style: none;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary:hover { color: var(--confianza); }
.pregunta__signo {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--corazon-tenue); color: var(--corazon-fuerte);
  transition: transform var(--t) var(--ease);
}
.pregunta[open] .pregunta__signo { transform: rotate(45deg); }
.pregunta p { margin: 0 0 16px; color: var(--tinta-2); font-size: .95rem; }

/* Enlaces a redes en el pie */
.redes { display: flex; gap: 9px; }
.redes a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; background: var(--blanco); border: 1px solid var(--linea);
  color: var(--confianza);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.redes a:hover { background: var(--confianza); color: var(--blanco); }

/* ── Centrado vertical en teléfono (páginas públicas) ───────────────────────
   En el móvil, las páginas públicas CORTAS (entrar, registro…) se centran
   verticalmente en la primera pantalla en vez de quedar pegadas arriba. Las
   LARGAS (portada) siguen arriba con scroll: el `margin-block:auto` solo centra
   cuando sobra sitio; si el contenido llena la pantalla, el margen se colapsa.
   El `min-height` da a `main` el alto de la pantalla menos la cabecera, sin que
   el pie (muy alto) le robe el sitio; el pie queda debajo del pliegue. */
@media (max-width: 760px) {
  body[data-modo="publico"] #principal.page {
    min-height: calc(100vh - 69px);
    min-height: calc(100svh - 69px);
    display: flex; flex-direction: column;
  }
  body[data-modo="publico"] #principal.page > .vista { margin-block: auto; }

  /* Login: el formulario se centra en la primera pantalla y la ayuda («Cuentas
     de prueba») queda debajo del pliegue. Resta cabecera + respiro del `.page`. */
  .auth-foco {
    min-height: calc(100vh - 130px);
    min-height: calc(100svh - 130px);
    display: flex; flex-direction: column; justify-content: center;
  }
}

/* ══ Burbuja de soporte (chat en vivo) ═══════════════════════════════════════ */
.soporte { position: fixed; right: 20px; bottom: 20px; z-index: 300;
  font-family: 'Nunito', system-ui, sans-serif; }
/* `display:flex/grid` de abajo le gana al atributo [hidden] del navegador; se
   restablece explícitamente para poder ocultar el panel, el badge y los datos. */
.soporte [hidden] { display: none !important; }
.soporte__burbuja {
  position: relative; width: 58px; height: 58px; border-radius: 50%;
  border: none; cursor: pointer; background: var(--corazon-fuerte); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(206, 65, 65, .38);
  transition: transform .14s ease, box-shadow .14s ease;
}
.soporte__burbuja:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(206, 65, 65, .46); }
.soporte__badge {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: #0D2B4E; color: #fff; border: 2px solid #fff;
  font-size: .72rem; font-weight: 800; display: grid; place-items: center;
}
.soporte__panel {
  position: absolute; right: 0; bottom: 72px; width: 360px; max-width: calc(100vw - 32px);
  height: 470px; max-height: calc(100vh - 120px);
  background: #fff; border: 1px solid var(--linea, #EAE2DC); border-radius: 18px;
  box-shadow: 0 22px 60px rgba(13, 43, 78, .22); display: flex; flex-direction: column; overflow: hidden;
}
.soporte__cab {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; background: var(--corazon-fuerte); color: #fff;
}
.soporte__cab strong { display: block; font-size: 1rem; }
.soporte__cab span { font-size: .82rem; opacity: .9; }
.soporte__x { background: rgba(255,255,255,.16); border: none; color: #fff; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.soporte__x:hover { background: rgba(255,255,255,.28); }
.soporte__cuerpo { flex: 1 1 auto; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  background: var(--nube, #FBF7F3); }
.soporte__bienvenida { margin: auto 0; text-align: center; color: var(--tinta-2, #5A6B84); }
.soporte__sello { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 10px;
  display: grid; place-items: center; background: var(--corazon-suave, rgba(206,65,65,.1)); color: var(--corazon-fuerte); }
.soporte__bienvenida p { margin: 0; font-size: .92rem; line-height: 1.5; }
.soporte__msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.45;
  word-wrap: break-word; white-space: pre-wrap; }
.soporte__msg--yo { align-self: flex-end; background: var(--corazon-fuerte); color: #fff; border-bottom-right-radius: 4px; }
.soporte__msg--equipo { align-self: flex-start; background: #fff; color: var(--tinta, #12253F);
  border: 1px solid var(--linea, #EAE2DC); border-bottom-left-radius: 4px; }
.soporte__error { align-self: center; font-size: .82rem; color: var(--corazon-fuerte); text-align: center; }
.soporte__pie { border-top: 1px solid var(--linea, #EAE2DC); padding: 10px; background: #fff; display: grid; gap: 8px; }
.soporte__datos { display: grid; gap: 8px; }
.soporte__datos .input { padding: 9px 12px; font-size: .9rem; }
.soporte__envio { display: flex; align-items: flex-end; gap: 8px; }
.soporte__envio textarea { resize: none; min-height: 42px; max-height: 96px; padding: 10px 12px; font-size: .92rem; line-height: 1.4; }
.soporte__envio .btn { flex: none; width: 42px; height: 42px; padding: 0; border-radius: 12px; }
@media (max-width: 480px) {
  .soporte { right: 14px; bottom: 14px; }
  .soporte__panel { width: calc(100vw - 28px); height: min(72vh, 540px); }
}

/* ══ Autorización de datos (habeas data) ═════════════════════════════════════ */
/* Casilla de aceptación (registro y popup) */
.check-acepta { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px;
  font-size: .9rem; line-height: 1.5; color: var(--tinta-2); cursor: pointer; }
.check-acepta input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin-top: 1px;
  accent-color: var(--corazon-fuerte); cursor: pointer; }
.check-acepta a { font-weight: 700; }

/* Recuadro para agrupar campos relacionados (p. ej. contacto de emergencia) */
.campo-grupo { border: 1px solid var(--linea); border-radius: 14px; padding: 14px 16px 16px;
  margin: 2px 0; }
.campo-grupo > legend { padding: 0 8px; font-weight: 700; font-size: .92rem; color: var(--tinta-2); }

/* Popup bloqueante */
.consent-overlay { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center;
  padding: 20px; background: rgba(9, 24, 43, .62); backdrop-filter: blur(3px); overflow-y: auto; }
.consent-card { width: min(100%, 480px); background: #fff; border-radius: 20px; padding: 28px 26px;
  box-shadow: 0 30px 70px rgba(9, 24, 43, .35); }
.consent-card h2 { font-size: 1.4rem; margin-bottom: 8px; }
.consent-sello { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  margin-bottom: 14px; background: var(--confianza-tenue); color: var(--confianza); }
.consent-check { margin: 18px 0; padding: 14px; border: 1px solid var(--linea); border-radius: 12px;
  background: var(--nube); align-items: flex-start; }

/* Páginas legales */
.legal .legal-migas { font-size: .84rem; color: var(--tinta-2); margin: 0; }
.legal h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-top: 6px; }
.legal-doc { line-height: 1.7; }
.legal-doc p, .legal-doc li { color: var(--tinta); }
.legal-h { font-size: 1.15rem; margin: 26px 0 8px; color: var(--confianza); }
.legal-lista { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.legal-nota { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--linea);
  font-size: .9rem; color: var(--tinta-2); }
.legal-pend { background: #FFF3C4; color: #6B5300; padding: 1px 6px; border-radius: 5px;
  font-weight: 700; font-size: .92em; }

/* == Decoracion de fondos =================================================
   Dibujos del manual con el acabado 3D de los botones (degradado, brillo y
   sombra), girados y a distancias del borde variadas para que se lean como
   esparcidos y ninguno pise a otro ni al texto. Los blobs pastel asoman
   apenas desde fuera del lienzo, translucidos. Las bandas azules van
   limpias a proposito y en pantallas angostas todo se apaga. */

.banda--crema {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-7 -6 38 38'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FFB5B5'/%3E%3Cstop offset='.55' stop-color='%23FF6B6B'/%3E%3Cstop offset='1' stop-color='%23BF5050'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%23BF5050' flood-opacity='.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='.5' filter='url%28%23f%29' transform='rotate%28-14 12 12%29'%3E%3Cpath d='M12 21c-6-4.5-9-7.8-9-11.4C3 6.4 5 4.5 7.6 4.5c1.6 0 3.2.8 4.4 2.2 1.2-1.4 2.8-2.2 4.4-2.2C19 4.5 21 6.4 21 9.6c0 3.6-3 6.9-9 11.4z' fill='url%28%23g%29'/%3E%3Cellipse cx='8.6' cy='8.2' rx='2.6' ry='1.7' fill='%23FFFFFF' opacity='.35' transform='rotate%28-18 8.6 8.2%29'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -7 48 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FFE5AB'/%3E%3Cstop offset='.55' stop-color='%23FFCB57'/%3E%3Cstop offset='1' stop-color='%23BF9841'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%23BF9841' flood-opacity='.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='.55' filter='url%28%23f%29' transform='rotate%2810 16 16%29'%3E%3Cg stroke='url%28%23g%29' stroke-width='2.6' stroke-linecap='round'%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%280 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%2845 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%2890 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%28135 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%28180 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%28225 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%28270 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%28315 16 16%29'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='6.4' fill='url%28%23g%29'/%3E%3Cellipse cx='14' cy='13.6' rx='2.4' ry='1.5' fill='%23FFFFFF' opacity='.4' transform='rotate%28-20 14 13.6%29'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -7 48 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23C6C8E2'/%3E%3Cstop offset='.55' stop-color='%238E92C6'/%3E%3Cstop offset='1' stop-color='%236A6E94'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%236A6E94' flood-opacity='.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='.5' filter='url%28%23f%29' transform='rotate%2818 16 16%29'%3E%3Cellipse cx='16' cy='7' rx='4.6' ry='7' transform='rotate%280 16 16%29' fill='url%28%23g%29'/%3E%3Cellipse cx='16' cy='7' rx='4.6' ry='7' transform='rotate%2872 16 16%29' fill='url%28%23g%29'/%3E%3Cellipse cx='16' cy='7' rx='4.6' ry='7' transform='rotate%28144 16 16%29' fill='url%28%23g%29'/%3E%3Cellipse cx='16' cy='7' rx='4.6' ry='7' transform='rotate%28216 16 16%29' fill='url%28%23g%29'/%3E%3Cellipse cx='16' cy='7' rx='4.6' ry='7' transform='rotate%28288 16 16%29' fill='url%28%23g%29'/%3E%3Ccircle cx='16' cy='16' r='4.4' fill='%23FFCB57'/%3E%3Cellipse cx='14.6' cy='14.6' rx='1.6' ry='1' fill='%23FFFFFF' opacity='.45' transform='rotate%28-20 14.6 14.6%29'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -7 44 46'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23B6E5D6'/%3E%3Cstop offset='.55' stop-color='%236CCBAE'/%3E%3Cstop offset='1' stop-color='%23519882'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%23519882' flood-opacity='.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='.5' filter='url%28%23f%29' transform='rotate%28-22 14 15%29'%3E%3Cpath d='M2 2c14 2 24 14 24 26C12 28 2 16 2 4z' fill='url%28%23g%29'/%3E%3Cpath d='M4 6c8 7 14 15 19 21' stroke='%23FFFFFF' stroke-opacity='.55' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-9 -9 66 44'%3E%3Cdefs%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%23B24B4B' flood-opacity='.35'/%3E%3C/filter%3E%3ClinearGradient id='gc' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FF9F9F'/%3E%3Cstop offset='1' stop-color='%23FF6B6B'/%3E%3C/linearGradient%3E%3ClinearGradient id='ga' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FFDD92'/%3E%3Cstop offset='1' stop-color='%23FFCB57'/%3E%3C/linearGradient%3E%3ClinearGradient id='gv' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%239FDDCA'/%3E%3Cstop offset='1' stop-color='%236CCBAE'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg opacity='.55' filter='url%28%23f%29' transform='rotate%28-7 24 13%29' fill='none' stroke-linecap='round' stroke-width='4.4'%3E%3Cpath d='M4 24a20 20 0 0 1 40 0' stroke='url%28%23gc%29'/%3E%3Cpath d='M10 24a14 14 0 0 1 28 0' stroke='url%28%23ga%29'/%3E%3Cpath d='M16 24a8 8 0 0 1 16 0' stroke='url%28%23gv%29'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -7 48 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FFE5AB'/%3E%3Cstop offset='.55' stop-color='%23FFCB57'/%3E%3Cstop offset='1' stop-color='%23BF9841'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%23BF9841' flood-opacity='.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='.6' filter='url%28%23f%29' transform='rotate%2824 16 16%29'%3E%3Cpath d='M16 1l3.4 11.6L31 16l-11.6 3.4L16 31l-3.4-11.6L1 16l11.6-3.4z' fill='url%28%23g%29'/%3E%3Cellipse cx='13.4' cy='11.4' rx='2' ry='1.2' fill='%23FFFFFF' opacity='.4' transform='rotate%28-24 13.4 11.4%29'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 3% 9%, 95% 5%, 1% 44%, 98% 55%, 5% 93%, 93% 90%;
  background-size: 140px, 165px, 115px, 145px, 155px, 68px;
}
.banda--nube {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -7 48 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FFE5AB'/%3E%3Cstop offset='.55' stop-color='%23FFCB57'/%3E%3Cstop offset='1' stop-color='%23BF9841'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%23BF9841' flood-opacity='.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='.55' filter='url%28%23f%29' transform='rotate%28-12 16 16%29'%3E%3Cg stroke='url%28%23g%29' stroke-width='2.6' stroke-linecap='round'%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%280 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%2845 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%2890 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%28135 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%28180 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%28225 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%28270 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%28315 16 16%29'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='6.4' fill='url%28%23g%29'/%3E%3Cellipse cx='14' cy='13.6' rx='2.4' ry='1.5' fill='%23FFFFFF' opacity='.4' transform='rotate%28-20 14 13.6%29'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-7 -6 38 38'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FFB5B5'/%3E%3Cstop offset='.55' stop-color='%23FF6B6B'/%3E%3Cstop offset='1' stop-color='%23BF5050'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%23BF5050' flood-opacity='.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='.5' filter='url%28%23f%29' transform='rotate%2816 12 12%29'%3E%3Cpath d='M12 21c-6-4.5-9-7.8-9-11.4C3 6.4 5 4.5 7.6 4.5c1.6 0 3.2.8 4.4 2.2 1.2-1.4 2.8-2.2 4.4-2.2C19 4.5 21 6.4 21 9.6c0 3.6-3 6.9-9 11.4z' fill='url%28%23g%29'/%3E%3Cellipse cx='8.6' cy='8.2' rx='2.6' ry='1.7' fill='%23FFFFFF' opacity='.35' transform='rotate%28-18 8.6 8.2%29'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -7 48 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FFB5B5'/%3E%3Cstop offset='.55' stop-color='%23FF6B6B'/%3E%3Cstop offset='1' stop-color='%23BF5050'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%23BF5050' flood-opacity='.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='.5' filter='url%28%23f%29' transform='rotate%28-20 16 16%29'%3E%3Cellipse cx='16' cy='7' rx='4.6' ry='7' transform='rotate%280 16 16%29' fill='url%28%23g%29'/%3E%3Cellipse cx='16' cy='7' rx='4.6' ry='7' transform='rotate%2872 16 16%29' fill='url%28%23g%29'/%3E%3Cellipse cx='16' cy='7' rx='4.6' ry='7' transform='rotate%28144 16 16%29' fill='url%28%23g%29'/%3E%3Cellipse cx='16' cy='7' rx='4.6' ry='7' transform='rotate%28216 16 16%29' fill='url%28%23g%29'/%3E%3Cellipse cx='16' cy='7' rx='4.6' ry='7' transform='rotate%28288 16 16%29' fill='url%28%23g%29'/%3E%3Ccircle cx='16' cy='16' r='4.4' fill='%23FFCB57'/%3E%3Cellipse cx='14.6' cy='14.6' rx='1.6' ry='1' fill='%23FFFFFF' opacity='.45' transform='rotate%28-20 14.6 14.6%29'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -7 44 46'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23B6E5D6'/%3E%3Cstop offset='.55' stop-color='%236CCBAE'/%3E%3Cstop offset='1' stop-color='%23519882'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%23519882' flood-opacity='.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='.5' filter='url%28%23f%29' transform='rotate%2814 14 15%29'%3E%3Cpath d='M2 2c14 2 24 14 24 26C12 28 2 16 2 4z' fill='url%28%23g%29'/%3E%3Cpath d='M4 6c8 7 14 15 19 21' stroke='%23FFFFFF' stroke-opacity='.55' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-9 -8 62 44'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23C6C8E2'/%3E%3Cstop offset='.55' stop-color='%238E92C6'/%3E%3Cstop offset='1' stop-color='%236A6E94'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%236A6E94' flood-opacity='.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='.45' filter='url%28%23f%29' transform='rotate%28-6 22 13%29'%3E%3Cpath d='M10 24a8 8 0 1 1 2.5-15.6A10 10 0 0 1 31 6.6 8.4 8.4 0 0 1 34 24z' fill='url%28%23g%29'/%3E%3Cellipse cx='15' cy='11' rx='4' ry='2' fill='%23FFFFFF' opacity='.5'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -7 48 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23C6C8E2'/%3E%3Cstop offset='.55' stop-color='%238E92C6'/%3E%3Cstop offset='1' stop-color='%236A6E94'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%236A6E94' flood-opacity='.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='.55' filter='url%28%23f%29' transform='rotate%2830 16 16%29'%3E%3Cpath d='M16 1l3.4 11.6L31 16l-11.6 3.4L16 31l-3.4-11.6L1 16l11.6-3.4z' fill='url%28%23g%29'/%3E%3Cellipse cx='13.4' cy='11.4' rx='2' ry='1.2' fill='%23FFFFFF' opacity='.4' transform='rotate%28-24 13.4 11.4%29'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 2% 10%, 97% 5%, 4% 55%, 96% 48%, 1% 95%, 94% 92%;
  background-size: 165px, 125px, 115px, 135px, 145px, 62px;
}
.banda--calidez {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -7 48 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FFE5AB'/%3E%3Cstop offset='.55' stop-color='%23FFCB57'/%3E%3Cstop offset='1' stop-color='%23BF9841'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%23BF9841' flood-opacity='.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='.55' filter='url%28%23f%29' transform='rotate%2812 16 16%29'%3E%3Cellipse cx='16' cy='7' rx='4.6' ry='7' transform='rotate%280 16 16%29' fill='url%28%23g%29'/%3E%3Cellipse cx='16' cy='7' rx='4.6' ry='7' transform='rotate%2872 16 16%29' fill='url%28%23g%29'/%3E%3Cellipse cx='16' cy='7' rx='4.6' ry='7' transform='rotate%28144 16 16%29' fill='url%28%23g%29'/%3E%3Cellipse cx='16' cy='7' rx='4.6' ry='7' transform='rotate%28216 16 16%29' fill='url%28%23g%29'/%3E%3Cellipse cx='16' cy='7' rx='4.6' ry='7' transform='rotate%28288 16 16%29' fill='url%28%23g%29'/%3E%3Ccircle cx='16' cy='16' r='4.4' fill='%23FF6B6B'/%3E%3Cellipse cx='14.6' cy='14.6' rx='1.6' ry='1' fill='%23FFFFFF' opacity='.45' transform='rotate%28-20 14.6 14.6%29'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -7 44 46'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23B6E5D6'/%3E%3Cstop offset='.55' stop-color='%236CCBAE'/%3E%3Cstop offset='1' stop-color='%23519882'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%23519882' flood-opacity='.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='.5' filter='url%28%23f%29' transform='rotate%28-16 14 15%29'%3E%3Cpath d='M2 2c14 2 24 14 24 26C12 28 2 16 2 4z' fill='url%28%23g%29'/%3E%3Cpath d='M4 6c8 7 14 15 19 21' stroke='%23FFFFFF' stroke-opacity='.55' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-7 -6 38 38'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23C6C8E2'/%3E%3Cstop offset='.55' stop-color='%238E92C6'/%3E%3Cstop offset='1' stop-color='%236A6E94'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%236A6E94' flood-opacity='.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='.55' filter='url%28%23f%29' transform='rotate%2818 12 12%29'%3E%3Cpath d='M12 21c-6-4.5-9-7.8-9-11.4C3 6.4 5 4.5 7.6 4.5c1.6 0 3.2.8 4.4 2.2 1.2-1.4 2.8-2.2 4.4-2.2C19 4.5 21 6.4 21 9.6c0 3.6-3 6.9-9 11.4z' fill='url%28%23g%29'/%3E%3Cellipse cx='8.6' cy='8.2' rx='2.6' ry='1.7' fill='%23FFFFFF' opacity='.35' transform='rotate%28-18 8.6 8.2%29'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-9 -9 66 44'%3E%3Cdefs%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%23B24B4B' flood-opacity='.35'/%3E%3C/filter%3E%3ClinearGradient id='gc' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FF9F9F'/%3E%3Cstop offset='1' stop-color='%23FF6B6B'/%3E%3C/linearGradient%3E%3ClinearGradient id='ga' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FFDD92'/%3E%3Cstop offset='1' stop-color='%23FFCB57'/%3E%3C/linearGradient%3E%3ClinearGradient id='gv' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%239FDDCA'/%3E%3Cstop offset='1' stop-color='%236CCBAE'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg opacity='.5' filter='url%28%23f%29' transform='rotate%286 24 13%29' fill='none' stroke-linecap='round' stroke-width='4.4'%3E%3Cpath d='M4 24a20 20 0 0 1 40 0' stroke='url%28%23gc%29'/%3E%3Cpath d='M10 24a14 14 0 0 1 28 0' stroke='url%28%23ga%29'/%3E%3Cpath d='M16 24a8 8 0 0 1 16 0' stroke='url%28%23gv%29'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 2% 10%, 97% 14%, 4% 88%, 95% 90%;
  background-size: 125px, 135px, 125px, 145px;
}
#principal.page {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg opacity='.55'%3E%3Ccircle cx='200' cy='200' r='198' fill='%23D7E5F8'/%3E%3Ccircle cx='118' cy='268' r='22' fill='%23F3B8B4'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg opacity='.55'%3E%3Ccircle cx='200' cy='200' r='198' fill='%23FBD9C8'/%3E%3Ccircle cx='292' cy='250' r='22' fill='%23C9A6E8'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg opacity='.55'%3E%3Ccircle cx='200' cy='200' r='198' fill='%23FDEDBC'/%3E%3Ccircle cx='150' cy='130' r='22' fill='%23A9DCC8'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg opacity='.55'%3E%3Ccircle cx='200' cy='200' r='198' fill='%23DFF3EA'/%3E%3Ccircle cx='260' cy='140' r='22' fill='%23F3B8B4'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg opacity='.55'%3E%3Ccircle cx='200' cy='200' r='198' fill='%23E6E7F6'/%3E%3Ccircle cx='140' cy='260' r='22' fill='%23FFCB57'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left -430px top 8%, right -320px top 30%, left -300px top 52%, right -280px top 72%, left -310px top 92%;
  background-attachment: fixed;
  background-size: 540px, 580px, 430px, 470px, 480px;
}
#principal.page:has(.auth-vista) {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-7 -6 38 38'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FFB5B5'/%3E%3Cstop offset='.55' stop-color='%23FF6B6B'/%3E%3Cstop offset='1' stop-color='%23BF5050'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%23BF5050' flood-opacity='.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='.5' filter='url%28%23f%29' transform='rotate%28-12 12 12%29'%3E%3Cpath d='M12 21c-6-4.5-9-7.8-9-11.4C3 6.4 5 4.5 7.6 4.5c1.6 0 3.2.8 4.4 2.2 1.2-1.4 2.8-2.2 4.4-2.2C19 4.5 21 6.4 21 9.6c0 3.6-3 6.9-9 11.4z' fill='url%28%23g%29'/%3E%3Cellipse cx='8.6' cy='8.2' rx='2.6' ry='1.7' fill='%23FFFFFF' opacity='.35' transform='rotate%28-18 8.6 8.2%29'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -7 44 46'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23B6E5D6'/%3E%3Cstop offset='.55' stop-color='%236CCBAE'/%3E%3Cstop offset='1' stop-color='%23519882'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%23519882' flood-opacity='.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='.5' filter='url%28%23f%29' transform='rotate%2820 14 15%29'%3E%3Cpath d='M2 2c14 2 24 14 24 26C12 28 2 16 2 4z' fill='url%28%23g%29'/%3E%3Cpath d='M4 6c8 7 14 15 19 21' stroke='%23FFFFFF' stroke-opacity='.55' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -7 48 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FFE5AB'/%3E%3Cstop offset='.55' stop-color='%23FFCB57'/%3E%3Cstop offset='1' stop-color='%23BF9841'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%23BF9841' flood-opacity='.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='.55' filter='url%28%23f%29' transform='rotate%28-8 16 16%29'%3E%3Cg stroke='url%28%23g%29' stroke-width='2.6' stroke-linecap='round'%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%280 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%2845 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%2890 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%28135 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%28180 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%28225 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%28270 16 16%29'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' transform='rotate%28315 16 16%29'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='6.4' fill='url%28%23g%29'/%3E%3Cellipse cx='14' cy='13.6' rx='2.4' ry='1.5' fill='%23FFFFFF' opacity='.4' transform='rotate%28-20 14 13.6%29'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-7 -6 38 38'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23C6C8E2'/%3E%3Cstop offset='.55' stop-color='%238E92C6'/%3E%3Cstop offset='1' stop-color='%236A6E94'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%236A6E94' flood-opacity='.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='.5' filter='url%28%23f%29' transform='rotate%2814 12 12%29'%3E%3Cpath d='M12 21c-6-4.5-9-7.8-9-11.4C3 6.4 5 4.5 7.6 4.5c1.6 0 3.2.8 4.4 2.2 1.2-1.4 2.8-2.2 4.4-2.2C19 4.5 21 6.4 21 9.6c0 3.6-3 6.9-9 11.4z' fill='url%28%23g%29'/%3E%3Cellipse cx='8.6' cy='8.2' rx='2.6' ry='1.7' fill='%23FFFFFF' opacity='.35' transform='rotate%28-18 8.6 8.2%29'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -7 48 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FFE5AB'/%3E%3Cstop offset='.55' stop-color='%23FFCB57'/%3E%3Cstop offset='1' stop-color='%23BF9841'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%23BF9841' flood-opacity='.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='.55' filter='url%28%23f%29' transform='rotate%28-26 16 16%29'%3E%3Cpath d='M16 1l3.4 11.6L31 16l-11.6 3.4L16 31l-3.4-11.6L1 16l11.6-3.4z' fill='url%28%23g%29'/%3E%3Cellipse cx='13.4' cy='11.4' rx='2' ry='1.2' fill='%23FFFFFF' opacity='.4' transform='rotate%28-24 13.4 11.4%29'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-9 -9 66 44'%3E%3Cdefs%3E%3Cfilter id='f' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='5' flood-color='%23B24B4B' flood-opacity='.35'/%3E%3C/filter%3E%3ClinearGradient id='gc' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FF9F9F'/%3E%3Cstop offset='1' stop-color='%23FF6B6B'/%3E%3C/linearGradient%3E%3ClinearGradient id='ga' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FFDD92'/%3E%3Cstop offset='1' stop-color='%23FFCB57'/%3E%3C/linearGradient%3E%3ClinearGradient id='gv' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%239FDDCA'/%3E%3Cstop offset='1' stop-color='%236CCBAE'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg opacity='.5' filter='url%28%23f%29' transform='rotate%289 24 13%29' fill='none' stroke-linecap='round' stroke-width='4.4'%3E%3Cpath d='M4 24a20 20 0 0 1 40 0' stroke='url%28%23gc%29'/%3E%3Cpath d='M10 24a14 14 0 0 1 28 0' stroke='url%28%23ga%29'/%3E%3Cpath d='M16 24a8 8 0 0 1 16 0' stroke='url%28%23gv%29'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 7% 12%, 93% 22%, 5% 78%, 95% 76%, 17% 47%, 84% 50%;
  background-size: 170px, 155px, 180px, 135px, 62px, 145px;
}
/* El backoffice no lleva blobs decorativos: su fondo es la marca de agua del
   corazon de trazo (oficina.css) — una superficie continua, sin manchas
   "cortadas" asomando desde los bordes. */

@media (max-width: 900px) {
  .banda--crema, .banda--nube, .banda--calidez,
  #principal.page, #principal.page:has(.auth-vista) {
    background-image: none;
  }
}

/* == Flotacion de los dibujos =============================================
   Deriva lenta: cada dibujo sube, baja y se ladea unos pixeles, con duracion
   distinta por banda para que no respiren al unisono. Solo se anima la
   posicion del fondo; con "menos movimiento" activado, todo queda quieto. */

@keyframes flota-crema {
  0%   { background-position: 3% 9%,   95% 5%,  1% 44%,   98% 55%,   5% 93%,  93% 90%; }
  33%  { background-position: 3.6% 14%, 94.4% 10%, 1.8% 39%, 97.2% 60%, 5.8% 88%, 92.4% 85%; }
  66%  { background-position: 2.5% 12%, 95.6% 8%, 1.2% 48%, 98.4% 51%, 4.4% 96%, 93.8% 93%; }
  100% { background-position: 3% 9%,   95% 5%,  1% 44%,   98% 55%,   5% 93%,  93% 90%; }
}
.banda--crema { animation: flota-crema 16s ease-in-out infinite; }

@keyframes flota-nube {
  0%   { background-position: 2% 10%,  97% 5%,  4% 55%,   96% 48%,   1% 95%,  94% 92%; }
  33%  { background-position: 2.7% 15%, 96.3% 10%, 4.7% 50%, 95.3% 53%, 1.8% 90%, 93.3% 87%; }
  66%  { background-position: 1.5% 13%, 97.6% 8%, 3.4% 59%, 96.6% 44%, .5% 98%,  94.6% 95%; }
  100% { background-position: 2% 10%,  97% 5%,  4% 55%,   96% 48%,   1% 95%,  94% 92%; }
}
.banda--nube { animation: flota-nube 19s ease-in-out infinite; }

@keyframes flota-calidez {
  0%   { background-position: 2% 10%,  97% 14%,  4% 88%,   95% 90%; }
  33%  { background-position: 2.8% 15%, 96.2% 19%, 4.8% 83%, 94.2% 85%; }
  66%  { background-position: 1.4% 13%, 97.7% 11%, 3.3% 92%, 95.7% 93%; }
  100% { background-position: 2% 10%,  97% 14%,  4% 88%,   95% 90%; }
}
.banda--calidez { animation: flota-calidez 14s ease-in-out infinite; }

@keyframes flota-auth {
  0%   { background-position: 7% 12%,  93% 22%,  5% 78%,   95% 76%,  17% 47%,  84% 50%; }
  33%  { background-position: 7.6% 17%, 92.4% 27%, 5.7% 73%, 94.3% 81%, 17.7% 42%, 83.3% 55%; }
  66%  { background-position: 6.5% 15%, 93.6% 24%, 4.5% 82%, 95.6% 72%, 16.4% 51%, 84.7% 45%; }
  100% { background-position: 7% 12%,  93% 22%,  5% 78%,   95% 76%,  17% 47%,  84% 50%; }
}
#principal.page:has(.auth-vista) { animation: flota-auth 17s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .banda--crema, .banda--nube, .banda--calidez,
  #principal.page:has(.auth-vista) { animation: none; }
}


/* == Efectos llamativos ====================================================
   Aparicion al scroll, reflejo de las tarjetas 3D, corazones que suben como
   burbujas en el hero, titular con brillo y micro-detalles. Todo decorativo
   y apagado con "menos movimiento". */

/* Aparicion al hacer scroll (efectos.js pone las clases) */
.revela {
  opacity: 0; transform: translateY(24px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .3, 1);
}
.revela--visto { opacity: 1; transform: none; }

/* Reflejo que sigue al cursor en las tarjetas inclinables */
.card--link::after, article.card--plano::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(430px circle at var(--gx, 50%) var(--gy, 50%),
              rgba(255, 255, 255, .5), transparent 46%);
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.card--link:hover::after, article.card--plano:hover::after { opacity: 1; }

/* Corazones que suben como burbujas por el hero */
.hero > .enter { position: relative; z-index: 1; }
.hero__burbujas {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; z-index: 0;
}
.hero__burbujas span {
  position: absolute; bottom: -36px;
  width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21c-6-4.5-9-7.8-9-11.4C3 6.4 5 4.5 7.6 4.5c1.6 0 3.2.8 4.4 2.2 1.2-1.4 2.8-2.2 4.4-2.2C19 4.5 21 6.4 21 9.6c0 3.6-3 6.9-9 11.4z' fill='%23FF6B6B'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0;
  animation: burbuja-sube 9s linear infinite;
}
.hero__burbujas span:nth-child(1) { left: 6%;  animation-delay: 0s;    width: 18px; height: 18px; }
.hero__burbujas span:nth-child(2) { left: 22%; animation-delay: 3.2s;  width: 26px; height: 26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21c-6-4.5-9-7.8-9-11.4C3 6.4 5 4.5 7.6 4.5c1.6 0 3.2.8 4.4 2.2 1.2-1.4 2.8-2.2 4.4-2.2C19 4.5 21 6.4 21 9.6c0 3.6-3 6.9-9 11.4z' fill='%23FFCB57'/%3E%3C/svg%3E"); animation-duration: 11s; }
.hero__burbujas span:nth-child(3) { left: 43%; animation-delay: 6.1s;  width: 15px; height: 15px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21c-6-4.5-9-7.8-9-11.4C3 6.4 5 4.5 7.6 4.5c1.6 0 3.2.8 4.4 2.2 1.2-1.4 2.8-2.2 4.4-2.2C19 4.5 21 6.4 21 9.6c0 3.6-3 6.9-9 11.4z' fill='%238E92C6'/%3E%3C/svg%3E"); animation-duration: 8s; }
.hero__burbujas span:nth-child(4) { left: 61%; animation-delay: 1.6s;  width: 20px; height: 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21c-6-4.5-9-7.8-9-11.4C3 6.4 5 4.5 7.6 4.5c1.6 0 3.2.8 4.4 2.2 1.2-1.4 2.8-2.2 4.4-2.2C19 4.5 21 6.4 21 9.6c0 3.6-3 6.9-9 11.4z' fill='%23FFCB57'/%3E%3C/svg%3E"); animation-duration: 10s; }
.hero__burbujas span:nth-child(5) { left: 78%; animation-delay: 4.7s;  width: 24px; height: 24px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21c-6-4.5-9-7.8-9-11.4C3 6.4 5 4.5 7.6 4.5c1.6 0 3.2.8 4.4 2.2 1.2-1.4 2.8-2.2 4.4-2.2C19 4.5 21 6.4 21 9.6c0 3.6-3 6.9-9 11.4z' fill='%238E92C6'/%3E%3C/svg%3E"); animation-duration: 12s; }
.hero__burbujas span:nth-child(6) { left: 92%; animation-delay: 7.4s;  width: 16px; height: 16px; }
@keyframes burbuja-sube {
  0%   { transform: translateY(0) rotate(-8deg) scale(.7); opacity: 0; }
  8%   { opacity: .8; }
  60%  { opacity: .75; }
  100% { transform: translateY(-560px) rotate(14deg) scale(1.05); opacity: 0; }
}

/* Micro-detalles: sellos que saltan y CTA con latido sutil */
.card:hover .sello, .garantia:hover .sello, .paso-hito:hover .sello {
  animation: sello-salta .55s ease;
}
@keyframes sello-salta {
  0%, 100% { transform: translateY(0) scale(1); }
  35%      { transform: translateY(-7px) scale(1.12); }
  65%      { transform: translateY(0) scale(.97); }
}
.hero .row .btn:first-child:not(:hover):not(:active) {
  animation: cta-late 2.6s ease-in-out infinite;
}
@keyframes cta-late {
  0%, 100% { transform: scale(1); }
  10%      { transform: scale(1.035); }
  20%      { transform: scale(1.005); }
  30%      { transform: scale(1.03); }
  44%      { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .revela { opacity: 1; transform: none; transition: none; }
  .hero__burbujas { display: none; }
  .hero h1 .hero__acento { animation: none; background: none; color: var(--corazon-fuerte); }
  .card:hover .sello, .garantia:hover .sello, .paso-hito:hover .sello { animation: none; }
  .hero .row .btn:first-child:not(:hover):not(:active) { animation: none; }
  #principal.page { background-attachment: scroll; }
}
