/* ISS Valencia – web pública. Rojo y amarillo ISS; titulares en Archivo ancho, texto en Source Sans 3. */
:root {
  --red: #C8102E;
  --red-dark: #9E0C24;
  --yellow: #FFDB46;
  --yellow-soft: #FFF3C2;
  --ink: #262626;
  --mist: #F4F4F2;
  --line: #E4E2DC;
  --bs-body-font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--ink);
  --bs-link-color: var(--red);
  --bs-link-color-rgb: 200, 16, 46;
  --bs-link-hover-color: var(--red-dark);
  --bs-link-hover-color-rgb: 158, 12, 36;
}
body { background: #fff; }
h1, h2, h3, .h1, .h2, .h3, .h4, .display-type {
  color: var(--ink);
  font-family: "Archivo", "Source Sans 3", sans-serif;
  font-stretch: 118%;
  font-variation-settings: "wdth" 118;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.08;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; }
h3, .h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
h2.h3 { font-size: 1.35rem; }
.lead { font-size: 1.2rem; line-height: 1.55; }
.measure { max-width: 68ch; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--ink); color: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; }

/* Aviso superior y cabecera */
.notice { background: var(--ink); color: var(--yellow); font-size: .9rem; text-align: center; padding: .35rem 1rem; }
.site-nav { background: #fff; border-bottom: 1px solid var(--line); }
.site-nav .navbar-brand img { height: 52px; width: auto; }
.site-nav .nav-link { color: var(--ink); font-weight: 600; padding: .5rem .65rem !important; white-space: nowrap; }
.site-nav .btn { white-space: nowrap; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--red); }
.site-nav .nav-link.active { box-shadow: inset 0 -3px 0 var(--yellow); }

.btn-brand {
  --bs-btn-color: #fff; --bs-btn-bg: var(--red); --bs-btn-border-color: var(--red);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--red-dark); --bs-btn-hover-border-color: var(--red-dark);
  --bs-btn-active-bg: var(--red-dark); --bs-btn-active-border-color: var(--red-dark);
  --bs-btn-focus-shadow-rgb: 200, 16, 46;
  font-weight: 700;
}
.btn-ink {
  --bs-btn-color: var(--ink); --bs-btn-bg: transparent; --bs-btn-border-color: var(--ink);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--ink); --bs-btn-hover-border-color: var(--ink);
  font-weight: 700;
}

