/* 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; }

/* Páginas de programa: presentación, sesiones, cursos, información académica y tarifas */
.destacados { list-style: none; padding: 0; margin: 0; }
.destacados li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-top: 1px solid var(--line); font-size: 1.1rem; }
.destacados li:last-child { border-bottom: 1px solid var(--line); }
.destacados span { font-size: 1.8rem; line-height: 1; flex: 0 0 2.2rem; }
.sesion { background: #fff; border-top: 6px solid var(--red); padding: 1.75rem 1.5rem 1.5rem; height: 100%; }
.sesion-fechas { font-weight: 700; color: var(--red); font-size: 1.15rem; }
.itinerario-compacto li { grid-template-columns: 2.4rem 1fr; }
.itinerario-compacto .que { grid-column: 2; margin-top: .3rem; }
.curso .solo { display: inline-block; font-size: .78rem; font-weight: 600; background: var(--yellow-soft); padding: 0 .4rem; margin-left: .25rem; white-space: nowrap; }
.academico h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.academico p { color: #444; margin-bottom: .5rem; }
.nota-fsu { border-left: 4px solid var(--yellow); background: var(--yellow-soft); padding: .75rem 1rem; margin-top: .75rem; font-size: .95rem; }
.band-tarifas { font-size: .97rem; }
.band-tarifas .precio strong { font-size: 1.15rem; }
.en-curso { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--ink); background: var(--yellow); padding: .05rem .5rem; margin-left: .4rem; vertical-align: middle; }
.opiniones .testimonio { border-top: 0; padding: 0; }
.opiniones .carousel-inner { min-height: 9rem; }
.opiniones blockquote { font-size: 1.3rem; line-height: 1.45; }
.why-intro { border-bottom: 3px solid var(--ink); padding-bottom: 2rem; }
.why-intro p { font-size: 1.25rem; line-height: 1.55; max-width: none; }
.why-intro p { margin-bottom: 0; }
.why-intro .resumen { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 110; font-weight: 700; font-size: 1.45rem; line-height: 1.3; border-left: 6px solid var(--red); padding-left: 1.25rem; }
.modal-legal h2 { font-size: 1.1rem; margin-top: 1rem; }
.modal-legal h2:first-child { margin-top: 0; }
/* Portada: menos aire entre los datos clave y Programs */
.band-intro { padding-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.band-programas { padding-top: clamp(2rem, 3.5vw, 3rem); }
.coste { font-size: 1.2rem; margin: 0; }
.coste strong { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 110; font-size: 1.6rem; }

/* fsu.issvalencia.com */
.fsu-cabecera { background: var(--yellow); padding: .5rem 0; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.fsu-cabecera img { height: 52px; width: auto; }
.fsu-lema { font-size: .95rem; color: var(--ink); }
.fsu-lema b { color: var(--red); margin-right: .35rem; }
.fsu-cabecera > .fsu-lema { font-size: .85rem; padding: .25rem 1rem 0; }
.fsu-aviso { display: flex; gap: 1rem; align-items: center; background: var(--yellow-soft); border-left: 6px solid var(--yellow); padding: 1rem 1.25rem; }
.fsu-aviso .bi { font-size: 1.8rem; color: var(--red); }
.fsu-titulo { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.fsu-caja { border-top: 6px solid var(--red); background: var(--mist); padding: 1.5rem; height: 100%; }
.lista-lugar { list-style: none; padding: 0; }
.lista-lugar li { padding-left: 1.6rem; position: relative; margin-bottom: .35rem; }
.lista-lugar li::before { content: "\F3E8"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--red); }
.fsu-coste { background: var(--ink); color: #fff; padding: 1.75rem 0; }
.fsu-coste .coste { color: var(--yellow); font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 110; font-weight: 800; font-size: 1.8rem; }
.fsu-coste a:not(.btn) { color: var(--yellow); }
.fsu-coste .text-muted { color: #ccc !important; }
.fsu-pie-titulo { font-size: 1.2rem; color: var(--ink); }
.fsu-pie-titulo b { color: var(--red); }

/* Portada 2: foto completa con texto encima */
.hero2 { position: relative; min-height: clamp(520px, 74vh, 740px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero2-img, .hero2 .foto-hueco { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero2::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.82) 0%, rgba(20,20,20,.6) 42%, rgba(20,20,20,0) 78%); }
.hero2-texto { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: clamp(2.5rem, 7vw, 5rem); color: #fff; }
.hero2 h1 { color: #fff; }
.hero2 .lead { color: rgba(255,255,255,.92); }
.hero2-desde { display: inline-block; font-weight: 700; color: var(--ink); background: var(--yellow); padding: .15rem .6rem; margin-bottom: 1rem; }
@media (max-width: 991.98px) { .hero2::after { background: linear-gradient(0deg, rgba(20,20,20,.88) 0%, rgba(20,20,20,.65) 55%, rgba(20,20,20,.15) 100%); } }

/* Portada 3: foto enmarcada */
.hero3 { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero3-foto { position: relative; margin: 0 0 0 1.5rem; }
.hero3-foto::before { content: ""; position: absolute; top: 1.5rem; left: -1.5rem; right: 1.5rem; bottom: -1.5rem; background: var(--yellow); z-index: 0; }
.hero3-foto img, .hero3-foto .foto-hueco { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero3-sello { left: auto; right: -.5rem; top: -1.5rem; bottom: auto; width: 116px; height: 116px; z-index: 2; box-shadow: 0 0 0 6px #fff; }
.hero3-sello b { font-size: 2rem; }

/* Portada 4: mosaico */
.hero4 { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero4 h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.hero4-mosaico { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .6rem; height: clamp(260px, 34vw, 440px); }
.hero4-mosaico > div:not(.stamp) { overflow: hidden; }
.hero4-mosaico img, .hero4-mosaico .foto-hueco { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero4-mosaico .m2 img { object-position: 45% 85%; }
.hero4-sello { left: auto; right: 1rem; bottom: auto; top: -2.5rem; width: 112px; height: 112px; box-shadow: 0 0 0 6px #fff; }
.hero4-sello b { font-size: 1.9rem; }
@media (max-width: 767.98px) {
  .hero4-mosaico { grid-template-columns: 1fr 1fr; grid-template-rows: 1.3fr 1fr; height: 420px; }
  .hero4-mosaico .m1 { grid-column: 1 / -1; }
}

/* Selector para comparar portadas (solo con ?portada=N) */
.comparar-portadas { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 1050; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; align-items: center;
  background: var(--ink); color: #fff; padding: .4rem .6rem; box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: .9rem; max-width: calc(100vw - 2rem); }
.comparar-portadas span { padding: 0 .4rem; color: var(--yellow); font-weight: 700; }
.comparar-portadas a { color: #fff; text-decoration: none; padding: .3rem .6rem; }
.comparar-portadas a:hover { background: rgba(255,255,255,.12); }
.comparar-portadas a[aria-current] { background: var(--yellow); color: var(--ink); }
@media (max-width: 991.98px) {
  .hero3-foto { margin: 1rem 0 0 1.5rem; }
  .hero3-foto::before { left: -1.25rem; right: 1.25rem; top: 1.25rem; bottom: -1.25rem; }
  .hero3-sello { right: .5rem; top: -1.25rem; width: 96px; height: 96px; }
  .hero3-sello b { font-size: 1.6rem; }
}
.comparar-portadas a span { padding: 0; color: inherit; font-weight: 400; }
@media (max-width: 575.98px) { .comparar-portadas { flex-wrap: nowrap; } .comparar-portadas a { padding: .3rem .75rem; } }
/* Versión 5: cabecera de las páginas de programa con foto completa */
.hero2-pagina { min-height: clamp(400px, 58vh, 600px); }
.hero2-pagina h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.hero2-pagina::after { background: linear-gradient(90deg, rgba(20,20,20,.85) 0%, rgba(20,20,20,.6) 34%, rgba(20,20,20,0) 62%); }
@media (max-width: 991.98px) { .hero2-pagina::after { background: linear-gradient(0deg, rgba(20,20,20,.88) 0%, rgba(20,20,20,.6) 50%, rgba(20,20,20,.1) 100%); } }
@media (max-width: 991.98px) {
  .hero2-pagina { display: block; min-height: 0; }
  .hero2-pagina .hero2-img, .hero2-pagina .foto-hueco { position: relative; height: 260px; }
  .hero2-pagina::after { display: none; }
  .hero2-pagina .hero2-texto { padding-top: 1.75rem; padding-bottom: 2rem; }
}
.hero2 a:not(.btn) { color: var(--yellow); }

/* Aviso de cookies */
.cookies-aviso { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1060; background: var(--ink); color: #fff; padding: 1rem 0; box-shadow: 0 -6px 24px rgba(0,0,0,.2); }
.cookies-aviso a:not(.btn) { color: var(--yellow); }
.cookies-aviso .btn-light { min-width: 7rem; font-weight: 700; }
.cookie-opcion { border-bottom: 1px solid var(--line); padding: .75rem 0; }
.cookie-opcion:first-child { padding-top: 0; }
.cookie-opcion .form-check-input { width: 2.6em; height: 1.4em; flex: 0 0 auto; }
