/* ============================================================
   FUNDACIÓN PANACA — CONVOCATORIA · TURISMO RURAL SOSTENIBLE
   Lleva al sitio el lenguaje de los afiches del MinCIT/FONTUR
   (papel acuarelado, bandas azules de borde rasgado, rótulos en
   recuadro naranja, aves del territorio) sin salirse de las reglas
   del Figma: una sola tipografía, los cinco colores de la paleta y
   ninguna esquina redondeada.
   ============================================================ */

.cv {
  --papel: url("../assets/img/convocatoria/textura-papel.webp");
  /* Borde de papel rasgado. Los dientes van en px y no en %, para que la
     mordida sea igual de fina en una franja baja que en una alta. */
  --rasgado-abajo: polygon(0 0, 100% 0, 100% calc(100% - 18px), 93% calc(100% - 6px), 86% calc(100% - 24px), 78% calc(100% - 9px), 69% calc(100% - 27px), 60% calc(100% - 8px), 51% calc(100% - 22px), 42% calc(100% - 4px), 33% calc(100% - 20px), 24% calc(100% - 6px), 15% calc(100% - 25px), 7% calc(100% - 9px), 0 calc(100% - 20px));
  --rasgado-ambos: polygon(0 14px, 8% 3px, 17% 20px, 27% 7px, 36% 24px, 46% 5px, 55% 19px, 64% 2px, 74% 22px, 83% 9px, 92% 24px, 100% 11px, 100% calc(100% - 18px), 93% calc(100% - 6px), 86% calc(100% - 24px), 78% calc(100% - 9px), 69% calc(100% - 27px), 60% calc(100% - 8px), 51% calc(100% - 22px), 42% calc(100% - 4px), 33% calc(100% - 20px), 24% calc(100% - 6px), 15% calc(100% - 25px), 7% calc(100% - 9px), 0 calc(100% - 20px));
  --rasgado-arriba: polygon(0 14px, 8% 3px, 17% 20px, 27% 7px, 36% 24px, 46% 5px, 55% 19px, 64% 2px, 74% 22px, 83% 9px, 92% 24px, 100% 11px, 100% 100%, 0 100%);
  background: var(--hueso);
  /* clip y no hidden: hidden crearía un contenedor de desplazamiento y la barra
     de secciones dejaría de quedarse pegada arriba. */
  overflow-x: clip;
}
.cv section[id] { scroll-margin-top: calc(var(--cv-tope, 72px) + 58px); }
/* El reset del sitio solo quita las viñetas de los ul; estas listas ordenadas también. */
.cv ol { list-style: none; }

