/* Hoja única de la web (Astro, sin JavaScript en el navegador). Móvil primero.
   PARTE 1 · Base estructural: mecánica que toda web necesita (accesibilidad, menú móvil sin JS, textos largos, tablas,
             aviso de cookies). Sin opinión visual: no hace falta tocarla.
   PARTE 2 · Marca «Recuerda+ lila»: reproduce el diseño de la web anterior (WordPress, tema Apper) por decisión de Toni
             (17-11-2026): Poppins, morados de la app, fondo lila, manchas de color difuminadas y capturas de la app. */

/* =====================================================================================================
   PARTE 1 · BASE ESTRUCTURAL
   ===================================================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--margen); }
.contenedor-estrecho { max-width: var(--ancho-texto); }
.saltar { position: absolute; left: -9999px; top: 8px; z-index: 30; background: var(--papel); color: var(--tinta); padding: 8px 12px; }
.saltar:focus { left: 16px; }

/* Menú: enlaces completos en ancho; en móvil, panel con <details> (sin JS) */
.menu-movil > summary { list-style: none; cursor: pointer; }
.menu-movil > summary::-webkit-details-marker { display: none; }
.menu-movil { display: none; }
@media (max-width: 1019px) {
  .menu .solo-ancho { display: none; }
  .menu-movil { display: block; }
}

/* Preguntas frecuentes con <details> */
.preguntas summary { cursor: pointer; }

/* Textos largos (blog, legales) */
.prosa table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; }
.prosa th, .prosa td { text-align: left; vertical-align: top; padding: 10px 12px; }

/* Botón flotante de WhatsApp (si sitio.whatsapp no está vacío) */
.whatsapp-flotante { position: fixed; z-index: 15; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 56px; height: 56px; }

/* Aviso de cookies (vanilla-cookieconsent): toma los tokens de la marca */
#cc-main {
  --cc-font-family: var(--letra-texto);
  --cc-primary-color: var(--tinta);
  --cc-secondary-color: var(--tinta-suave);
  --cc-link-color: var(--acento);
  --cc-btn-primary-bg: var(--acento);
  --cc-btn-primary-border-color: var(--acento);
  --cc-btn-primary-color: var(--sobre-acento);
  --cc-btn-primary-hover-bg: var(--tinta);
  --cc-btn-primary-hover-border-color: var(--tinta);
  --cc-btn-secondary-bg: var(--papel);
  --cc-btn-secondary-color: var(--tinta);
  --cc-btn-secondary-border-color: var(--linea);
  --cc-btn-secondary-hover-bg: var(--papel);
  --cc-btn-secondary-hover-color: var(--acento);
  --cc-btn-secondary-hover-border-color: var(--acento);
  --cc-separator-border-color: var(--linea);
  --cc-toggle-on-bg: var(--acento);
}
.enlace-boton, .pie-boton { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .whatsapp-flotante, .menu { display: none; } }

/* =====================================================================================================
   PARTE 2 · MARCA «Recuerda+ lila»
   Medidas sacadas de la web anterior a 1440 px: contenedor 1280, H1 55/700, textos 16/400 en #3e3f66,
   títulos en #32236f con una palabra resaltada en morado, cabecera blanca con sombra, pie #583bd3 + franja #6a49f2.
   ===================================================================================================== */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/poppins-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/poppins-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/poppins-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/poppins-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/poppins-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/poppins-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/poppins-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/poppins-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Nombres que usa la parte 1 */
  --papel: #ffffff;
  --tinta: #32236f;        /* títulos */
  --tinta-suave: #3e3f66;  /* texto */
  --linea: #e6e1fb;
  --acento: #6a49f2;       /* morado de la app (botones, insignias de la app) */
  --sobre-acento: #ffffff;
  --letra-titulos: 'Poppins', system-ui, sans-serif;
  --letra-texto: 'Poppins', system-ui, sans-serif;
  --ancho: 1280px;
  --ancho-texto: 820px;
  --margen: 20px;
  /* Propios de la marca */
  --lila: #f6f4fe;         /* fondo de la página */
  --morado-titulo: #5c3ed6;/* palabra resaltada del H1 */
  --morado-pie: #583bd3;
  --gris-icono: #839bc0;   /* el «+» de las preguntas */
  --radio-panel: 30px;
  --sombra-suave: 0 3px 37px rgba(0, 0, 0, .07);
  --sombra-tarjeta: 0 14px 40px rgba(50, 35, 111, .12);
}

