@import url("https://fonts.googleapis.com/css2?family=Literata:opsz,wght@7..72,500;7..72,700&family=Syne:wght@600;700;800&display=swap");

:root {
  /* Identidad Atlas del Recibo — distinta a la verde/crema anterior */
  --ink: #0b132b;
  --panel: #1c2541;
  --panel-deep: #0f1729;
  --ice: #eef2f8;
  --papel: #f7f9fc;
  --texto: #152033;
  --muted: #5a6a7d;
  --linea: #c9d4e4;
  --acento: #00b4d8;
  --acento-2: #ff6b35;
  --link: #1565c0;
  /* aliases legados usados por reglas base */
  --verde: var(--panel);
  --verde-oscuro: var(--panel-deep);
  --crema: var(--ice);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Literata", Georgia, serif;
  color: var(--texto);
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(0, 180, 216, 0.18), transparent 55%),
    radial-gradient(800px 380px at 100% 0%, rgba(255, 107, 53, 0.12), transparent 50%),
    var(--ice);
}
a { color: var(--link); }
.top {
  background: linear-gradient(90deg, var(--panel-deep), var(--panel));
  color: #e8eef8;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 11px;
  padding: 9px 8%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.encabezado {
  background: rgba(247, 249, 252, 0.92);
  padding: 22px 8% 16px;
  border-bottom: 1px solid var(--linea);
  backdrop-filter: blur(8px);
}
.encabezado small {
  display: block;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--acento);
  text-transform: uppercase;
}
.encabezado h1 {
  margin: 6px 0 0;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
}
.encabezado h1 a { color: inherit; text-decoration: none; }
nav {
  background: var(--panel-deep);
  padding: 10px 8%;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 13px;
}
nav a {
  color: #d9e4f2;
  text-decoration: none;
  margin-right: 16px;
}
nav a:hover { color: #fff; text-decoration: underline; }
main {
  width: 86%;
  max-width: 880px;
  margin: 28px auto 48px;
}
.nota {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 13px;
  background: #e4f7fb;
  border-left: 3px solid var(--acento);
  padding: 10px 12px;
  margin-bottom: 22px;
}
article, .bloque {
  background: var(--papel);
  border: 1px solid var(--linea);
  padding: 22px 24px;
  margin-bottom: 16px;
  border-radius: 14px;
}
h2 { color: var(--panel); font-size: 22px; margin: 0 0 10px; font-family: "Syne", system-ui, sans-serif; }
h3 { font-size: 16px; margin: 18px 0 8px; font-family: "Syne", system-ui, sans-serif; }
p, li { line-height: 1.65; font-size: 16px; }
ul { padding-left: 20px; }
.legal p, .legal li { font-size: 15px; }
footer {
  background: var(--panel-deep);
  color: #a9b8cc;
  padding: 22px 8%;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.6;
}
footer a { color: #dce7f5; }
.pie-legal { margin-top: 8px; }
@media (max-width: 700px) {
  .encabezado h1 { font-size: 22px; }
  main { width: 92%; }
}

/* Anuncios (solo vistas públicas) */
.anuncio {
  margin: 16px 0;
  padding: 8px 0 4px;
  text-align: center;
  max-width: 728px;
}
.anuncio[hidden] {
  display: none !important;
}
.anuncio-etiqueta {
  margin: 0 0 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6b6b;
}
.anuncio-caja {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  overflow: visible;
}
.anuncio-caja iframe {
  display: block;
  margin: 0 auto;
  border: 0;
  max-width: 100%;
}
.anuncio-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.anuncio-banner .anuncio-caja {
  width: 728px;
  max-width: 100%;
  min-height: 90px;
}
.anuncio-banner.is-mobile .anuncio-caja,
.anuncio-caja[data-ad-unit="banner-mobile"] {
  width: 320px;
  min-height: 50px;
}
.anuncio-nativo .anuncio-caja {
  display: block;
  width: 100%;
  min-height: 120px;
  text-align: left;
}
.anuncio-smartlink-btn {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  padding: 10px 14px;
  border: 1px solid var(--verde);
  background: var(--papel);
  color: var(--verde);
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  box-sizing: border-box;
}
.anuncio-smartlink-btn:hover {
  background: #efe7d6;
}
.anuncio-solo-desktop:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.anuncio-solo-mobile:not([hidden]) {
  display: none;
  flex-direction: column;
  align-items: center;
}
@media (max-width: 767px) {
  .anuncio {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .anuncio-banner .anuncio-caja {
    width: 320px;
    min-height: 50px;
  }
  .anuncio-solo-desktop:not([hidden]) {
    display: none !important;
  }
  .anuncio-solo-mobile:not([hidden]) {
    display: flex !important;
  }
}

/* —— Blog Atlas del Recibo (identidad nueva) —— */
body.guia-pago {
  --azul: #1c2541;
  --azul-oscuro: #0b132b;
  --azul-suave: #e8eef8;
  --acento: #00b4d8;
  --papel-blog: #f2f5fa;
  --ink: #121826;
  --muted: #5a6a7d;
  --line: #c9d4e4;
  background:
    radial-gradient(1100px 420px at 8% -12%, rgba(0, 180, 216, 0.22) 0%, transparent 55%),
    radial-gradient(900px 360px at 100% 0%, rgba(255, 107, 53, 0.14) 0%, transparent 52%),
    linear-gradient(180deg, #e9eef6 0%, var(--papel-blog) 40%);
  color: var(--ink);
  font-family: "Literata", Georgia, serif;
}
body.guia-pago .top-guia {
  background: linear-gradient(90deg, #0b132b, #1c2541 55%, #123047);
  letter-spacing: 0.16em;
  font-size: 11px;
  font-family: "Syne", system-ui, sans-serif;
}
body.guia-pago .encabezado-guia {
  background: rgba(247, 249, 252, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  padding-top: 18px;
  padding-bottom: 14px;
}
.brand-row {
  display: flex;
  gap: 16px;
  align-items: center;
}
.brand-lockup {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 148px;
  min-height: 72px;
  padding: 10px 14px;
  text-decoration: none;
  line-height: 1.05;
  border-radius: 14px;
  background: linear-gradient(145deg, #0b132b, #1c2541);
  border: 1px solid #2a3b5c;
  box-shadow: 0 10px 24px rgba(11, 19, 43, 0.22);
  position: relative;
}
/* Oculta logo viejo; wordmark nueva identidad */
.brand-logo {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
  overflow: hidden;
}
.brand-lockup::before {
  content: "Atlas";
  display: block;
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: #fff;
}
.brand-lockup::after {
  content: "del Recibo";
  display: block;
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00b4d8;
  margin-top: 2px;
}
.brand-copy {
  min-width: 0;
}
.brand-name {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 700;
  font-family: "Syne", system-ui, sans-serif;
  color: var(--azul-oscuro);
}
body.guia-pago .encabezado-guia small {
  color: var(--acento);
  letter-spacing: 0.14em;
  font-family: "Syne", system-ui, sans-serif;
}
.aviso-cookies {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 80;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 920px;
  margin: 0 auto;
  padding: 14px 16px;
  background: #0b132b;
  color: #e8eef8;
  border: 1px solid #2a3b5c;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(11, 19, 43, 0.4);
  font-family: "Syne", system-ui, sans-serif;
}
.aviso-cookies[hidden] { display: none !important; }
.aviso-cookies h2 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #fff;
}
.aviso-cookies p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #c5d8e6;
  max-width: 52ch;
}
.aviso-cookies a { color: #9fd0ea; }
.aviso-cookies__acciones {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.aviso-cookies .btn {
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: #1277a8;
  color: #fff;
}
.aviso-cookies .btn-linea {
  background: transparent;
  color: #e8f3fa;
  border: 1px solid #4a7a96;
}
@media (max-width: 700px) {
  .brand-logo { height: 58px; }
  .aviso-cookies {
    flex-direction: column;
    align-items: stretch;
    bottom: 8px;
  }
}
body.guia-pago > nav {
  background: var(--azul-oscuro);
  position: sticky;
  top: 0;
  z-index: 30;
}
body.guia-pago > nav a {
  color: #e8f3fa;
}
body.guia-pago > nav a:hover,
body.guia-pago > nav a[aria-current="page"] {
  color: #ffffff;
  text-decoration: underline;
}
body.guia-pago .blog-article a {
  color: #0a5f8c;
}
body.guia-pago .blog-article a:hover {
  color: #084866;
}

.blog-shell {
  width: min(1120px, 94%);
  margin: 28px auto 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}
.blog-article {
  min-width: 0;
}
.blog-hero {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 28px 22px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(6, 31, 49, 0.05);
}
.blog-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acento);
  font-weight: 700;
}
.blog-hero h1 {
  margin: 0;
  font-family: "Syne", system-ui, sans-serif;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.22;
  color: var(--azul-oscuro);
  font-weight: 800;
}
.blog-deck {
  margin: 14px 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
  font-size: 12.5px;
  color: #6a7c88;
}
.blog-meta span {
  background: var(--azul-suave);
  padding: 4px 10px;
  border-radius: 999px;
}
.blog-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
}
.blog-tags li {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #c5d8e4;
  background: #f4f9fc;
  color: #33505f;
}

body.guia-pago .nota-guia {
  background: linear-gradient(90deg, #e4f7fb, #fff4ef);
  border-left: 4px solid var(--acento);
  font-size: 13.5px;
  border-radius: 0 10px 10px 0;
}

.toc {
  background: #ffffff;
  border: 1px solid #cfdce6;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
  box-shadow: none;
}
.toc h2 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #0a3350;
}
.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  color: #243743;
  font-size: 14.5px;
}
.toc li { margin: 7px 0; }
.toc a {
  color: #0a5f8c !important;
  text-decoration: none;
}
.toc a:hover {
  text-decoration: underline;
  color: #084866 !important;
}

body.guia-pago .bloque {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(6, 31, 49, 0.03);
  padding: 24px 26px;
  margin-bottom: 16px;
}
body.guia-pago .prosa-blog h2 {
  color: var(--azul);
  font-size: 1.35rem;
  font-weight: 750;
  margin: 0 0 12px;
  line-height: 1.3;
}
body.guia-pago .prosa-blog p,
body.guia-pago .prosa-blog li {
  font-size: 16px;
  line-height: 1.7;
  color: #1c2a33;
}
body.guia-pago .blog-deck {
  color: #334652;
}
body.guia-pago .nota-guia {
  color: #1c2a33;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.timeline > div {
  background: var(--azul-suave);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #d0e2ee;
}
.timeline strong {
  display: block;
  color: var(--azul);
  font-size: 13px;
  margin-bottom: 6px;
}
.timeline p {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: #405663 !important;
}
.pullquote {
  margin: 20px 0 8px;
  padding: 16px 18px;
  border-left: 4px solid var(--acento);
  background: #f3faf6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  color: #1f3d32;
  border-radius: 0 12px 12px 0;
}
.guia-datos {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}
.guia-datos li {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 8px 16px;
  padding: 11px 13px;
  background: var(--azul-suave);
  border-radius: 10px;
  font-size: 14.5px;
}
.guia-datos li span {
  font-weight: 700;
  color: var(--azul-oscuro);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  align-self: center;
}
.pasos { margin: 0; padding-left: 1.25rem; }
.pasos li { margin-bottom: 12px; }
.pasos-num { counter-reset: paso; list-style: none; padding-left: 0; }
.pasos-num li {
  counter-increment: paso;
  position: relative;
  padding: 12px 12px 12px 52px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
}
.pasos-num li::before {
  content: counter(paso);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.chips span {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f0f6fa;
  border: 1px solid #cfe0ea;
  font-size: 12.5px;
  color: #243844;
}
.lista-alerta { margin: 0; padding-left: 1.2rem; }
.lista-alerta li { margin-bottom: 8px; }
.ayuda-guia { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: #fbfcfd;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--azul-oscuro);
}
.faq-item p { margin: 8px 0 4px; font-size: 15px !important; }
.cta-bloque {
  border-color: #9cc9b0 !important;
  background: linear-gradient(165deg, #f2fbf6 0%, #ffffff 48%) !important;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}
.btn-guia {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 10px;
  background: var(--acento);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(15, 122, 74, 0.22);
}
.btn-guia:hover { filter: brightness(1.05); }
.btn-guia-linea {
  background: #fff;
  color: var(--azul) !important;
  border: 1px solid var(--azul);
  box-shadow: none;
}
.blog-foot {
  margin-top: 8px;
  padding: 14px 4px;
  font-size: 12.5px;
  color: var(--muted);
}
.blog-aside {
  position: sticky;
  top: 64px;
  display: grid;
  gap: 12px;
  z-index: 1;
}
.aside-card {
  background: #fff;
  border: 1px solid #cfdce6;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(6, 31, 49, 0.04);
}
.aside-card h2 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: #0a3350;
}
.aside-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 13.5px;
  color: #1c2a33;
}
.aside-card li { color: #1c2a33; }
.aside-card p { margin: 0; font-size: 13.5px; color: #1c2a33; line-height: 1.5; }
.aside-card a { color: #0a5f8c !important; }
body.guia-pago footer {
  background: var(--azul-oscuro);
  color: #d7e6ef;
}
body.guia-pago footer a {
  color: #ffffff !important;
}

/* Páginas legales del blog (misma piel que /como-pagar) */
body.guia-pago .blog-shell-legal {
  grid-template-columns: 1fr;
  width: min(820px, 94%);
}
body.blog-legal .blog-hero h1 {
  font-size: clamp(1.55rem, 3.2vw, 2rem);
}

/* Media blog */
.blog-figure {
  margin: 0 0 20px;
  background: #fff;
  border: 1px solid #cfdce6;
  border-radius: 14px;
  overflow: hidden;
}
.blog-figure img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.blog-figure figcaption {
  padding: 10px 14px 12px;
  font-size: 13px;
  color: #3d5160;
  background: #f5f9fc;
  border-top: 1px solid #e2ebf1;
}
.video-card {
  margin: 0 0 20px;
  background: #fff;
  border: 1px solid #cfdce6;
  border-radius: 14px;
  overflow: hidden;
}
.video-card__bar {
  background: #2f3640;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 16px;
}
.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #111;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #111;
  display: block;
}
.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-facade__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 48px;
  margin: -24px 0 0 -34px;
  background: #c00;
  border-radius: 14px;
}
.yt-facade__play::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 14px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}
@media (max-width: 920px) {
  .blog-shell { grid-template-columns: 1fr; }
  .blog-aside { position: static; }
  .timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .blog-hero { padding: 20px 16px; }
  body.guia-pago .bloque { padding: 18px 16px; }
  .guia-datos li { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .cta-row .btn-guia { width: 100%; }
}