/* Rótulo en recuadro naranja, como «PROPÓSITO DEL CURSO:» en los afiches */
.cv-marca {
  display: inline-block; margin-bottom: .8rem;
  padding: .38em .85em .32em;
  background: var(--naranja); color: var(--azul);
  font-size: var(--step-0); font-weight: 700; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .04em;
  clip-path: var(--corte-chip);
}
.cv-marca--vino { background: var(--vino); color: #fff; }

/* Cabeceras de sección */
.cv-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.cv-head h2 { margin-top: 1rem; }
.cv-head > p { margin-top: 1rem; }
.cv-head--claro h2 { color: #fff; }
.cv-head--claro .eyebrow { color: var(--naranja); }
.cv-head--centro { margin-inline: auto; text-align: center; }
.cv-head--centro .eyebrow { justify-content: center; }
/* El acento de los titulares es un trazo de rotulador, no un color de letra:
   el naranja como texto sobre el papel claro no da contraste suficiente. */
.cv h2 em { font-style: normal; background: linear-gradient(transparent 62%, rgba(216,132,44,.5) 62%, rgba(216,132,44,.5) 92%, transparent 92%); }
.cv-head--claro h2 em, .cv-final h2 em { background: none; color: var(--naranja); }

/* ================= HERO ================= */
.cv-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(94svh, 900px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 26px;
  background: var(--azul); color: #fff;
  clip-path: var(--rasgado-abajo);
}
.cv-hero__fotos { position: absolute; inset: 0; z-index: -2; }
.cv-hero__foto {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.6s var(--ease), transform 8s linear;
}
.cv-hero__foto.is-on { opacity: 1; transform: scale(1); }
.cv-hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(97deg, rgba(11,37,56,.95) 0%, rgba(11,37,56,.82) 40%, rgba(11,37,56,.4) 72%, rgba(11,37,56,.22) 100%),
    linear-gradient(180deg, rgba(11,37,56,.6) 0%, rgba(11,37,56,0) 28%, rgba(11,37,56,0) 62%, rgba(11,37,56,.85) 100%);
}
.cv-hero__in { position: relative; z-index: 2; padding-block: clamp(1.6rem, 4vw, 3rem) clamp(3rem, 6vw, 4.5rem); }
.cv-hero__aliados { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.4rem); margin-bottom: clamp(1.4rem, 3.5vw, 2.4rem); }
.cv-hero__aliados img { height: clamp(36px, 4.2vw, 54px); width: auto; }
.cv-hero__aliados .cv-hero__fundacion { height: clamp(28px, 3.3vw, 42px); filter: brightness(0) invert(1); }
.cv-hero__sep { width: 1px; align-self: stretch; background: rgba(255,255,255,.35); }
.cv-hero .breadcrumb { margin-bottom: 1rem; }
.cv-hero__eyebrow { color: var(--naranja); }
.cv-hero__titulo {
  margin-top: 1rem; max-width: 22ch; color: #fff;
  font-size: clamp(2.2rem, 1.2rem + 3.2vw, 4.3rem); line-height: 1.02; letter-spacing: -.032em;
}
.cv-hero__titulo em { display: block; font-style: normal; color: var(--naranja); }
.cv-becas { display: flex; align-items: center; gap: clamp(.7rem, 1.6vw, 1.1rem); margin-top: clamp(1.2rem, 3vw, 2rem); }
.cv-becas b { font-size: clamp(4.2rem, 2.4rem + 5.2vw, 7.6rem); font-weight: 700; line-height: .78; letter-spacing: -.06em; color: var(--naranja); }
.cv-becas > span { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.6rem); font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.cv-becas small { display: block; max-width: 22ch; margin-top: .45rem; font-size: var(--step--1); font-weight: 500; line-height: 1.35; text-transform: none; letter-spacing: 0; color: rgba(255,255,255,.82); }
.cv-hero__sub { max-width: 50ch; margin-top: 1.3rem; font-size: var(--step-1); color: rgba(255,255,255,.9); }
.cv-hero .conv-estado { margin-top: 1.3rem; }
.cv-hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.cv-hero__datos {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;
  max-width: 62rem; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.3rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.cv-hero__datos b { display: block; font-size: var(--step-2); font-weight: 600; line-height: 1.05; color: #fff; }
.cv-hero__datos span { font-size: var(--step--1); color: rgba(255,255,255,.75); }

/* El departamento de la foto, en letra calada gigante y vertical sobre el borde
   derecho (eco del rótulo de los afiches). Vertical para no cruzarse nunca con el
   título, que ocupa el lado izquierdo a cualquier ancho. */
.cv-hero__dep {
  position: absolute; z-index: 1; top: 50%; right: clamp(.6rem, 2.2vw, 2rem);
  display: flex; align-items: center; gap: .9rem;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  pointer-events: none;
}
.cv-hero__dep i { width: 2px; height: 46px; background: var(--naranja); }
.cv-hero__dep span {
  font-size: clamp(2.4rem, .8rem + 3.6vw, 5rem); font-weight: 700; line-height: 1;
  text-transform: uppercase; letter-spacing: .01em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.62);
}
.cv-hero__dep span.is-in { animation: cvDepIn 1s var(--ease-out) both; }
@keyframes cvDepIn { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .cv-hero__dep { display: none; } }
@media (max-width: 760px) { .cv-hero__datos { grid-template-columns: 1fr 1fr; gap: 1.1rem; } }
@media (max-width: 520px) {
  .cv-hero { min-height: auto; }
  .cv-hero__titulo { font-size: clamp(2rem, 9vw, 2.6rem); }
  .cv-hero__cta .btn { width: 100%; }
}

/* ================= BARRA DE SECCIONES ================= */
.cv-subnav {
  position: sticky; top: var(--cv-tope, 72px); z-index: 50;
  background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea); box-shadow: var(--shadow-sm);
}
.cv-subnav__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cv-subnav__links { display: flex; gap: .1rem; overflow-x: auto; scrollbar-width: none; padding-block: .45rem; scroll-behavior: smooth; }
.cv-subnav__links::-webkit-scrollbar { display: none; }
.cv-subnav__links a { position: relative; flex-shrink: 0; padding: .6em .78em; font-size: var(--step--1); font-weight: 600; white-space: nowrap; color: var(--tinta-2); transition: color .25s; }
.cv-subnav__links a:hover { color: var(--rojo); }
.cv-subnav__links a.is-active { color: var(--rojo); }
.cv-subnav__links a.is-active::after { content: ""; position: absolute; left: .78em; right: .78em; bottom: .2em; height: 2px; background: var(--rojo); }
.cv-subnav__cta { flex-shrink: 0; }
@media (max-width: 700px) { .cv-subnav__cta { display: none; } }