body { background: var(--lila); color: var(--tinta-suave); font-family: var(--letra-texto); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--letra-titulos); color: var(--tinta); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
h1 span, h2 span { color: var(--acento); }
h1 span { color: var(--morado-titulo); }
h2 { font-size: clamp(28px, 6.5vw, 44px); }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--acento); }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 20; background: var(--papel); box-shadow: var(--sombra-suave); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.marca-nombre { font-weight: 700; font-size: 26px; letter-spacing: -.01em; color: var(--tinta); }
.marca-nombre span { color: var(--acento); }
.menu { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.menu a { color: var(--tinta-suave); text-decoration: none; }
.menu a:hover { color: var(--acento); }
.menu-boton { background: var(--acento); color: #fff !important; padding: 11px 24px; border-radius: 50px; font-weight: 600; transition: background .2s; }
.menu-boton:hover { background: var(--tinta); }
.menu-movil > summary { padding: 10px 4px; }
.menu-movil > summary span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--tinta); border-radius: 2px; }
.menu-movil-panel { position: absolute; left: 0; right: 0; top: 72px; background: var(--papel); box-shadow: var(--sombra-suave); padding: 12px var(--margen) 24px; display: grid; gap: 4px; }
.menu-movil-panel a { padding: 10px 0; font-size: 17px; }
.menu-movil-panel .boton { margin-top: 10px; text-align: center; }
@media (min-width: 1020px) {
  .cabecera .contenedor { min-height: 100px; }
  .marca-nombre { font-size: 34px; }
  .menu-movil-panel { top: 100px; }
}

.boton { display: inline-block; padding: 13px 28px; border-radius: 50px; border: 2px solid var(--acento); color: var(--acento); text-decoration: none; font-weight: 600; }
.boton-primario { background: var(--acento); color: var(--sobre-acento) !important; }

/* ---------- Manchas de color difuminadas (sustituyen a la imagen de fondo del tema, hecho con CSS) ---------- */
.portada, .bloque { position: relative; isolation: isolate; }
.portada::before, .bloque::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: 760px; height: 760px; border-radius: 50%;
  background:
    radial-gradient(circle at 38% 42%, rgba(160, 108, 245, .75), transparent 46%),
    radial-gradient(circle at 64% 38%, rgba(246, 138, 196, .7), transparent 46%),
    radial-gradient(circle at 52% 68%, rgba(255, 196, 160, .6), transparent 48%);
  filter: blur(70px);
}
.portada::before { top: -220px; right: -260px; }
.bloque::before { top: 40px; left: -320px; }
.bloque-invertido::before { left: auto; right: -320px; }

