@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,600;6..72,700&display=swap');

/* Identidad visual general */

:root {
  --eu-petroleo: #196774;
  --eu-profundo: #0f4e59;
  --eu-menta: #e8f1f0;
  --eu-ocre: #f0941f;
  --eu-tinta: #24383c;
  --eu-fondo: #f7faf8;
}

body {
  color: var(--eu-tinta);
  background: var(--eu-fondo);
}

/* Accesos de la portada: se mantienen dos por fila, con aire suficiente. */
#quarto-document-content > .columns {
  column-gap: 3rem;
  margin: 1.4rem 0;
}

#quarto-document-content > .columns > .column {
  min-width: 0;
  padding: .35rem 1rem .75rem;
}

@media (max-width: 700px) {
  #quarto-document-content > .columns {
    display: block;
    margin: .7rem 0;
  }

  #quarto-document-content > .columns > .column {
    padding: .8rem .25rem;
  }
}

/* En la portada los accesos pasan a una sola columna en teléfono. */
@media (max-width: 760px) {
  .inicio-accesos > .columns {
    display: block !important;
    margin: .8rem 0 !important;
  }

  .inicio-accesos > .columns > .column {
    width: 100% !important;
    margin: 0 0 .8rem;
    padding: 1rem 1.05rem !important;
    border: 1px solid #d8e5e2;
    border-left: 5px solid var(--eu-petroleo);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(21, 67, 74, .06);
  }

  .inicio-accesos > .columns > .column h3 { color: var(--eu-profundo); }
}

.navbar {
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid #dbe6e4;
  box-shadow: 0 2px 10px rgba(21, 67, 74, 0.07);
}

.navbar-brand,
.navbar-nav .nav-link {
  color: var(--eu-profundo) !important;
}

.navbar-brand-logo {
  /* El logo y el nombre son enlaces distintos en la barra de Quarto. */
  margin-right: 1.15rem !important;
}

.navbar-brand .navbar-logo {
  max-height: 34px;
  width: auto;
}

.navbar-brand .navbar-title {
  display: none;
}

.navbar-brand-logo {
  margin-right: .45rem !important;
}