/* Portada: panel amarillo con el titular + foto a sangre */
.hero { position: relative; background: var(--yellow); overflow: hidden; }
.hero-text { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); position: relative; z-index: 1; }
.hero-photo { position: absolute; inset: 0 0 0 52%; }
.hero-photo img, .hero-photo .foto-hueco { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { color: var(--ink); }
.hero .lead { max-width: 34rem; }
.stamp {
  position: absolute; left: calc(52% - 70px); bottom: 2.5rem; z-index: 2;
  width: 140px; height: 140px; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 118; line-height: 1;
  box-shadow: 0 0 0 6px var(--yellow); transform: rotate(-8deg);
}
.stamp b { font-size: 2.4rem; font-weight: 800; }
.stamp span { font-size: .78rem; font-weight: 600; margin-bottom: .3rem; }
@media (max-width: 991.98px) {
  .hero-photo { position: relative; inset: auto; height: 300px; }
  .stamp { left: auto; right: 1rem; bottom: auto; top: 230px; width: 112px; height: 112px; }
  .stamp b { font-size: 1.9rem; }
}

/* Cabecera de las páginas interiores */
.page-head { background: var(--yellow); padding: 3rem 0 2.5rem; }
.page-head .lead { max-width: 46rem; }
.page-photo { height: clamp(220px, 34vw, 420px); overflow: hidden; }
.page-photo img, .page-photo .foto-hueco { width: 100%; height: 100%; object-fit: cover; }

.band { padding: clamp(3rem, 6vw, 5rem) 0; }
.band-mist { background: var(--mist); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink a:not(.btn) { color: var(--yellow); }

/* Datos clave de la portada */
.facts { border-top: 3px solid var(--ink); }
.fact { padding: 1.25rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 1rem; }
.fact .bi { font-size: 1.6rem; color: var(--red); flex: 0 0 auto; }
.fact h3 { margin-bottom: .2rem; }
.fact p { margin: 0; color: #555; }

/* Programas (tarjetas de la portada) */
.programa { border-left: 6px solid var(--red); background: #fff; padding: 1.5rem 1.5rem 1.25rem; height: 100%; display: flex; flex-direction: column; }
.programa .fechas { font-weight: 700; color: var(--red); }
.programa .mt-auto { padding-top: 1rem; }

/* Itinerario: fechas en columna amarilla, como un horario */
.itinerario { list-style: none; padding: 0; margin: 0; border-top: 3px solid var(--ink); }
.itinerario li { display: grid; grid-template-columns: 3rem 13rem 1fr; gap: 0 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.itinerario .emoji { font-size: 1.6rem; line-height: 1; text-align: center; }
.itinerario .cuando { font-weight: 700; background: var(--yellow-soft); padding: .1rem .5rem; justify-self: start; }
.itinerario .que b { display: block; }
.itinerario .que p { margin: .3rem 0 0; color: #555; font-size: .97rem; }
@media (max-width: 767.98px) {
  .itinerario li { grid-template-columns: 2.4rem 1fr; }
  .itinerario .que { grid-column: 2; margin-top: .3rem; }
}

/* Precios */
.precio { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.precio strong { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 110; font-size: 1.35rem; }
.lista-check { list-style: none; padding: 0; }
.lista-check li { padding-left: 1.6rem; position: relative; margin-bottom: .35rem; }
.lista-check li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--red); }
.lista-x li::before { content: "\F62A"; color: #888; }
.plazo { background: var(--ink); color: #fff; padding: 1rem 1.25rem; }
.plazo b { color: var(--yellow); }

/* Cursos */
.curso summary { cursor: pointer; padding: .7rem 0; border-bottom: 1px solid var(--line); list-style: none; display: flex; gap: 1rem; }
.curso summary::-webkit-details-marker { display: none; }
.curso summary .cod { font-weight: 700; min-width: 5.5rem; color: var(--red); }
.curso summary::after { content: "+"; margin-left: auto; font-weight: 700; }
.curso[open] summary::after { content: "–"; }
.curso p { padding: .6rem 0 .8rem 6.5rem; margin: 0; color: #555; }
@media (max-width: 575.98px) { .curso p { padding-left: 0; } }

/* Testimonios */
.testimonio { margin: 0; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.2); }
.testimonio blockquote { font-size: 1.15rem; margin: 0 0 .6rem; }
.testimonio figcaption { color: var(--yellow); font-weight: 600; }

/* FAQ */
.faq .accordion-button { font-weight: 600; }
.faq .accordion-button:not(.collapsed) { background: var(--yellow-soft); color: var(--ink); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(200,16,46,.25); }

/* Galería */
.galeria { columns: 4 220px; column-gap: .6rem; }
.galeria a { display: block; margin-bottom: .6rem; break-inside: avoid; }
.galeria img { width: 100%; height: auto; display: block; }
.galeria a:focus-visible img { outline: 3px solid var(--red); }
#visor .modal-content { background: #000; border: 0; }
#visor img { max-height: 85vh; object-fit: contain; }

/* Huecos de foto (aún sin subir) */
.foto-hueco {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 220px;
  background: repeating-linear-gradient(45deg, #EDEBE6 0 12px, #F5F4F0 12px 24px); color: #777; font-size: .85rem;
}
.foto-hueco code { color: #777; }

/* Llamada a matricularse */
.cta { background: var(--red); color: #fff; }
.cta h2 { color: #fff; }
.cta .btn-light { font-weight: 700; color: var(--red); }

/* Pie */
.site-footer { background: var(--yellow); padding: 3rem 0 2rem; font-size: .97rem; }
.site-footer a { color: var(--ink); }
.site-footer .social a { font-size: 1.4rem; margin-right: .8rem; }
.site-footer .legal { border-top: 1px solid rgba(0,0,0,.15); margin-top: 2rem; padding-top: 1rem; font-size: .88rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.programa-suelto { height: auto; }