/* ---------- Composiciones con capturas ---------- */
.vista-app { position: relative; display: grid; justify-items: center; }
.vista-movil { width: min(72%, 300px); filter: drop-shadow(0 30px 40px rgba(50, 35, 111, .22)); }
.vista-tarjeta { position: absolute; border-radius: 22px; background: #fff; box-shadow: var(--sombra-tarjeta); }
.vista-mini { position: absolute; border-radius: 16px; box-shadow: var(--sombra-tarjeta); }
/* Círculo blanco detrás del móvil, como en la web anterior */
.vista-formulario::before, .vista-avisos::before {
  content: ''; position: absolute; z-index: -1; top: 8%; width: min(92%, 560px); aspect-ratio: 1; border-radius: 50%; background: #fff;
}
.vista-portada .vista-tarjeta { width: min(62%, 380px); right: -2%; bottom: -6%; }
.vista-formulario .vista-tarjeta { width: min(60%, 380px); right: -2%; top: 22%; }
.vista-formulario .vista-mini { width: min(44%, 260px); left: -2%; bottom: 6%; }
.vista-avisos .vista-tarjeta { width: min(62%, 400px); left: -2%; bottom: 10%; }

/* ---------- Portada ---------- */
.portada { padding: 48px 0 88px; overflow: hidden; }
.portada-rejilla { display: grid; gap: 56px; align-items: center; }
.portada h1 { font-size: clamp(36px, 9vw, 55px); line-height: 1.1; }
.portada .entradilla { font-size: 17px; font-weight: 500; color: var(--tinta-suave); max-width: 560px; }
.ventajas { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 24px 0 18px; font-size: 15px; font-weight: 500; color: var(--tinta); }
.ventajas li { display: flex; align-items: center; gap: 8px; }
.ventajas li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--acento); }
.tiendas { display: flex; flex-wrap: wrap; gap: 14px; scroll-margin-top: 120px; }
.tiendas img { width: 150px; height: auto; border-radius: 10px; }
.tiendas a { transition: transform .2s; }
.tiendas a:hover { transform: translateY(-2px); }
.tiendas-columna { flex-direction: column; align-items: flex-start; }

