/* Portada (index.html) y Documentación (documentacion.html). Ver README → «Diseño de la portada». */
body.pp { margin: 0; background: #F4F8FA; color: #0D2B45; font-family: Montserrat, sans-serif; }
.pp h1, .pp h2, .pp h3, .pp p { margin: 0; }


.pp-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: #00798A; }
.pp-h2 { margin-top: 0.4rem !important; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.pp-seccion { padding: 48px 0; }
.pp-seccion__cabeza { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 1.5rem; }
.pp-enlace { font-size: 14px; font-weight: 700; color: #00798A; text-decoration: none; }
.pp-enlace:hover { text-decoration: underline; }

/* Hero */
.pp-hero { position: relative; isolation: isolate; overflow: hidden; background: #EAF5F7; border-bottom: 1px solid #D5E5EA; }
.pp-hero #hero-trig { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .38; }
.pp-hero__contenido { position: relative; z-index: 1; padding-top: 52px; padding-bottom: 44px; }
.pp-hero h1 { max-width: 620px; font-size: 46px; line-height: 1.1; letter-spacing: -0.04em; font-weight: 700; }
.pp-hero h1 span { color: #00798A; }
.pp-hero__texto { max-width: 560px; margin-top: 1rem !important; font-size: 18px; line-height: 1.6; color: #405769; }
#home-search-form { box-sizing: border-box; display: flex; align-items: center; width: 100%; max-width: 560px; height: 58px; margin-top: 1.75rem; padding: 0.4rem;
  background: #fff; border: 2px solid #8497A3; border-radius: 14px; box-shadow: 0 12px 35px rgba(13, 43, 69, 0.10); }
#home-search-form > i { margin-left: 0.75rem; color: #00798A; }
#home-search-form input { flex: 1; min-width: 0; height: 100%; padding: 0 0.9rem; border: 0; background: transparent; outline: none; font: inherit; font-size: 16px; color: #233F53; }
#home-search-form input::placeholder { color: #627683; }
#home-search-form button { height: 42px; padding: 0 1.4rem; border: 0; border-radius: 10px; background: #087F8C; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
#home-search-form button:hover { background: #066F7C; }

/* Servicios: las 4 tarjetas comparten estilo, tamaño y flecha. */
.pp-servicios { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
.pp-card { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.5rem; background: #fff; border: 1px solid #D8E3E9; border-radius: 18px;
  color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.pp-card:hover { border-color: #00B5C8; box-shadow: 0 10px 28px rgba(13, 43, 69, 0.08); }
.pp-card__icono { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: #E6F8FA; color: #00798A; font-size: 21px; }
.pp-card__titulo { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 19px; font-weight: 700; }
.pp-card__titulo i { color: #00798A; font-size: 15px; transition: transform .15s; }
.pp-card:hover .pp-card__titulo i { transform: translateX(3px); }
.pp-card[aria-expanded="true"] .pp-card__titulo i { transform: rotate(90deg); }
.pp-card p { font-size: 14px; line-height: 1.5; color: #405769; }
.pp-inv-panel { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; padding: 1rem; background: #F4FAFB; border: 1px solid #D8E3E9; border-radius: 18px; }
.pp-inv-panel[hidden] { display: none; }
.pp-inv-panel a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.9rem; background: #fff; border: 1px solid #D8E3E9; border-radius: 12px;
  color: inherit; font-size: 14px; font-weight: 700; text-decoration: none; }
.pp-inv-panel a:hover { border-color: #00B5C8; }
.pp-inv-panel i { color: #00798A; }

/* Actividades: cuadrícula fija, sin carrusel. */
.pp-fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.pp-fotos img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: #D8E3E9; }
.pp-mas { margin-top: 1rem; }
.pp-mas summary { display: inline-block; cursor: pointer; font-size: 14px; font-weight: 700; color: #00798A; list-style: none; }
.pp-mas summary::-webkit-details-marker { display: none; }
.pp-mas[open] summary { margin-bottom: 1rem; }
.pp-mas .pp-mas__cerrar, .pp-mas[open] .pp-mas__abrir { display: none; }
.pp-mas[open] .pp-mas__cerrar { display: inline; }

/* Canales oficiales: franja compacta. */
.pp-medios { background: #EAF1F4; border-top: 1px solid #D7E3E8; padding: 36px 0; }
.pp-medios__lista { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.pp-medios__lista a { display: flex; align-items: center; gap: 0.75rem; min-width: 0; padding: 0.85rem 1rem; background: #fff; border: 1px solid #D8E3E9; border-radius: 12px; color: inherit; text-decoration: none; }
.pp-medios__lista a:hover { border-color: #00B5C8; }
.pp-medios__lista i { flex: none; font-size: 20px; }
.pp-medios__lista strong { display: block; font-size: 14px; }
.pp-medios__lista span { display: block; font-size: 12px; color: #405769; overflow-wrap: anywhere; }
.pp-medios__nota { margin-top: 1rem !important; font-size: 13px; line-height: 1.6; color: #405769; }
.pp-medios__nota a { font-weight: 600; color: #00798A; }

@media (max-width: 1279px) {
  .pp-servicios { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .pp-servicios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-medios__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .pp-hero__contenido { padding-top: 40px; padding-bottom: 36px; }
  .pp-hero h1 { font-size: 32px; }
  .pp-hero__texto { font-size: 16px; }
  #home-search-form { height: 54px; margin-top: 1.25rem; padding: 0.35rem; }
  #home-search-form button { height: 40px; padding: 0 1rem; }
  .pp-seccion { padding: 32px 0; }
  .pp-h2 { font-size: 22px; }
  .pp-servicios { grid-template-columns: 1fr; gap: 0.75rem; }
  .pp-card { flex-direction: row; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem; }
  .pp-card__icono { flex: none; width: 46px; height: 46px; font-size: 19px; }
  .pp-card > div:last-child { flex: 1; min-width: 0; }
  .pp-card__titulo { font-size: 17px; }
  .pp-card p { margin-top: 0.15rem !important; font-size: 13px; }
  .pp-inv-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0.75rem; gap: 0.6rem; }
  .pp-fotos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .pp-medios { padding: 28px 0; }
  .pp-medios__lista a { padding: 0.7rem; gap: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-card, .pp-card__titulo i { transition: none; }
}

/* Atajos a Pizarra y Arcade: visibles en el hero, sin flotar sobre toda la página. */
.pp-portada .pz-asa { display: none; }
.pp-atajos { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 1.25rem; padding-left: 4px; }
.pp-atajo { display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; text-decoration: none; line-height: 1; }
.pp-atajo:hover { filter: brightness(1.12); }
/* Pizarra: tiza sobre pizarra verde con marco de madera, como el panel que abre (assets/css/pizarra.css). */
.pp-atajo--pizarra { padding: 0.5rem 1.1rem 0.55rem; border: 5px solid #8B5A2B; border-radius: 6px; background: #1F4D3A; color: #F4F7F2;
  font: 400 21px "Patrick Hand", cursive; letter-spacing: 0.03em; text-shadow: 0 0 2px rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px #5E3A17, 0 6px 14px rgba(13, 43, 69, 0.22); transform: rotate(-1.5deg); transition: transform .15s; }
.pp-atajo--pizarra i { color: #FFD866; transform: rotate(25deg); }
.pp-atajo--pizarra:hover { transform: rotate(0deg); }
/* Arcade: el mismo botón pixelado que antes flotaba (assets/css/arcade.css), ahora fijo en el hero. */
.pp-atajo--arcade { padding: 16px 18px; background: #3b5dc9; color: #f4f4f4; font: 12px "Press Start 2P", monospace;
  box-shadow: 0 -4px 0 0 #0f1020, 0 4px 0 0 #0f1020, -4px 0 0 0 #0f1020, 4px 0 0 0 #0f1020,
    inset -4px -4px 0 0 rgba(0, 0, 0, .3), inset 4px 4px 0 0 rgba(255, 255, 255, .22); }
.pp-atajo--arcade:active { transform: translateY(2px); box-shadow: 0 -4px 0 0 #0f1020, 0 4px 0 0 #0f1020, -4px 0 0 0 #0f1020, 4px 0 0 0 #0f1020, inset 4px 4px 0 0 rgba(0, 0, 0, .3); }
@media (prefers-reduced-motion: reduce) { .pp-atajo--pizarra { transition: none; } }
@media (max-width: 767px) {
  .pp-atajos { gap: 0.9rem 1rem; }
  .pp-atajo--pizarra { font-size: 18px; padding: 0.4rem 0.8rem 0.45rem; }
  .pp-atajo--arcade { padding: 13px 12px; font-size: 10px; }
}
button.pp-enlace { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: #00798A; cursor: pointer; }

/* Video en ventana encima de la página. */
.pp-video { width: min(960px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 16px; background: #0D2B45; overflow: visible; }
.pp-video::backdrop { background: rgba(13, 43, 69, 0.75); }
.pp-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; }
.pp-video__cerrar { position: absolute; top: -14px; right: -14px; z-index: 1; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: #0D2B45; font-size: 16px; cursor: pointer; box-shadow: 0 4px 14px rgba(13, 43, 69, 0.3); }
@media (max-width: 767px) { .pp-video__cerrar { top: -46px; right: 0; } }

/* Documentación (documentacion.html): cada categoría tiene su color, tomado de la paleta del sitio. */
.pp-docs-hero { background: #EAF5F7; border-bottom: 1px solid #D5E5EA; padding: 36px 0 40px;
  background-image: radial-gradient(circle at 88% 30%, rgba(0, 181, 200, 0.16) 0, transparent 38%), radial-gradient(circle at 70% 110%, rgba(13, 43, 69, 0.10) 0, transparent 40%); }
.pp-docs-hero__titulo { margin-top: 0.4rem !important; font-size: 42px; font-weight: 700; letter-spacing: -0.03em; }
.pp-docs-aviso { display: inline-flex; align-items: flex-start; gap: 0.6rem; max-width: 640px; margin-top: 1.25rem !important; padding: 0.75rem 1rem;
  background: #fff; border: 1px solid #B9DDE3; border-left: 4px solid #00798A; border-radius: 10px; font-size: 14px; line-height: 1.5; color: #233F53; }
.pp-docs-aviso i { margin-top: 0.15rem; color: #00798A; }
.pp-docs { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.pp-doc { flex: 1 1 320px; max-width: calc((100% - 2.5rem) / 3); display: flex; flex-direction: column; gap: 0.6rem; padding: 1.5rem; background: #fff;
  border: 1px solid #D8E3E9; border-top: 6px solid var(--doc); border-radius: 18px; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.pp-doc:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(13, 43, 69, 0.12); }
.pp-doc__icono { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 0.4rem; border-radius: 16px; background: var(--doc); color: #fff; font-size: 23px;
  box-shadow: 0 0 0 6px var(--doc-claro); }
.pp-doc__titulo { font-size: 20px; font-weight: 700; color: var(--doc); }
.pp-doc p { flex: 1; font-size: 14px; line-height: 1.5; color: #405769; }
.pp-doc__abrir { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.4rem; padding: 0.45rem 0.9rem; border-radius: 999px;
  background: var(--doc-claro); color: var(--doc); font-size: 13px; font-weight: 700; }
.pp-doc:hover .pp-doc__abrir { background: var(--doc); color: #fff; }
.pp-nota { max-width: 760px; margin: 1.5rem auto 0 !important; text-align: center; font-size: 14px; line-height: 1.6; color: #405769; }
@media (max-width: 1023px) { .pp-doc { max-width: calc((100% - 1.25rem) / 2); } }
@media (max-width: 767px) {
  .pp-docs-hero { padding: 24px 0 28px; }
  .pp-docs-hero__titulo { font-size: 32px; }
  .pp-docs { gap: 0.75rem; }
  .pp-doc { max-width: 100%; padding: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { .pp-doc { transition: none; } .pp-doc:hover { transform: none; } }

/* Anillo de carpetas (assets/js/anillo-documentos.js): solo con JavaScript; si no, queda la cuadrícula de arriba. */
.pp-anillo { position: relative; display: block; margin: 0; padding: 0; list-style: none; overflow-x: clip; } /* que el giro no cree scroll lateral */
.pp-anillo .pp-doc { position: absolute; left: 0; top: 0; max-width: none; box-sizing: border-box; overflow: hidden; cursor: pointer;
  transition: width .45s, height .45s, padding .45s, box-shadow .2s; }
.pp-anillo .pp-doc:hover { box-shadow: 0 14px 30px rgba(13, 43, 69, 0.14); }
.pp-doc__elegir { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer; }
.pp-anillo .pp-doc__elegir::after { content: ""; position: absolute; inset: 0; } /* toda la tarjeta trae la carpeta al frente */
.pp-anillo .pp-doc__abrir { position: relative; z-index: 1; text-decoration: none; }
.pp-doc__detalle { display: flex; flex: 1; flex-direction: column; gap: 0.6rem; }
.pp-doc__detalle[hidden] { display: none; }
.pp-docs:not(.pp-anillo) .pp-doc__abrir { text-decoration: none; }
/* Carpetas al fondo: solo ícono y nombre. */
.pp-anillo .pp-doc:not(.es-frente) { align-items: center; justify-content: center; gap: 0.4rem; padding: 0.75rem; border-top-width: 4px; text-align: center; }
.pp-anillo .pp-doc:not(.es-frente) .pp-doc__icono { width: 40px; height: 40px; margin: 0; font-size: 17px; border-radius: 12px; box-shadow: 0 0 0 4px var(--doc-claro); }
.pp-anillo .pp-doc:not(.es-frente) .pp-doc__titulo { font-size: 15px; line-height: 1.2; }
.pp-anillo .es-frente { cursor: default; box-shadow: 0 18px 40px rgba(13, 43, 69, 0.18); }
.pp-anillo .es-frente .pp-doc__elegir { cursor: default; }
.pp-anillo .es-frente .pp-doc__detalle { animation: pp-aparece .35s ease-out; }
@keyframes pp-aparece { from { opacity: 0; } }
.pp-anillo__flechas { display: flex; justify-content: center; gap: 0.75rem; margin-top: 0.5rem; }
.pp-anillo__flechas[hidden] { display: none; }
.pp-anillo__flechas button { width: 44px; height: 44px; border: 1px solid #D8E3E9; border-radius: 50%; background: #fff; color: #0D2B45; cursor: pointer; }
.pp-anillo__flechas button:hover { border-color: #00B5C8; color: #00798A; }
@media (max-width: 639px) { .pp-anillo .pp-doc:not(.es-frente) .pp-doc__titulo { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .pp-anillo .pp-doc { transition: none; } .pp-anillo .es-frente .pp-doc__detalle { animation: none; } }
.pp-anillo__pista { position: absolute; z-index: 0; box-sizing: border-box; border: 2px dashed #9FCBD3; border-radius: 50%; pointer-events: none; }
.pp-anillo__pista svg { display: none; overflow: visible; }
.pp-anillo__pista.es-plano { border: 0; border-radius: 0; }
.pp-anillo__pista.es-plano svg { display: block; }