/* Cierre institucional, inspirado en la composición del sitio Equidad Urbana. */
.page-footer, footer.footer, footer.footer.footer-dark {
  margin-top: 4rem;
  padding: 0;
  border: 0;
  background: #211d1d !important;
  color: #fff !important;
}
.page-footer .nav-footer, footer.footer .nav-footer {
  max-width: 1140px;
  margin: 0 auto;
  padding: 3.4rem 1.5rem 3rem;
  display: grid !important;
  grid-template-columns: 1.4fr .9fr 1.15fr;
  gap: 3.25rem;
  align-items: center;
}
.page-footer .nav-footer, footer.footer .nav-footer { background: #211d1d !important; color: #fff !important; }
.page-footer .nav-footer *, footer.footer .nav-footer * { color: #fff; }
.page-footer .nav-footer a, footer.footer .nav-footer a { color: #fff !important; text-decoration: none; }
.page-footer .nav-footer a:hover, footer.footer .nav-footer a:hover { color: #a8d8d4 !important; text-decoration: none; }
.page-footer .nav-footer-left, footer.footer .nav-footer-left { justify-self: start; text-align: left !important; }
.footer-marca { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 1.1rem; }
.footer-logo { width: 185px; max-width: 100%; height: 46px; background: url("assets/logo-equidad-urbana-blanco.png") left center / contain no-repeat; }
.footer-marca span { display: block; max-width: 300px; color: #d4d4d4 !important; font-size: .9rem; line-height: 1.55; }
.footer-contacto strong, .footer-redes strong { display: block; color: #a8d8d4 !important; margin-bottom: .85rem; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.footer-contacto a, .footer-contacto span, .footer-redes a { display: block; margin: 0 0 .55rem; color: #f8f8f8 !important; font-size: .9rem; line-height: 1.5; }
.footer-redes .footer-encuesta { display:inline-block; margin-top:.45rem; padding:.5rem .75rem; border:1px solid #a8d8d4; border-radius:999px; color:#fff !important; font-weight:700; }
.footer-redes .footer-encuesta:hover { background:#a8d8d4; color:#173e46 !important; }
@media (max-width: 760px) { .page-footer .nav-footer, footer.footer .nav-footer { grid-template-columns: 1fr; gap: 2.2rem; padding: 3rem 1.5rem 2.5rem; } .footer-logo { width: 175px; } }

/* Acerca suavemente el bloque de marca al buscador, sin descentrar la barra. */
#quarto-search {
  margin-left: .35rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--eu-petroleo) !important;
  background: var(--eu-menta);
  border-radius: 7px;
}

#title-block-header.quarto-title-block.default .quarto-title-banner {
  background: linear-gradient(135deg, var(--eu-profundo), var(--eu-petroleo));
  border-radius: 0 0 18px 18px;
}

#title-block-header.quarto-title-block.default .title {
  font-weight: 650;
}

.page-hero {
  min-height: 235px;
  box-sizing: border-box;
  padding: 35px 42% 30px 30px;
  margin: 0 0 16px;
  color: #fff;
  border-radius: 15px;
  background-image:
    linear-gradient(90deg, rgba(15, 78, 89, .96) 0%, rgba(15, 78, 89, .88) 42%, rgba(15, 78, 89, .18) 74%, rgba(15, 78, 89, .02) 100%),
    url("assets/comunidad-portada.jpg");
  background-size: cover;
  background-position: center 68%;
}

.page-hero .eyebrow {
  margin: 0 0 10px;
  color: #ffd28e;
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.12;
  margin: 0 0 10px;
}

.page-hero p:last-child {
  max-width: 700px;
  margin: 0;
  color: #f2faf8;
  font-size: 1rem;
  line-height: 1.55;
}

.inicio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 13px;
  margin: 16px 0;
}

.inicio-card {
  display: block;
  min-height: 145px;
  padding: 20px 22px;
  color: var(--eu-tinta) !important;
  text-decoration: none !important;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(21, 67, 74, .07);
  border: 1px solid #e1e9e7;
  border-top: 4px solid var(--eu-petroleo);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.inicio-grid > .inicio-card { min-width: 0; }

.inicio-card:hover {
  color: var(--eu-tinta) !important;
  transform: translateY(-3px);
  border-color: #b8d4cf;
  box-shadow: 0 7px 18px rgba(21, 67, 74, .12);
}

.inicio-card:nth-child(2) { border-top-color: #d97b1b; }
.inicio-card:nth-child(3) { border-top-color: #5a988c; }
.inicio-card:nth-child(4) { border-top-color: #c6a33f; }
.inicio-icono { font-size: 1.65rem; display: block; margin-bottom: 9px; }
.inicio-card h2 { color: var(--eu-petroleo); font-size: 1.1rem; margin: 0 0 6px; }
.inicio-card p { color: #58676a; line-height: 1.55; margin: 0; }

@media (max-width: 700px) {
  .page-hero { min-height: 210px; padding: 27px 37% 22px 22px; border-radius: 12px; }
  .inicio-card { min-height: 128px; padding: 16px; }
  .inicio-card h2 { font-size: 1rem; }
  .inicio-card p { font-size: .9rem; }
}

/* Bienvenida de la portada: bloque Quarto nativo, sin HTML incrustado. */
.hero-inicio {
  min-height: 245px;
  box-sizing: border-box;
  padding: 34px 43% 30px 30px;
  border-radius: 15px;
  background-image:
    linear-gradient(90deg, rgba(15, 78, 89, .97) 0%, rgba(15, 78, 89, .88) 45%, rgba(15, 78, 89, .2) 74%, rgba(15, 78, 89, .02) 100%),
    url("assets/comunidad-portada.jpg");
  /* Prioriza el grupo de personas en la parte central-baja de la fotografía. */
  background-position: center 68%;
  background-size: cover;
  color: #f4fbfa;
}

.hero-inicio h1,
.hero-inicio h2 {
  color: #fff;
}

.hero-inicio h1 { margin-top: 0; margin-bottom: 10px; }
.hero-inicio h2 { font-size: 1.25rem; font-weight: 500; line-height: 1.4; }
.hero-inicio p { font-size: 1rem; line-height: 1.6; margin-bottom: 0; }

/* Invitación visible a la encuesta en la portada. */
.encuesta-destacada { display:flex; align-items:center; justify-content:space-between; gap:1.4rem; margin:1rem 0 1.6rem; padding:1.05rem 1.3rem; border:1px solid #bedbd6; border-left:5px solid var(--eu-ocre); border-radius:12px; background:linear-gradient(100deg,#f3fbf9,#e6f2f0); }
.encuesta-destacada h3 { margin:0 0 .18rem; color:var(--eu-profundo); font-size:1.06rem; }
.encuesta-destacada p { margin:0; color:#526866; line-height:1.45; }
.encuesta-destacada-boton { display:inline-block; flex:0 0 auto; padding:.65rem .9rem; border-radius:999px; background:var(--eu-petroleo); color:#fff !important; font-weight:700; text-decoration:none !important; white-space:nowrap; }
.encuesta-destacada-boton:hover { background:var(--eu-profundo); color:#fff !important; }

@media (max-width: 700px) {
  .hero-inicio { min-height: 210px; padding: 26px 37% 22px 22px; }
  .hero-inicio h1 { font-size: 1.75rem; }
  .hero-inicio h2 { font-size: 1.05rem; }
  .encuesta-destacada { display:block; padding:1rem; }.encuesta-destacada-boton { margin-top:.8rem; }
}

/* ================================
   ACERCA DE
   ================================ */

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, .95fr);
  margin: .4rem 0 3.2rem;
  background: #fff;
}

.about-hero-text { padding: clamp(2rem, 5vw, 4.35rem); color: #40595b; }

.about-hero .eyebrow,
.about-intro .eyebrow,
.about-story .eyebrow {
  margin: 0 0 .7rem;
  color: var(--eu-ocre);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Destacar los dos nombres principales de la sección Acerca de. */
.about-hero .eyebrow,
.about-intro .eyebrow {
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  letter-spacing: .1em;
}

.about-hero h1 { margin: 0 0 1rem; color: var(--eu-profundo); font-size: clamp(2rem, 3.8vw, 3.35rem); line-height: 1.06; }
.about-hero-text > p:not(.eyebrow) { max-width: 620px; margin-bottom: 1.65rem; font-size: 1.05rem; line-height: 1.7; }

.about-button { display: inline-block; padding: .68rem 1rem; border-radius: 999px; background: var(--eu-profundo); color: #fff !important; font-weight: 700; text-decoration: none; transition: transform .16s ease, background .16s ease; }
.about-button:hover { transform: translateY(-2px); background: var(--eu-petroleo); }

.about-hero-image { width: 100%; height: 100%; min-height: 380px; object-fit: cover; object-position: center; }

.about-intro { max-width: 850px; margin: 0 auto 1.8rem; text-align: center; }
.about-intro h2, .about-story h2 { color: var(--eu-profundo); font-size: clamp(1.7rem, 3vw, 2.4rem); }
.about-intro > p:last-child { color: #4c6062; font-size: 1.08rem; line-height: 1.75; }

.about-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 2rem 0 4rem; }
.about-pillar { padding: 1.45rem 1.4rem; border: 1px solid #d7e6e3; border-top: 4px solid var(--eu-petroleo); border-radius: 13px; background: #fff; box-shadow: 0 4px 12px rgba(21, 67, 74, .06); }
.about-pillar:nth-child(2) { border-top-color: #d97b1b; }
.about-pillar:nth-child(3) { border-top-color: #5a988c; }
.about-pillar > span { display: block; margin-bottom: .55rem; font-size: 1.7rem; }
.about-pillar h3 { margin: 0 0 .5rem; color: var(--eu-profundo); font-size: 1.12rem; }
.about-pillar p { margin: 0; color: #59696b; line-height: 1.6; }

.about-story { display: grid; grid-template-columns: minmax(300px, .95fr) minmax(0, 1.05fr); align-items: stretch; overflow: hidden; margin: 0 0 2.25rem; border-radius: 16px; background: #eaf3f1; }
.about-story-image img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; object-position: center; }
.about-story-text { padding: clamp(1.7rem, 4vw, 3.2rem); }
.about-story-text p:last-child { margin: 0; color: #42575a; line-height: 1.72; }

.about-contact { margin: 2rem 0 1rem; padding: 1.3rem 1.5rem; border-left: 5px solid var(--eu-ocre); border-radius: 0 10px 10px 0; background: #fff6e9; }
.about-contact h3 { margin: 0 0 .35rem; color: var(--eu-profundo); font-size: 1.05rem; }
.about-contact p { margin: 0; color: #4b5455; }

@media (max-width: 760px) {
  .about-hero, .about-story { grid-template-columns: 1fr; }
  .about-hero-image { min-height: 260px; max-height: 330px; }
  .about-pillars { grid-template-columns: 1fr; }
  .about-story-image img { min-height: 240px; max-height: 300px; }
}

/* ================================
   BIBLIOTECA COMUNITARIA
   ================================ */

.categoria {
  margin: 18px 0;
  border: 1px solid #d9e2e3;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.categoria summary {
  cursor: pointer;
  padding: 20px 24px;
  background: #f4f7f7;
  list-style: none;
}

.categoria summary::-webkit-details-marker {
  display: none;
}

.categoria summary:hover {
  background: #eaf1f1;
}

.categoria-titulo {
  font-size: 1.15rem;
  font-weight: 600;
  color: #196774;
}

.categoria-contenido {
  padding: 5px 24px 24px 24px;
}

.categoria-descripcion {
  color: #555;
  margin-bottom: 6px;
}

.numero-documentos {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 18px;
}

/* Tarjetas de documentos */

.documento {
  padding: 18px 20px;
  margin: 12px 0;
  border: 1px solid #e2e7e7;
  border-radius: 9px;
  background: #ffffff;
}

.documento h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #363432;
}

.documento p {
  color: #555;
  line-height: 1.55;
}

/* Botón */

.boton-documento {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  background-color: #196774;
  color: white !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 500;
}

.boton-documento:hover {
  background-color: #14535e;
}

/* BUSCADOR */

.buscador-biblioteca {
  margin: 25px 0 30px 0;
}

.buscador-biblioteca label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

#buscador {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d5dddd;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

#buscador:focus {
  outline: none;
  border-color: #196774;
  box-shadow: 0 0 0 2px rgba(25,103,116,0.12);
}

/* RESULTADOS DEL BUSCADOR */

#resultados-busqueda {
  margin-top: 25px;
}

#resultados-busqueda h3 {
  margin-bottom: 5px;
  color: #196774;
}

.numero-resultados {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.sin-resultados {
  margin-top: 25px;
  padding: 18px;
  background: #f4f7f7;
  border-radius: 8px;
  color: #555;
}

/* Estilo editorial común: portada y secciones de Equidad-comunidades. */
:root { --eu-azul-editorial:#123d4a; --eu-verde-suave:#dce9e6; --eu-coral:#c76d4c; }
body { background:#fff; font-family:Archivo,Arial,sans-serif; }
h1, h2, h3, .quarto-title .title { font-family:Newsreader,Georgia,serif; letter-spacing:-.025em; }
#title-block-header.quarto-title-block.default { max-width:1200px; margin:2.4rem auto 1.3rem; padding:0 1.5rem; }
#title-block-header.quarto-title-block.default .quarto-title-banner { padding:0; background:none; border-radius:0; }
#title-block-header.quarto-title-block.default .title { color:var(--eu-azul-editorial); font-size:clamp(2.15rem,4vw,3.6rem); font-weight:600; }
.navbar { min-height:72px; border-bottom:1px solid #e3ded5; box-shadow:none; }
.navbar-brand .navbar-logo { max-height:42px; }
.navbar-nav .nav-link { font-family:Archivo,Arial,sans-serif; font-size:.84rem; font-weight:600; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { background:transparent; color:var(--eu-coral) !important; }
.page-footer, footer.footer, footer.footer.footer-dark { margin-top:0; }
body:has(.hero-inicio) main.content, body:has(.hero-inicio) #quarto-document-content { padding-top:0; margin-top:0; }

.hero-inicio { width:100vw; min-height:min(51vh,500px); margin:0 0 3rem; margin-left:calc(50% - 50vw); padding:clamp(1.8rem,5vw,4.5rem); display:flex; flex-direction:column; align-items:flex-start; justify-content:center; border-radius:0; background-position:center 54%; }
.hero-inicio > * { max-width:710px; }
.hero-inicio h1 { margin:0 0 .9rem; font-family:Newsreader,Georgia,serif; font-size:clamp(2.35rem,4.65vw,4.25rem); font-weight:600; line-height:.94; letter-spacing:-.055em; }
.hero-inicio h2 { max-width:650px; margin:0 0 1rem; color:#fff; font-family:Archivo,Arial,sans-serif; font-size:clamp(1.15rem,1.75vw,1.55rem); font-weight:600; line-height:1.25; letter-spacing:0; }
.hero-inicio p { max-width:610px; font-size:clamp(.9rem,1.25vw,1rem); line-height:1.55; }
.hero-inicio .encuesta-destacada { max-width:fit-content; }
.encuesta-destacada { display:inline-flex; margin:1.15rem 0 0; padding:0; border:0; border-radius:0; background:transparent; }
.encuesta-destacada-texto { display:none; }
.encuesta-destacada-boton { padding:.66rem .95rem; border:1px solid rgba(255,255,255,.85); background:#fff; color:var(--eu-azul-editorial) !important; font-size:.86rem; }
.encuesta-destacada-boton:hover { background:#f5cf92; color:var(--eu-azul-editorial) !important; }

.inicio-accesos { max-width:1040px; margin:0 auto 4rem; }
.inicio-accesos > .columns { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:0 0 1rem !important; }
.inicio-accesos > .columns > .column { display:flex; flex-direction:column; width:auto !important; min-height:210px; padding:clamp(1.25rem,2.7vw,2.1rem) !important; border:1px solid rgba(18,61,74,.28); border-radius:0; background:var(--eu-verde-suave); }
.inicio-accesos > .columns > .column h3 { margin:auto 0 .6rem; color:var(--eu-azul-editorial); font-family:Newsreader,Georgia,serif; font-size:clamp(1.7rem,3vw,2.65rem); font-weight:600; line-height:.98; }
.inicio-accesos > .columns > .column p { color:#456068; font-size:.92rem; line-height:1.5; }
.inicio-accesos > .columns > .column a { align-self:flex-end; margin-top:auto; color:var(--eu-coral); font-weight:700; text-decoration:none; }
.inicio-accesos > .columns:last-child { width:calc(50% - .5rem); margin-left:auto !important; margin-right:auto !important; }

.faq-pis, .convocatorias-container, .ds19-buscador, .biblioteca-contenido, .mapa-directorio { font-family:Archivo,Arial,sans-serif !important; }
.faq-pis h2, .convocatorias-container h2, .ds19-tarjeta h2, .documento h2 { font-family:Newsreader,Georgia,serif !important; }
@media (max-width:760px) {
  #title-block-header.quarto-title-block.default { margin:1.7rem auto 1rem; }
  .hero-inicio { min-height:500px; margin-bottom:2.2rem; padding:2rem 1.4rem; }
  .inicio-accesos > .columns, .inicio-accesos > .columns:last-child { display:grid !important; grid-template-columns:1fr; width:auto; margin:0 0 .75rem !important; }
  .inicio-accesos > .columns > .column { min-height:215px; margin:0; border-left:1px solid rgba(18,61,74,.28); }
}

/* Ajustes de escala finales para igualar la portada a la maqueta aprobada. */
.navbar .container-fluid { padding-left:clamp(1.35rem,4vw,4.5rem); padding-right:clamp(1.35rem,4vw,4.5rem); }
.navbar-brand-logo { margin-right:1.4rem !important; }
.navbar-nav { gap:.35rem; }
.navbar-nav .nav-link { padding:.65rem .45rem !important; font-size:.94rem; }

.hero-inicio { min-height:min(56vh,560px); padding:clamp(2.2rem,6vw,5.8rem); }
.hero-inicio h1 { max-width:760px; font-size:clamp(2.85rem,5.3vw,5rem); }
.hero-inicio p { max-width:660px; font-size:clamp(1rem,1.45vw,1.15rem); line-height:1.62; }
.hero-inicio .encuesta-destacada-boton { display:inline-flex; margin-top:1.75rem; padding:.82rem 1.1rem; font-size:.96rem; line-height:1.25; }

.inicio-accesos { max-width:1100px; }
.inicio-accesos > h2 { margin:0 0 2rem; color:var(--eu-azul-editorial); font-family:Newsreader,Georgia,serif; font-size:clamp(2.4rem,4.2vw,4rem); font-weight:600; line-height:1; letter-spacing:-.045em; }
.inicio-accesos > .columns { gap:1.25rem; margin-bottom:1.25rem !important; }
.inicio-accesos > .columns > .column { min-height:285px; padding:clamp(1.6rem,3.2vw,2.7rem) !important; }
.inicio-accesos > .columns > .column h3 { font-size:clamp(2.15rem,3.7vw,3.3rem); margin-bottom:1rem; }
.inicio-accesos > .columns > .column p { font-size:1rem; line-height:1.58; }
.inicio-accesos > .columns > .column a { font-size:1rem; }
.inicio-accesos > .columns:last-child { grid-template-columns:1fr !important; }

@media (max-width:760px) {
  .navbar .container-fluid { padding-left:1rem; padding-right:1rem; }
  .navbar-nav .nav-link { font-size:.9rem; }
  /* La portada debe adaptarse al contenido: una altura fija hacía que el
     llamado a la encuesta se saliera de la imagen en teléfonos. */
  .hero-inicio { min-height:0; padding:2.15rem 1.4rem 2rem; background-position:center center; }
  .hero-inicio h1 { font-size:2.35rem; line-height:1; }
  .hero-inicio p { font-size:.98rem; line-height:1.55; }
  .hero-inicio .encuesta-destacada-boton { display:block; width:100%; box-sizing:border-box; max-width:100%; margin-top:1.25rem; padding:.75rem .9rem; font-size:.88rem; white-space:normal; text-align:left; }
  .inicio-accesos > h2 { margin-bottom:1.4rem; font-size:2.5rem; }
  .inicio-accesos > .columns > .column { min-height:250px; }
}

/* Las páginas sin título Quarto necesitan aire propio bajo la barra. */
body:has(.buscador-biblioteca) #quarto-document-content { padding-top:2rem; }
body:has(.buscador-biblioteca) #quarto-document-content > h1 { color:var(--eu-azul-editorial); font-size:clamp(2.15rem,4vw,3.6rem); font-weight:600; }
@media (max-width:760px) {
  body:has(.buscador-biblioteca) #quarto-document-content { padding-top:2.4rem; }
}

/* Portada en escritorio: Quarto reserva una columna lateral para el artículo.
   Al hacer que sus bloques sean ítems directos de la cuadrícula, la imagen se
   extiende realmente de borde a borde, sin crear desplazamiento horizontal. */
@media (min-width:761px) {
  body:has(.hero-inicio) { overflow-x:hidden; }
  body:has(.hero-inicio) #quarto-document-content { display:contents; }
  .hero-inicio {
    grid-column:screen-start / screen-end;
    width:auto;
    min-height:470px;
    margin:0 0 2.8rem;
    margin-left:0;
    padding:clamp(2.8rem,4.3vw,4.4rem) clamp(3.2rem,7.5vw,7.5rem);
  }
  .hero-inicio h1 { max-width:650px; font-size:clamp(3rem,4.25vw,4.15rem); }
  .hero-inicio h2 { font-size:clamp(1.15rem,1.55vw,1.45rem); }
  .hero-inicio p { max-width:610px; font-size:1rem; }
  .hero-inicio .encuesta-destacada-boton { margin-top:1.25rem; }

  .inicio-accesos {
    grid-column:body-content-start / body-content-end;
    width:100%;
    max-width:1040px;
    justify-self:center;
    margin-bottom:3.5rem;
  }
  .inicio-accesos > h2 { margin-bottom:1.5rem; font-size:clamp(2rem,3.25vw,3.15rem); }
  .inicio-accesos > .columns { gap:1rem; margin-bottom:1rem !important; }
  .inicio-accesos > .columns > .column { min-height:235px; padding:clamp(1.4rem,2.5vw,2rem) !important; }
  .inicio-accesos > .columns > .column h3 { margin-bottom:.75rem; font-size:clamp(1.8rem,2.75vw,2.55rem); }
  .inicio-accesos > .columns > .column p { font-size:.94rem; line-height:1.5; }
}

/* En pantallas de escritorio el llamado funciona como una sola bajada. */
@media (min-width:1100px) {
  .inicio-accesos > h2 { font-size:clamp(2rem,2.8vw,2.65rem); white-space:nowrap; }
}

@media (min-width:761px) {
  .inicio-accesos > h2 { font-size:clamp(1.7rem,2.55vw,2.65rem); white-space:nowrap; }
}