/* ---------- Panel blanco «No es una agenda…» ---------- */
.panel { background: var(--papel); border-radius: var(--radio-panel); margin: 0 auto; max-width: 1440px; padding: 24px 0 72px; }
.panel-movil { width: min(100%, 760px); margin: -40px auto 8px; }
.titulo-bloque { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.usos { display: grid; gap: 40px 32px; }
.uso-icono { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--acento); color: var(--acento); margin-bottom: 18px; }
.uso-icono .icono { width: 26px; height: 26px; }
.uso h3 { margin-bottom: 8px; }
.uso > p { font-size: 15px; }
/* Ejemplo de recuerdo con el aspecto de la lista de la app */
.ejemplo { border: 1px solid var(--linea); border-radius: 14px; padding: 12px 16px; background: #fcfbff; font-size: 14px; line-height: 1.45; }
.ejemplo p { margin: 0; }
.ejemplo-titulo { font-weight: 600; color: #111; }
.ejemplo-fecha { color: #111; }
.ejemplo-nota { color: #8a8a8e; }
.ejemplo-aviso { margin-top: 6px !important; color: var(--acento); font-weight: 500; }

/* ---------- Bloques con captura + texto ---------- */
.bloque { padding: 88px 0; overflow: hidden; }
.bloque-rejilla { display: grid; gap: 56px; align-items: center; }
.bloque-texto > p { font-size: 16px; }
.lista-check { display: grid; gap: 12px; margin-top: 8px; font-size: 15px; }
.lista-check li { display: flex; gap: 12px; align-items: flex-start; }
.lista-check .icono, .lista-avisos .icono { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--tinta); }
.lista-avisos { display: grid; gap: 28px; margin-top: 28px; }
.lista-avisos li { display: flex; gap: 14px; align-items: flex-start; }
.lista-avisos .icono { width: 26px; height: 26px; color: var(--acento); }
.lista-avisos h3 { font-size: 18px; margin-bottom: 6px; }
.lista-avisos p { font-size: 15px; margin: 0; }

/* ---------- Preguntas frecuentes ---------- */
.seccion { padding: 72px 0; }
.titulo-centrado { text-align: center; margin-bottom: 36px; }
.preguntas-lista { display: grid; gap: 14px; max-width: 1080px; margin: 0 auto; }
.preguntas details { background: var(--papel); border-radius: 10px; box-shadow: 0 2px 14px rgba(50, 35, 111, .05); }
.preguntas summary { list-style: none; position: relative; padding: 18px 56px 18px 22px; font-weight: 500; color: var(--tinta); }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::before, .preguntas summary::after { content: ''; position: absolute; right: 24px; top: 50%; background: var(--gris-icono); border-radius: 2px; transition: transform .2s; }
.preguntas summary::before { width: 18px; height: 3px; margin-top: -1.5px; }
.preguntas summary::after { width: 3px; height: 18px; margin-top: -9px; right: 31.5px; }
.preguntas details[open] summary::after { transform: scaleY(0); }
.preguntas details p { padding: 0 22px 20px; margin: 0; font-size: 15px; }
.preguntas-nota { text-align: center; margin-top: 28px; font-size: 15px; }

/* ---------- Páginas interiores (legales, 404) ---------- */
.migas { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 28px; font-size: 14px; color: var(--tinta-suave); }
.migas a { color: var(--tinta-suave); }
.cabeza-pagina { padding: 40px 0 8px; }
.cabeza-pagina h1 { font-size: clamp(30px, 7vw, 44px); }
.antetitulo { display: block; color: var(--acento); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.entradilla { font-size: 17px; }
.seccion-corta { padding: 24px 0 80px; }
.prosa { background: var(--papel); border-radius: 20px; padding: 28px 22px; }
.prosa h2 { font-size: 22px; margin-top: 1.6em; }
.prosa h2:first-child { margin-top: 0; }
.prosa ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; }
.prosa li { margin-bottom: 6px; }
.prosa th, .prosa td { border-bottom: 1px solid var(--linea); font-size: 15px; }
.prosa .aviso-revisar { background: #fff4d6; border-radius: 8px; padding: 10px 14px; }
.no-encontrada { padding: 96px 0; text-align: center; }
.acciones { margin-top: 28px; }

/* ---------- Pie ---------- */
.pie { background: var(--morado-pie); color: #f4f4f4; font-weight: 500; font-size: 15px; margin-top: 40px; }
.pie > .contenedor { padding-top: 64px; padding-bottom: 56px; }
.pie a { color: #f4f4f4; text-decoration: none; }
.pie a:hover { color: #fff; text-decoration: underline; }
.pie-columnas { display: grid; gap: 40px; }
.pie-columnas nav { display: grid; gap: 8px; align-content: start; }
.pie-logo { display: inline-block; margin-bottom: 14px; }
.pie-logo:hover { text-decoration: none !important; }
.pie .marca-nombre { color: #fff; font-size: 32px; }
.pie .marca-nombre span { color: #c9bdfc; }
.pie-marca p { margin: 0 0 10px; max-width: 320px; }
.pie-titulo { font-weight: 600; color: #fff; margin: 0 0 18px; font-size: 16px; position: relative; padding-bottom: 12px; }
.pie-titulo::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 1px; background: #fff; }
.pie .tiendas img { width: 150px; }
.pie-legal { margin: 0; background: var(--acento); color: #fff; text-align: center; font-size: 14px; font-weight: 600; padding: 20px var(--margen); }

/* ---------- Escritorio ---------- */
@media (min-width: 760px) {
  :root { --margen: 40px; }
  .usos { grid-template-columns: 1fr 1fr; }
  .prosa { padding: 44px 48px; }
  .pie-columnas { grid-template-columns: 1.4fr 1fr 1fr; }
  .pie .marca-nombre { font-size: 40px; }
}
@media (min-width: 1020px) {
  :root { --margen: 80px; }
  .portada { padding: 72px 0 120px; }
  .portada-rejilla { grid-template-columns: 1.05fr 1fr; gap: 40px; }
  .portada::before { top: -260px; right: -120px; width: 900px; height: 900px; }
  .bloque { padding: 110px 0; }
  .bloque-rejilla { grid-template-columns: 1fr 1fr; gap: 80px; }
  .bloque-invertido .bloque-texto { order: 0; }
  .usos { grid-template-columns: repeat(4, 1fr); }
  .panel { padding-bottom: 96px; }
  .seccion { padding: 96px 0; }
  .tiendas img { width: 160px; }
}
