/* Sitio de varias páginas: menú, cabecera de páginas internas, banda de llamada a la acción */
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 16px; background: var(--yellow); color: var(--ink); font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }

/* Cabecera */
.topbar__end { display: flex; align-items: center; gap: 10px; }
.topbar__flag { display: inline-block; width: 26px; height: 18px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); flex: none; }
.topbar__flag svg, .topbar__flag img { display: block; width: 100%; height: 100%; }
.topbar__flag img { object-fit: cover; }
.topbar__flag .topbar__globe { box-shadow: none; }
/* Traducción automática (Google): botón para volver al español / traducir, y aviso. */
.langsw { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 4px 11px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.langsw:hover, .langsw:focus-visible { background: rgba(255, 255, 255, .14); }
.langsw[hidden] { display: none; }
.trad-aviso { margin: 0; padding: 10px 16px; text-align: center; font-size: .78rem; color: var(--muted); background: var(--tint); }
.trad-aviso[hidden] { display: none; }
#google_translate_element { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
/* El widget de Google pone una barra arriba y desplaza la página: se oculta, la traducción sigue activa. */
.goog-te-banner-frame, iframe.skiptranslate, body > .skiptranslate { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* Fotos referenciales (16:9; el recorte, si hace falta, es por CSS y no cambia los archivos) */
.fphoto { margin: 22px 0 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: var(--tint); }
.fphoto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.routephoto--wide { aspect-ratio: 16 / 9; }

/* App móvil (inicio) */
.appgrid { display: grid; gap: 24px; align-items: center; margin-bottom: 28px; }
@media (min-width: 900px) { .appgrid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.appgrid .fphoto { margin: 0; }
.grid--app { grid-template-columns: 1fr; } /* 8 tarjetas: 1 columna en móvil, 2 en tableta y 4 + 4 en escritorio */
@media (min-width: 600px) { .grid--app { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--app { grid-template-columns: repeat(4, 1fr); } }
.feat__soon { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: .68rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; vertical-align: middle; }
.appget { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 40px; }
.appget > div { flex: 0 1 540px; }
.appqr { margin: 24px 0 0; padding: 10px; width: 156px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.appqr img { display: block; width: 132px; height: 132px; margin: 0 auto; }
.appqr figcaption { margin-top: 6px; color: var(--muted); font-size: .78rem; line-height: 1.3; }
@media (max-width: 699px) { .appqr { display: none; } }
.appcta { margin: 24px 0 0; }
.playbadge { display: inline-block; line-height: 0; margin: 0 0 0 -4px; }
.playbadge img { display: block; height: 64px; width: auto; }
.appnote { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.nav a[aria-current="page"] { color: var(--yellow); }
.btn--wa.btn--sm { padding: 9px 16px; font-size: .9rem; }
@media (max-width: 699px) { .site .topbar__end > .btn--accent { display: none; } }

/* Menú móvil (sin JavaScript: <details>) */
.mnav { position: relative; }
.mnav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .35); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }
.mnav[open] summary { background: rgba(255, 255, 255, .12); }
.mnav nav { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 40px)); padding: 10px; border-radius: 14px; background: #1b0f3d; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); display: grid; gap: 2px; z-index: 40; }
.mnav nav a { padding: 12px 14px; border-radius: 10px; color: #fff; text-decoration: none; font-weight: 500; }
.mnav nav a:hover, .mnav nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: var(--yellow); }
.mnav nav .mnav__cta { margin-top: 6px; text-align: center; background: var(--yellow); color: var(--ink); font-weight: 800; }
@media (min-width: 900px) { .mnav { display: none; } }

/* Cabecera de páginas internas */
.phero { position: relative; overflow: hidden; color: #fff; padding: 64px 0 56px;
  background: linear-gradient(rgba(20, 10, 46, .30), rgba(20, 10, 46, .52)), url("../img/fondo-poligonos.jpg") center / cover no-repeat, var(--ink); }
.phero > .wrap { position: relative; z-index: 1; }
.phero h1 { margin: 0 0 14px; font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.12; max-width: 24ch; }
.phero .lead { margin: 0 0 24px; max-width: 62ch; color: #d9d2ee; font-size: 1.1rem; }

/* Banda de llamada a la acción */
.ctaband { text-align: center; padding: 64px 0; }
.ctaband .sub { margin-left: auto; margin-right: auto; }
.sec--dark .btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }

/* Pie de página de 4 columnas y versión mínima */
@media (min-width: 760px) { .site .foot__in { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.foot--min { padding: 22px 0; }
.foot--min .foot__small { text-align: center; }

/* Página de funciones */
.fsec { padding: 56px 0; }
.fsec:nth-of-type(even) { background: var(--tint); }
.fsec h2 { margin: 0 0 8px; }
.fsec .sub { margin-bottom: 18px; }
.fgrid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .fgrid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.fnav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.fnav a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--purple); text-decoration: none; font-weight: 700; font-size: .9rem; }
.fnav a:hover { background: var(--purple); color: #fff; }

/* Teasers de la página de inicio */
.teaser { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .teaser { grid-template-columns: 1fr 1fr; gap: 56px; } }
/* Sección de mora: texto y foto arriba, y la comparación Hoy / Con Credinnova a todo el ancho debajo. */
.teaser--foto .fphoto { margin: 0; }
@media (min-width: 900px) { .teaser--foto { gap: 40px 56px; } .teaser--foto .compare { grid-column: 1 / -1; } }
.linkmore { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--purple-2); }
.mini-plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.mini-plans .plan { padding: 20px; }
.mini-plans .plan__price strong { font-size: 2rem; }

/* Página de demostración (landing de anuncios) */
.landing-h1 { margin: 0 0 14px; font-size: clamp(1.8rem, 4.4vw, 2.6rem); line-height: 1.15; }
.plan__name { margin: 0; font-size: 1.2rem; }
.install h2 { margin: 0 0 4px; font-size: 1.2rem; color: var(--yellow); }
.site.landing { padding-bottom: 0; }
.site.landing .sec--dark { padding-top: 48px; }
.landing-points { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 8px; color: #e6e0f5; }
.landing-points li::before { content: "✓"; color: var(--yellow); font-weight: 800; margin-right: 10px; }
