/* /visitas/ — visitas pedagógicas y grupos.
   Reuses the eclipse page's layout vocabulary (eclipse.css: .ecl-nav, .ecl-hero,
   .ecl-card, .ecl-bullets, .ecl-facts, .ecl-moments, .ecl-chip) and the site's
   section / FAQ / button primitives (style.css). Only the visit-specific pieces
   live here. Loaded after eclipse.css, so same-specificity overrides win. */

/* ---- hero: the school group in front of the dome (daylight photo, so the
   text side gets a heavier veil than the eclipse hero) ---- */
.vis-hero { min-height: clamp(520px, 82vh, 780px); }
.vis-hero::before {
  background:
    linear-gradient(90deg, rgba(6,8,28,0.86) 0%, rgba(6,8,28,0.62) 42%, rgba(6,8,28,0.18) 100%),
    linear-gradient(180deg, rgba(6,8,28,0.22) 0%, rgba(6,8,28,0.30) 45%, rgba(6,8,28,0.92) 100%),
    url('/assets/images/visitas/hero-colegio-1280b.webp'),
    linear-gradient(180deg, #0a0e26 0%, #05060f 100%);
  background-size: cover;
  background-position: 58% 40%;
}
@media (max-width: 720px) {
  /* Phones: the text stack fills the hero, so reserve a band under the buttons
     for the faces — scale the photo up, anchor it to the top (dome behind the
     title, feet cut off below) and keep the veil light over that band. */
  .vis-hero { padding-bottom: 236px; }
  .vis-hero::before {
    background-image:
      linear-gradient(180deg, rgba(6,8,28,0.34) 0%, rgba(6,8,28,0.58) 42%, rgba(6,8,28,0.42) 70%, rgba(6,8,28,0.28) 86%, rgba(6,8,28,0.80) 100%),
      url('/assets/images/visitas/hero-colegio-800pb.webp'),
      linear-gradient(180deg, #0a0e26 0%, #05060f 100%);
    background-size: auto 156%;
    background-position: 57% 0%;   /* window one head to the right of centre */
  }
  .vis-hero .vis-hero-credit { bottom: 10px; }
}

/* ---- two photos under the objectives: inside the dome, the Sun through the telescope ---- */
.vis-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.vis-gallery figure { margin: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.vis-gallery img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.vis-gallery figcaption { flex: 1; padding: 12px 16px 14px; font-size: 0.86rem; line-height: 1.5; color: var(--text-2); }   /* absorbs the leftover height: both cards end on the timeline card's bottom line */
.vis-hero .vis-hero-credit { position: absolute; right: var(--gutter); bottom: 16px; margin: 0; z-index: 2; font-size: 0.72rem; color: var(--text-3); letter-spacing: 0.02em; }
#quien, #visita, #valores, #transporte, #reservar, #faq { scroll-margin-top: 84px; }
.section.vis-compact { padding-block: clamp(48px, 7vw, 96px); }
.vis-who h3, .vis-split h3 { margin-top: 8px; }

/* ---- «Para quién»: three cards with their own CTA ---- */
.vis-who { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.vis-who .ecl-card { display: flex; flex-direction: column; }
.vis-who h3 { font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; line-height: 1.15; margin: 8px 0 8px; color: var(--text-0); }
.vis-who p { color: var(--text-1); font-size: 0.95rem; line-height: 1.6; margin: 0 0 14px; }
.vis-who .ecl-bullets { margin: 0 0 22px; color: var(--text-1); font-size: 0.93rem; line-height: 1.55; display: grid; gap: 8px; }
.vis-who .btn { margin-top: auto; align-self: flex-start; }

/* ---- objectives + photos (left column) beside the timeline (right) ---- */
.vis-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: stretch; }
.vis-col { display: grid; gap: 20px; grid-template-rows: auto 1fr; }   /* objectives card, then the gallery takes whatever height the timeline card sets */
.vis-timeline { display: flex; flex-direction: column; justify-content: center; }
.vis-timeline .ecl-card-tag { align-self: flex-start; }
.vis-timeline h3 { font-family: var(--f-display); font-size: 1.35rem; font-weight: 500; margin: 6px 0 10px; color: var(--text-0); }
.vis-timeline .vis-card-p { color: var(--text-1); font-size: 0.95rem; line-height: 1.6; margin: 0 0 14px; }
.vis-timeline .ecl-moments { margin-top: 4px; }
.vis-timeline .vis-card-q { color: var(--text-1); font-size: 0.93rem; line-height: 1.6; margin: 16px 0 0; }
@media (max-width: 900px) { .vis-split { grid-template-columns: 1fr; } }
.vis-split h3 { font-family: var(--f-display); font-size: 1.35rem; font-weight: 500; margin: 6px 0 12px; color: var(--text-0); }
.vis-split .ecl-bullets { color: var(--text-1); font-size: 0.95rem; line-height: 1.6; display: grid; gap: 10px; }
.vis-timeline .ecl-moments li { grid-template-columns: 70px 1fr; align-items: baseline; }
.vis-timeline .ecl-moments .t { font-family: var(--f-mono); font-size: 0.8rem; color: var(--gold-bright); letter-spacing: 0.04em; }
.vis-timeline .ecl-moments strong { color: var(--text-0); font-weight: 600; }
.vis-timeline .ecl-moments span:last-child { color: var(--text-1); font-size: 0.95rem; line-height: 1.55; }
.vis-timeline .ecl-note { margin-top: 14px; }

/* ---- values: the facts grid carries the four numbers, a card the rules ---- */
.vis-values .ecl-facts { margin-top: 0; }
.vis-values .ecl-fact-v { font-family: var(--f-display); font-size: 1.6rem; color: var(--gold-bright); line-height: 1.1; }
.vis-values .ecl-fact-v small { display: block; font-family: var(--f-body); font-size: 0.82rem; color: var(--text-2); margin-top: 4px; }
.vis-conditions { margin-top: 22px; }
.vis-conditions .ecl-bullets { color: var(--text-1); font-size: 0.95rem; line-height: 1.6; display: grid; gap: 10px; margin: 0; }

/* ---- transport: statement + Turistik contact ---- */
.vis-transport { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; align-items: stretch; }
@media (max-width: 820px) { .vis-transport { grid-template-columns: 1fr; } }
.vis-transport p { color: var(--text-1); font-size: 0.95rem; line-height: 1.65; margin: 0 0 12px; }
.vis-transport .vis-statement { color: var(--text-0); font-weight: 500; border-left: 3px solid var(--gold); padding-left: 14px; margin-top: 16px; }
.vis-transport .ecl-bullets { color: var(--text-1); font-size: 0.93rem; line-height: 1.6; display: grid; gap: 9px; margin: 0; }
.vis-kv { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.vis-kv li { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); font-size: 0.95rem; }
.vis-kv li:last-child { border-bottom: none; }
.vis-kv .k { color: var(--text-2); }
.vis-kv .v { color: var(--text-0); text-align: right; }
.vis-kv .v a { color: var(--gold-bright); text-decoration: none; }
.vis-kv .v a:hover { text-decoration: underline; }

/* ---- «Próximas fechas con cupo» (hand-off §6): filled by visitas.js from the
   panel's availability feed; the card stays hidden until it answers ---- */
.vis-avail { margin-bottom: 26px; }
.vis-avail .vis-avail-p { color: var(--text-1); font-size: 0.95rem; line-height: 1.6; margin: 0 0 16px; max-width: 720px; }
.vis-avail-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.vis-avail-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; text-decoration: none;
  background: rgba(6,8,28,0.45); border: 1px solid var(--border-strong); border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.vis-avail-list a:hover { border-color: var(--gold); transform: translateY(-2px); }
.vis-avail-list .d { color: var(--text-0); font-weight: 500; font-size: 0.98rem; white-space: nowrap; }
.vis-avail-list .t { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--gold-bright); text-align: right; }
.vis-avail-more { margin: 16px 0 0; color: var(--text-3); font-size: 0.88rem; line-height: 1.55; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.vis-avail-more .vis-avail-all { color: var(--gold-bright); font-weight: 500; font-size: 0.92rem; text-decoration: none; }
.vis-avail-more .vis-avail-all:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .vis-avail-list a { transition: none; } .vis-avail-list a:hover { transform: none; } }
/* Turistik card: the sequencing note under the prices, then the three routes as name + stations */
.vis-transport .vis-box-note { color: var(--text-1); font-size: 0.9rem; line-height: 1.6; margin: 14px 0 0; padding-top: 14px; border-top: 1px dashed var(--border); }
.vis-transport .vis-routes-h { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin: 20px 0 4px; font-weight: 500; }
.vis-transport .vis-routes { list-style: none; padding: 0; margin: 0; }
.vis-transport .vis-routes li { display: grid; gap: 2px; padding: 9px 0; border-top: 1px dashed var(--border); font-size: 0.93rem; line-height: 1.5; }
.vis-transport .vis-routes li + li { margin-top: 0; }
.vis-transport .vis-routes strong { color: var(--text-0); font-weight: 600; }
.vis-transport .vis-routes span { color: var(--text-2); }

/* ---- «Cómo reservar»: four numbered steps ---- */
.vis-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.vis-steps li {
  counter-increment: step; position: relative; padding: 24px 22px 24px 70px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.vis-steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 24px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 0.9rem; font-weight: 500; color: #1a1206;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
}
.vis-steps h3 { font-family: var(--f-display); font-size: 1.12rem; font-weight: 500; margin: 0 0 6px; color: var(--text-0); }
.vis-steps p { margin: 0; color: var(--text-1); font-size: 0.92rem; line-height: 1.6; }
/* «Qué traer»: one row per season, chips aligned after a mono label */
.vis-bring-wrap { margin-top: 30px; display: grid; gap: 12px; }
.vis-bring-wrap h3 { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0 0 2px; font-weight: 500; }
.vis-bring { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vis-bring .k { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); min-width: 5.2rem; }
.vis-bring-note { color: var(--text-3); font-size: 0.86rem; line-height: 1.55; margin: 4px 0 0; }

/* ---- teacher tips: before / on the summit / back at school + the Aula card ---- */
.vis-tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.vis-tips-grid .ecl-card { display: flex; flex-direction: column; }
.vis-tips .ecl-bullets { color: var(--text-1); font-size: 0.93rem; line-height: 1.6; display: grid; gap: 10px; margin: 0; }
.vis-tips .vis-tips-link { margin-top: auto; padding-top: 16px; color: var(--gold-bright); font-size: 0.92rem; font-weight: 500; text-decoration: none; }
.vis-tips .vis-tips-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ecl-aula-card.vis-aula { margin: 26px auto 0; }

/* ---- FAQ tail + final call to action ---- */
.vis-faq-contact { text-align: center; margin-top: 26px; color: var(--text-2); font-size: 0.92rem; }
.vis-faq-contact a { color: var(--gold-bright); text-decoration: none; }
.vis-cta {
  text-align: center; padding: clamp(40px, 6vw, 72px) 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.vis-cta h2 { font-family: var(--f-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; margin: 0 0 12px; color: var(--text-0); }
.vis-cta p { color: var(--text-1); max-width: 620px; margin: 0 auto 26px; line-height: 1.6; }