/* ================= EL PROGRAMA ================= */
.cv-programa { background: var(--hueso) var(--papel) center / cover; }
.cv-programa__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.cv-programa h2 { margin-top: 1rem; max-width: 18ch; }
.cv-programa__lead { margin-top: 1.2rem; }
.cv-programa__lead b { color: var(--tinta); font-weight: 600; }
.cv-bloque { margin-top: 1.9rem; }
.cv-bloque p { color: var(--tinta-2); }
.cv-bloque p + p { margin-top: .7rem; }

.cv-collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.cv-collage figure { margin: 0; overflow: hidden; clip-path: var(--corte-suave); }
.cv-collage figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.cv-collage figure:hover img { transform: scale(1.05); }
.cv-collage__a { grid-row: 1 / 3; aspect-ratio: 3 / 5; }
.cv-collage__b { aspect-ratio: 4 / 3.4; margin-top: 3.2rem; }
.cv-collage__c { aspect-ratio: 4 / 4.6; }
.cv-collage__ave { position: absolute; z-index: 2; top: -9%; left: 41%; width: clamp(86px, 10vw, 150px); height: auto; filter: drop-shadow(0 10px 12px rgba(11,37,56,.22)); }

/* ================= CIFRAS ================= */
.cv-cifras {
  position: relative; z-index: 1; margin-block: -12px;
  padding-block: clamp(3.6rem, 6vw, 5.2rem);
  background: var(--azul); color: #fff;
  clip-path: var(--rasgado-ambos);
}
.cv-cifras__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.cv-cifra b { display: block; font-size: clamp(3rem, 1.9rem + 3.8vw, 5.6rem); font-weight: 700; line-height: .9; letter-spacing: -.05em; color: var(--naranja); }
.cv-cifra span { display: block; max-width: 18ch; margin-top: .6rem; color: #C9D7E2; }
@media (max-width: 760px) { .cv-cifras__in { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; } }

/* ================= GALERÍA ================= */
.cv-galeria { display: grid; grid-template-columns: 1fr 1.2fr 1.5fr; gap: .8rem; max-width: var(--maxw); margin-inline: auto; padding: clamp(2rem, 4vw, 3rem) var(--gutter) 0; }
.cv-galeria__foto { margin: 0; height: clamp(220px, 27vw, 380px); overflow: hidden; clip-path: var(--corte-suave); }
.cv-galeria__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.cv-galeria__foto:hover img { transform: scale(1.05); }
@media (max-width: 700px) {
  .cv-galeria { grid-template-columns: 1fr 1fr; }
  .cv-galeria__foto:last-child { grid-column: 1 / -1; }
}

/* ================= POBLACIÓN + MAPA ================= */
.cv-poblacion__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cv-poblacion h2 { margin-top: 1rem; }
.cv-poblacion .lead { margin-top: 1rem; }
.cv-grupos { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.cv-grupos li { display: inline-flex; align-items: center; gap: .55em; padding: .5em .95em; background: #fff; border: 1px solid var(--linea); font-size: var(--step--1); font-weight: 600; color: var(--azul); }
.cv-grupos li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--naranja); flex-shrink: 0; }
.cv-poblacion__nota { margin-top: 2rem; font-weight: 600; color: var(--tinta); }
.cv-deps { display: grid; gap: .45rem; margin-top: .8rem; max-width: 30rem; }
.cv-deps a {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem;
  padding: .8rem 1.2rem; background: var(--azul); color: #fff;
  clip-path: var(--corte-btn);
  transition: background .25s, color .25s, transform .3s var(--ease-out);
}
.cv-deps a span { font-size: var(--step--1); opacity: .78; }
.cv-deps a i { font-style: normal; transition: transform .3s var(--ease-out); }
.cv-deps a:hover, .cv-deps a.is-hover { background: var(--naranja); color: var(--azul); transform: translateX(6px); }
.cv-deps a:hover i, .cv-deps a.is-hover i { transform: translateX(4px); }
.cv-deps a:focus-visible { clip-path: none; }

.cv-mapa { margin: 0; padding-left: 118px; }
.cv-mapa__lienzo { position: relative; max-width: 470px; margin-left: auto; margin-right: auto; }
.cv-mapa__svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(-14px 16px 0 rgba(11,37,56,.13)); }
.cv-mapa__pais path { fill: var(--azul); stroke: #E9E3D6; stroke-width: 2; stroke-linejoin: round; }
.cv-mapa__dep { cursor: pointer; outline: none; }
.cv-mapa__dep path { fill: var(--naranja); stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; transition: fill .25s, opacity .25s; }
.cv-mapa__dep:hover path, .cv-mapa__dep.is-hover path, .cv-mapa__dep:focus-visible path { fill: var(--rojo); }
.cv-mapa.has-hover .cv-mapa__dep:not(.is-hover) path { opacity: .55; }
.cv-mapa__pin { fill: var(--azul); stroke: #fff; stroke-width: 4; pointer-events: none; }
.cv-mapa__halo { fill: none; stroke: var(--azul); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: cvHalo 2.6s var(--ease) infinite; pointer-events: none; }
.cv-mapa__linea { fill: none; stroke: var(--azul); stroke-width: 2.5; stroke-dasharray: 7 7; opacity: .6; }
.cv-mapa__linea--claro { stroke: #fff; opacity: .75; }
@keyframes cvHalo { 0% { transform: scale(.6); opacity: .8; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
.cv-mapa__rot {
  position: absolute; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: .45em;
  padding: .36em .75em; background: #fff; color: var(--azul);
  border: 1px solid var(--linea); box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 700; white-space: nowrap;
  transition: background .2s, color .2s;
}
.cv-mapa__rot i { width: 8px; height: 8px; border-radius: 50%; background: var(--naranja); }
.cv-mapa__rot:hover, .cv-mapa__rot.is-hover { background: var(--rojo); color: #fff; }
.cv-mapa__rot:hover i, .cv-mapa__rot.is-hover i { background: #fff; }
.cv-mapa figcaption { margin-top: 1rem; text-align: center; font-size: var(--step--1); color: var(--tinta-3); }
@media (max-width: 820px) {
  .cv-poblacion__grid { grid-template-columns: 1fr; }
  .cv-mapa { padding-left: 96px; }
  .cv-mapa__rot { font-size: .74rem; padding: .3em .6em; }
}

/* ================= REQUISITOS ================= */
.cv-requisitos {
  position: relative; z-index: 1; overflow: hidden; margin-block: -12px;
  background: var(--azul); color: #D9E3EC;
  clip-path: var(--rasgado-ambos);
}
.cv-requisitos__ave { position: absolute; top: 4.5rem; right: 4%; width: clamp(86px, 10vw, 150px); height: auto; }
.cv-requisitos__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.cv-caja { padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--azul-2); border: 1px solid var(--azul-3); }
.cv-checks { display: grid; gap: .85rem; }
.cv-checks li { display: grid; grid-template-columns: 22px 1fr; gap: .75rem; color: #E4ECF2; }
.cv-checks li::before,
.cv-lista input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2538' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-position: center; background-repeat: no-repeat; background-size: 13px;
}
.cv-checks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background-color: var(--naranja); }
.cv-caja__nota, .cv-caja__ayuda { margin-top: .4rem; font-size: var(--step--1); color: #AFC1CF; }
.cv-caja__ayuda { margin-top: .9rem; }
.cv-lista { display: grid; gap: .5rem; margin-top: 1rem; }
.cv-lista label {
  display: flex; align-items: flex-start; gap: .8rem; padding: .72rem .9rem; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--azul-3); color: #E4ECF2;
  transition: background .2s, border-color .2s;
}
.cv-lista label:hover { border-color: rgba(216,132,44,.6); }
.cv-lista input {
  -webkit-appearance: none; appearance: none; flex-shrink: 0;
  width: 22px; height: 22px; margin: 1px 0 0;
  border: 2px solid rgba(255,255,255,.55); cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.cv-lista input:checked { background-color: var(--naranja); border-color: var(--naranja); }
.cv-lista input:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; }
.cv-lista label:has(input:checked) { background: rgba(216,132,44,.13); border-color: rgba(216,132,44,.55); color: #fff; }
.cv-progreso { display: flex; align-items: center; gap: .9rem; margin-top: 1.1rem; }
.cv-progreso__barra { flex: 1; height: 6px; overflow: hidden; background: rgba(255,255,255,.12); }
.cv-progreso__barra i { display: block; width: 0; height: 100%; background: var(--naranja); transition: width .45s var(--ease-out); }
.cv-progreso__txt { font-size: var(--step--1); color: #fff; white-space: nowrap; }
.cv-caja--lista.is-completa .cv-progreso__txt { color: var(--naranja); }
.cv-caja__btn { margin-top: 1.3rem; }
.cv-importante {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  margin-top: 1.2rem; padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--naranja); color: var(--azul);
  clip-path: var(--corte-suave);
}
.cv-importante__ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--azul); color: var(--naranja); font-size: 1.6rem; font-weight: 700; }
.cv-importante h3 { font-size: var(--step-1); color: var(--azul); }
.cv-importante p { margin-top: .4rem; font-weight: 500; color: var(--azul); }
@media (max-width: 820px) {
  .cv-requisitos__grid { grid-template-columns: 1fr; }
  .cv-requisitos__ave { display: none; }
}

/* ================= ENTREVISTAS ================= */
.cv-entrevistas { background: var(--hueso) var(--papel) center / cover; }
.cv-entrevistas .cv-head h2 em { white-space: nowrap; }
.cv-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.cv-tips li { display: flex; align-items: flex-start; gap: .9rem; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--linea); }
.cv-tips__n { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--azul); color: #fff; font-weight: 700; }
.cv-tips b { display: block; color: var(--tinta); }
.cv-tips span:not(.cv-tips__n) { font-size: var(--step--1); color: var(--tinta-2); }
.cv-hoy {
  display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem;
  margin-bottom: 1.4rem; padding: .9rem 1.3rem;
  background: var(--rojo); color: #fff;
  clip-path: var(--corte-suave);
}
.cv-hoy b::first-letter { text-transform: uppercase; }
.cv-hoy__punto { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: cvLatido 1.6s var(--ease) infinite; }
@keyframes cvLatido { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

.cv-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; padding-top: .6rem; margin-bottom: 1rem; }
.cv-tab {
  position: relative; display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; text-align: left;
  background: #fff; border: 1px solid var(--linea); color: var(--tinta);
  transition: background .25s, color .25s, border-color .25s;
}
.cv-tab:hover { border-color: var(--naranja); }
.cv-tab[aria-selected="true"] { background: var(--azul); border-color: var(--azul); color: #fff; }
.cv-tab__sil { width: 36px; height: 36px; flex-shrink: 0; }
.cv-tab__sil path { fill: var(--naranja); }
.cv-tab__txt { min-width: 0; }
.cv-tab__txt b { display: block; font-size: var(--step-0); line-height: 1.15; }
.cv-tab__txt small { font-size: .72rem; color: var(--tinta-3); }
.cv-tab[aria-selected="true"] small { color: #AFC1CF; }
.cv-tab__hoy { position: absolute; top: -.6rem; right: .6rem; padding: .2em .55em; background: var(--rojo); color: #fff; font-size: .66rem; font-weight: 700; font-style: normal; letter-spacing: .08em; text-transform: uppercase; clip-path: var(--corte-chip); }
@media (max-width: 980px) {
  .cv-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cv-tabs::-webkit-scrollbar { display: none; }
  .cv-tab { scroll-snap-align: start; }
}

.cv-dep { background: #fff; border: 1px solid var(--linea); }
/* Sin JavaScript las pestañas no cambian nada: se muestran todos los departamentos seguidos. */
html:not(.js) .cv-tabs { display: none; }
html:not(.js) .cv-dep[hidden] { display: block; margin-top: 1rem; }
.cv-dep:focus-visible { outline: 3px solid var(--rojo); outline-offset: 2px; }
.cv-dep__banner { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(210px, 24vw, 300px); color: #fff; }
.cv-dep__banner img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cv-dep__banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,37,56,.93) 0%, rgba(11,37,56,.55) 58%, rgba(11,37,56,.25) 100%); }
.cv-dep__banner-in { position: relative; max-width: 40rem; padding: clamp(1.4rem, 3vw, 2.2rem); }
.cv-dep__banner h3 { margin-top: .5rem; font-size: clamp(2.3rem, 1.3rem + 4vw, 4.6rem); font-weight: 700; line-height: .95; letter-spacing: -.02em; text-transform: uppercase; color: #fff; }
.cv-dep__banner p { margin-top: .8rem; font-size: var(--step--1); color: rgba(255,255,255,.9); }
.cv-dep__banner p b { color: var(--naranja); }
.cv-dep__sil { position: absolute; right: clamp(1rem, 4vw, 3rem); top: 10%; height: 80%; width: auto; max-width: 34%; filter: drop-shadow(-8px 10px 0 rgba(0,0,0,.28)); }
.cv-dep__sil path { fill: var(--naranja); }
.cv-dep.is-entrando .cv-dep__sil { animation: cvSil .9s var(--ease-out) both; }
.cv-dep.is-entrando .cv-cita { animation: cvCita .6s var(--ease-out) both; }
.cv-dep.is-entrando .cv-cita:nth-child(2) { animation-delay: .05s; }
.cv-dep.is-entrando .cv-cita:nth-child(3) { animation-delay: .1s; }
.cv-dep.is-entrando .cv-cita:nth-child(n+4) { animation-delay: .15s; }
@keyframes cvSil { from { opacity: 0; transform: translateY(16px) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes cvCita { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .cv-dep__sil { opacity: .4; } }

/* Las divisiones son bordes de cada tarjeta y no el hueco de la rejilla: con el truco
   del hueco, una última fila incompleta deja un bloque gris donde no hay tarjeta. */
.cv-citas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); margin-right: -1px; background: #fff; }
.cv-cita { position: relative; display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 1.1rem; padding: 1.3rem 1.3rem 1.4rem; background: #fff; border-right: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.cv-cita__fecha { align-self: start; padding: .7rem .3rem .65rem; text-align: center; background: var(--azul); color: #fff; clip-path: var(--corte-suave); }
.cv-cita__fecha b { display: block; font-size: 1.85rem; font-weight: 700; line-height: 1; color: var(--naranja); }
.cv-cita__fecha span { display: block; margin-top: .2rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cv-cita__fecha small { display: block; margin-top: .1rem; font-size: .68rem; color: #AFC1CF; }
.cv-cita__fecha small::first-letter { text-transform: uppercase; }
.cv-cita__estado { display: inline-block; padding: .22em .62em; background: var(--verde-suave); color: var(--verde); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; clip-path: var(--corte-chip); }
.cv-cita h4 { margin-top: .45rem; font-size: var(--step-1); }
.cv-cita__lugar { margin-top: .2rem; font-weight: 600; line-height: 1.35; color: var(--tinta); }
.cv-cita__dir { font-size: var(--step--1); color: var(--tinta-2); }
.cv-cita__horas { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.cv-cita__horas li { display: inline-flex; align-items: center; gap: .35em; padding: .3em .62em; background: var(--hueso); color: var(--azul); font-size: var(--step--1); font-weight: 600; }
.cv-cita__horas svg { width: 14px; height: 14px; color: var(--naranja-hover); }
.cv-cita__mapa { display: inline-flex; gap: .3em; margin-top: .8rem; font-size: var(--step--1); font-weight: 600; color: var(--rojo); }
.cv-cita__mapa:hover { text-decoration: underline; text-underline-offset: 3px; }
.cv-cita--hoy { box-shadow: inset 4px 0 0 var(--rojo); }
.cv-cita--hoy .cv-cita__estado { background: var(--rojo); color: #fff; }
.cv-cita--hoy .cv-cita__fecha { background: var(--rojo); }
.cv-cita--hoy .cv-cita__fecha b { color: #fff; }
.cv-cita--hoy .cv-cita__fecha small { color: rgba(255,255,255,.85); }
.cv-cita--realizada { background: #FBFAF6; }
.cv-cita--realizada .cv-cita__estado { background: #ECEAE4; color: var(--tinta-3); }
.cv-cita--realizada .cv-cita__fecha { background: var(--tinta-3); }
.cv-cita--realizada .cv-cita__fecha b { color: #fff; }
.cv-cita--realizada .cv-cita__fecha small { color: rgba(255,255,255,.8); }
.cv-cita--realizada h4, .cv-cita--realizada .cv-cita__lugar { color: var(--tinta-2); }
.cv-dep__pie { display: flex; justify-content: flex-end; padding: 1rem 1.3rem; }
@media (max-width: 820px) { .cv-tips { grid-template-columns: 1fr; } }

/* ================= FECHAS ================= */
.cv-fechas { background: #FBF9F2; }
.cv-fechas__ave { position: absolute; top: clamp(1.5rem, 4vw, 3rem); right: 4%; width: clamp(70px, 7vw, 110px); height: auto; }
@media (max-width: 700px) { .cv-fechas__ave { display: none; } }
.cv-fechas__faltan { margin-top: 1rem; font-size: var(--step-1); color: var(--tinta-2); }
.cv-fechas__faltan b { margin-right: .15em; font-size: var(--step-3); font-weight: 700; line-height: 1; color: var(--rojo); }
.cv-linea { --avance: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; padding-top: 1rem; }
.cv-linea::before, .cv-linea::after { content: ""; position: absolute; top: calc(1rem + 10px); left: 10%; height: 4px; background: var(--linea); }
.cv-linea::before { right: 10%; }
.cv-linea::after { width: calc(80% * var(--avance)); background: linear-gradient(90deg, var(--naranja), var(--rojo)); }
.cv-linea.is-in::after { animation: cvAvance 1.6s var(--ease-out) both .2s; }
@keyframes cvAvance { from { width: 0; } }
.cv-hito { position: relative; padding: 2.4rem .6rem 1rem; text-align: center; }
.cv-hito__punto { position: absolute; z-index: 1; top: 0; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: #fff; border: 4px solid var(--linea); }
.cv-hito--hecho .cv-hito__punto { background: var(--naranja); border-color: var(--naranja); }
.cv-hito--actual .cv-hito__punto { background: var(--rojo); border-color: #fff; box-shadow: 0 0 0 3px var(--rojo); animation: cvPunto 1.8s var(--ease) infinite; }
@keyframes cvPunto { 0%, 100% { box-shadow: 0 0 0 3px var(--rojo), 0 0 0 3px rgba(233,10,45,.35); } 50% { box-shadow: 0 0 0 3px var(--rojo), 0 0 0 12px rgba(233,10,45,0); } }
.cv-hito__estado { display: inline-block; padding: .2em .6em; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-3); }
.cv-hito--hecho .cv-hito__estado { color: var(--naranja-hover); }
.cv-hito--actual .cv-hito__estado { background: var(--rojo); color: #fff; clip-path: var(--corte-chip); }
.cv-hito--actual { background: #fff; box-shadow: var(--shadow-md); }
.cv-hito h3 { margin-top: .5rem; font-size: var(--step-1); }
.cv-hito b { display: block; margin-top: .35rem; font-weight: 600; color: var(--azul); }
.cv-hito p { margin-top: .2rem; font-size: var(--step--1); color: var(--tinta-2); }
@media (max-width: 860px) {
  .cv-linea { grid-template-columns: 1fr; gap: 1.2rem; padding: 0 0 0 2.6rem; }
  .cv-linea::before, .cv-linea::after { top: 12px; left: 10px; width: 4px; height: auto; }
  .cv-linea::before { right: auto; bottom: 12px; }
  .cv-linea::after { bottom: auto; height: calc((100% - 24px) * var(--avance)); }
  .cv-linea.is-in::after { animation: none; }
  .cv-hito { padding: .2rem 1rem .9rem; text-align: left; }
  .cv-hito__punto { top: .2rem; left: -2.6rem; margin-left: 0; }
  .cv-hito--actual { padding-top: .9rem; }
  .cv-hito--actual .cv-hito__punto { top: .9rem; }
}

/* ================= QUÉ INCLUYE ================= */
.cv-incluye {
  position: relative; z-index: 1; overflow: hidden; margin-block: -12px;
  background: var(--azul); color: #D9E3EC;
  clip-path: var(--rasgado-ambos);
}
.cv-incluye__ave { position: absolute; top: 3rem; right: 3%; width: clamp(76px, 8vw, 120px); height: auto; }
.cv-incluye__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--azul-3); border: 1px solid var(--azul-3); }
.cv-incluye__item { display: flex; flex-direction: column; gap: .9rem; padding: 1.4rem 1.3rem; background: var(--azul); color: #E4ECF2; font-weight: 500; transition: background .3s; }
.cv-incluye__item:hover { background: var(--azul-2); }
.cv-incluye__ic { width: 50px; height: 50px; display: grid; place-items: center; background: rgba(216,132,44,.15); color: var(--naranja); clip-path: var(--corte-chip); }
.cv-incluye__ic svg { width: 26px; height: 26px; }
.cv-noincluye { margin-top: 1.4rem; padding: clamp(1.4rem, 3vw, 2rem); background: var(--vino-suave); clip-path: var(--corte-suave); }
.cv-noincluye ul { display: grid; gap: .75rem; margin-top: .3rem; }
.cv-noincluye li { display: grid; grid-template-columns: 24px 1fr; gap: .75rem; color: var(--tinta); }
.cv-noincluye li::before { content: "×"; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--vino); color: #fff; font-size: 1.05rem; font-weight: 700; line-height: 1; }
@media (max-width: 980px) { .cv-incluye__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cv-incluye__ave { display: none; } }
@media (max-width: 480px) { .cv-incluye__grid { grid-template-columns: 1fr; } .cv-incluye__item { flex-direction: row; align-items: center; } .cv-incluye__ic { flex-shrink: 0; } }

/* ================= SEDE ================= */
.cv-sede { background: var(--hueso) var(--papel) center / cover; }
.cv-sede__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cv-sede__foto { position: relative; min-height: 480px; margin: 0; clip-path: var(--corte-suave); }
.cv-sede__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cv-sede__foto figcaption { position: absolute; left: 1.2rem; bottom: 1.2rem; padding: .6rem 1rem; background: var(--naranja); color: var(--azul); font-size: var(--step--1); clip-path: var(--corte-chip); }
.cv-sede__foto figcaption b { display: block; font-size: var(--step-0); }
.cv-sede h2 { margin-top: 1rem; }
.cv-sede .lead { margin-top: 1rem; }
.cv-sede__txt > p:not(.lead) { margin-top: .8rem; color: var(--tinta-2); }
.cv-sede__datos { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 1.6rem 0; background: var(--linea); border: 1px solid var(--linea); }
.cv-sede__datos li { padding: 1.1rem 1.2rem; background: #fff; }
.cv-sede__datos b { display: block; font-size: var(--step-3); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--verde); }
.cv-sede__datos span { display: block; margin-top: .35rem; font-size: var(--step--1); color: var(--tinta-2); }
@media (max-width: 820px) { .cv-sede__grid { grid-template-columns: 1fr; } .cv-sede__foto { min-height: 300px; } }

/* ================= PREGUNTAS ================= */
.cv-faq { background: #FBF9F2; }
.cv-faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.cv-faq .cv-head { position: sticky; top: calc(var(--cv-tope, 72px) + 80px); }
.cv-faq .cv-head a { font-weight: 600; color: var(--rojo); }
/* La viajera con binoculares de los afiches, mirando hacia las preguntas. */
.cv-faq__ilus { width: min(100%, 360px); height: auto; margin-top: 2rem; }
.cv-faq__lista details { margin-bottom: .6rem; background: #fff; border: 1px solid var(--linea); transition: border-color .25s; }
.cv-faq__lista details[open] { border-color: rgba(216,132,44,.6); }
.cv-faq__lista summary { position: relative; padding: 1.1rem 3.4rem 1.1rem 1.3rem; list-style: none; cursor: pointer; font-weight: 600; color: var(--tinta); }
.cv-faq__lista summary::-webkit-details-marker { display: none; }
.cv-faq__lista summary::after { content: "+"; position: absolute; top: 50%; right: 1.1rem; width: 30px; height: 30px; margin-top: -15px; display: grid; place-items: center; background: var(--hueso); color: var(--azul); font-size: 1.25rem; transition: background .25s; }
.cv-faq__lista details[open] summary::after { content: "−"; background: var(--naranja); }
.cv-faq__lista details p { padding: 0 1.3rem 1.2rem; color: var(--tinta-2); }
@media (max-width: 820px) { .cv-faq__grid { grid-template-columns: 1fr; } .cv-faq .cv-head { position: static; } .cv-faq__ilus { display: none; } }

/* ================= MÁS INFORMACIÓN ================= */
.cv-final {
  position: relative; overflow: hidden; margin-top: -12px;
  padding-block: clamp(4.2rem, 7vw, 6rem) 2.2rem;
  background: var(--azul); color: #D9E3EC;
  clip-path: var(--rasgado-arriba);
}
.cv-final__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cv-final .eyebrow { color: var(--naranja); }
.cv-final h2 { margin-top: 1rem; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.3rem); color: #fff; }
.cv-final__txt > p { max-width: 44ch; margin-top: 1rem; font-size: var(--step-1); }
.cv-final__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.cv-final__tel { display: inline-block; margin-top: 1.3rem; color: #AFC1CF; }
.cv-final__tel b { margin-left: .3rem; font-size: var(--step-1); color: #fff; }
.cv-final__afiche { position: relative; justify-self: center; width: min(100%, 300px); rotate: -3deg; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); transition: rotate .5s var(--ease-out), transform .5s var(--ease-out); }
.cv-final__afiche:hover { rotate: 0deg; transform: translateY(-6px); }
.cv-final__afiche img { width: 100%; height: auto; clip-path: var(--corte-suave); }
.cv-final__afiche span { position: absolute; left: 50%; bottom: -1.1rem; translate: -50% 0; padding: .6rem 1.2rem; white-space: nowrap; background: var(--naranja); color: var(--azul); font-size: var(--step--1); font-weight: 700; clip-path: var(--corte-btn); }
.cv-final__afiche span i { font-style: normal; }
.cv-final__marcas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: clamp(3.4rem, 6vw, 4.8rem); padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.14); }
.cv-final__marcas img { height: clamp(40px, 4.5vw, 56px); width: auto; }
.cv-final__marcas .cv-final__fundacion { height: clamp(32px, 3.5vw, 44px); filter: brightness(0) invert(1); }
.cv-final__lema { text-align: center; text-transform: uppercase; letter-spacing: .2em; line-height: 1.4; color: #fff; }
.cv-final__lema b { display: block; font-size: var(--step-1); letter-spacing: .14em; }
.cv-final__lema span { font-size: var(--step--1); font-weight: 600; }
@media (max-width: 820px) {
  .cv-final__in { grid-template-columns: 1fr; }
  .cv-final__afiche { width: min(70%, 260px); margin-top: 1rem; }
  .cv-final__marcas { justify-content: center; }
}
