/* =============================================================
   PLANTILLA PÁGINAS SEO — Buenos Aires Fly Fishing
   Se carga DESPUÉS de styles.css en cada página SEO:
   <link rel="stylesheet" href="/css/seo-page.css">

   Bloques (en orden):
   1. .seo-hero      → Foto + H1, tagline y subtítulo (mismas clases
                        y tipografía que el hero de la home)
   2. .seo-text      → Texto
   3. .seo-slider    → Slider de fotos centrado, 75% del ancho
                        (usa el JS de slider que ya está en main.js)
   4. .seo-cards     → 3 cajas (programas / precios)
   5. .seo-cta       → CTA a todo el ancho
   ============================================================= */

/* --- 1. HERO CON FOTO --- */
.seo-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #223300; /* color mientras carga la foto */
}
.seo-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.seo-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.30) 45%, rgba(0,0,0,0.50) 100%);
}
/* El texto usa .hero-video__content / __tagline / __subtitle de styles.css
   (igual que la home). Acá solo se agrega el espacio para el menú. */
.seo-hero .hero-video__content { padding-top: 6.5rem; padding-bottom: 3rem; }

/* Variante: cuando el protagonista de la foto está abajo (ej.: el bote),
   el texto sube para no taparlo. */
.seo-hero--subject-bottom { align-items: flex-start; }
.seo-hero--subject-bottom .hero-video__content { padding-top: 8.5rem; }
.seo-hero--subject-bottom .seo-hero__img { object-position: 45% 25%; }

/* --- 2. TEXTO --- */
.seo-text {
  max-width: 780px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}
.seo-text__line {
  width: 50px; height: 3px;
  background: var(--color-accent);
  margin: 0 auto 2rem;
}
.seo-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1.1rem;
}
.seo-text--center { text-align: center; }
.seo-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: #223300;
  margin: 2.5rem 0 1.25rem;
}
.seo-text h2:first-child { margin-top: 0; }
.seo-text ul,
.seo-text ol { margin: 0 0 1.25rem; padding-left: 1.3rem; text-align: left; }
.seo-text li { font-size: 1.02rem; line-height: 1.7; color: var(--color-text); margin-bottom: 0.6rem; }
.seo-text strong { color: #223300; }
.seo-text a:not(.btn) { color: #223300; text-decoration: underline; text-decoration-color: #feb903; text-underline-offset: 3px; }

/* --- 3. SLIDER CENTRADO (75% del ancho) --- */
/* El slider lleva también la clase .split-slider para usar el JS de main.js */
.seo-slider-wrap {
  width: 75%;
  margin: 0 auto 5rem;
}
.split-slider.seo-slider {
  aspect-ratio: 16 / 9;
  background: #223300;
}
.split-slider.seo-slider .split-slider__slide { background: #223300; }
.split-slider.seo-slider .split-slider__slide img { object-fit: cover; }
.split-slider.seo-slider .split-slider__arrow { width: 48px; height: 48px; font-size: 1.6rem; }
.split-slider.seo-slider .split-slider__arrow--prev { left: 16px; }
.split-slider.seo-slider .split-slider__arrow--next { right: 16px; }

/* --- 4. CAJAS (programas / precios) --- */
.seo-cards {
  background: #F7F5EF;
  padding: 0 2rem 4.5rem;
}
.seo-cards__grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; }
@media (min-width: 960px) { .seo-cards__grid { grid-template-columns: repeat(3, 1fr); } }
.seo-card { position: relative; display: flex; flex-direction: column; border: 1px solid rgba(34,51,0,0.12); border-top: 3px solid var(--color-accent); padding: 2.25rem 1.85rem 2rem; background: #fff; }
.seo-card__badge { display: inline-block; align-self: flex-start; font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.7rem; margin-bottom: 1rem; background: #feb903; color: #223300; }
.seo-card h3 { font-size: 1.4rem; line-height: 1.25; color: var(--color-heading-dark); margin: 0 0 0.4rem; font-weight: 400; }
.seo-card__meta { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; color: var(--color-brown); margin: 0 0 1.25rem; }
.seo-card p { font-size: 0.98rem; line-height: 1.65; color: var(--color-text); margin: 0 0 0.9rem; }
.seo-card ul { margin: auto 0 0; padding: 1rem 0 0; list-style: none; border-top: 1px solid rgba(34,51,0,0.12); }
.seo-card li { font-size: 0.92rem; line-height: 1.5; color: var(--color-text); padding: 0.3rem 0 0.3rem 1.3rem; position: relative; }
.seo-card li::before { content: ''; position: absolute; left: 0; top: 0.75rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #feb903; }
.seo-card p a { text-decoration: underline; text-decoration-color: #feb903; text-underline-offset: 3px; }
.seo-card--featured { background: #223300; border-color: #223300; border-top-color: #feb903; }
.seo-card--featured h3 { color: #fff; }
.seo-card--featured .seo-card__meta { color: #feb903; }
.seo-card--featured p, .seo-card--featured li { color: rgba(255,255,255,0.92); }
.seo-card--featured ul { border-color: rgba(254,185,3,0.3); }
.seo-cards__note { max-width: 700px; margin: 1.75rem auto 0; text-align: center; font-size: 0.9rem; font-style: italic; color: var(--color-text); opacity: 0.85; }

/* --- Tabla dentro del texto (páginas guía) --- */
.seo-table-wrap { overflow-x: auto; margin: 0 0 1.5rem; -webkit-overflow-scrolling: touch; }
.seo-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.95rem; text-align: left; }
.seo-table th { font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.9rem; background: #223300; color: #feb903; padding: 0.75rem 0.9rem; }
.seo-table td { padding: 0.8rem 0.9rem; border-bottom: 1px solid rgba(34,51,0,0.12); color: var(--color-text); line-height: 1.5; vertical-align: top; }
.seo-table tbody tr:last-child td { background: #FFF8E1; }
.seo-table--plain tbody tr:last-child td { background: transparent; }
.seo-table tbody tr.is-highlight td { background: #FFF8E1; }
.seo-cards__note a { text-decoration: underline; text-decoration-color: #feb903; text-underline-offset: 3px; }

/* --- Gráfico de temporada (barras de temperatura y claridad del agua) --- */
.seo-season-chart { margin: 0 0 2rem; padding: 1.5rem 1.5rem 1.25rem; border: 1px solid rgba(34,51,0,0.12); background: #FFFFFF; }
.ssc-grid { display: grid; grid-template-columns: repeat(12, 1fr); }
.ssc-grid--half { grid-template-columns: repeat(24, 1fr); } /* medios meses: las estaciones se superponen en septiembre */
.ssc-seasons span { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; color: #223300; text-align: center; padding: 0.35rem 0; border-left: 1px solid rgba(34,51,0,0.18); }
.ssc-seasons span:first-child { border-left: none; }
.ssc-rating { display: grid; grid-template-columns: repeat(12, 1fr); margin: 0.35rem 0 0.5rem; border-radius: 4px; }
.ssc-rating > span { color: #223300; font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; padding: 0.35rem 0.25rem; }
.ssc-rating > span.is-good { opacity: 0.7; }
.ssc-months span { font-size: 0.75rem; color: var(--color-text); opacity: 0.75; text-align: center; padding-bottom: 0.35rem; }
.ssc-row { margin-top: 0.85rem; }
.ssc-label { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.88rem; font-weight: 600; color: #223300; margin-bottom: 0.4rem; }
.ssc-key { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 400; }
.ssc-key em { font-style: normal; font-size: 0.75rem; opacity: 0.75; }
.ssc-key i { display: inline-block; width: 70px; height: 8px; border-radius: 4px; }
.ssc-bar { height: 22px; border-radius: 4px; }
.seo-season-chart figcaption { margin-top: 0.9rem; font-size: 0.8rem; font-style: italic; color: var(--color-text); opacity: 0.75; }
@media (max-width: 768px) {
  .seo-season-chart { padding: 1.1rem 0.9rem 1rem; }
  .ssc-seasons span { font-size: 0.68rem; letter-spacing: 0.02em; }
  .ssc-rating > span { font-size: 0.62rem; letter-spacing: 0.05em; }
  .ssc-months span { font-size: 0.62rem; }
  .ssc-key i { width: 44px; }
}

/* Subtítulo bajo el título de las cajas (ej.: "from USD 400") */
.seo-cards .section-header__lead { margin-top: 1.1rem; font-size: 1.05rem; color: var(--color-text); }
.seo-cards .section-header__lead strong { color: #223300; }

/* --- 5. CTA A TODO EL ANCHO --- */
.seo-cta {
  background: #feb903;
  text-align: center;
  padding: 5rem 2rem;
}
.seo-cta h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  color: #223300;
  max-width: 820px;
  margin: 0 auto 0.75rem;
}
.seo-cta p {
  font-size: 1.05rem;
  color: #223300;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 2rem;
}
.seo-cta__buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.seo-cta__secondary { background: transparent; color: #223300; border: 2px solid #223300; }
.seo-cta__secondary:hover { background: #223300; color: #feb903; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .seo-hero { min-height: 80vh; }
  .seo-hero--subject-bottom .hero-video__content { padding-top: 7rem; }
  .seo-hero--subject-bottom .seo-hero__img { object-position: 40% 50%; }
  .seo-text { padding: 3.25rem 1.25rem; }
  .seo-slider-wrap { width: calc(100% - 2.5rem); margin-bottom: 3.5rem; }
  .split-slider.seo-slider { aspect-ratio: 4 / 3; }
  .split-slider.seo-slider .split-slider__arrow { width: 40px; height: 40px; font-size: 1.3rem; }
  .seo-cards { padding: 0 1.25rem 3.25rem; }
  .seo-card { padding: 1.75rem 1.5rem; }
  .seo-cta { padding: 3.75rem 1.25rem 5.5rem; } /* espacio extra por la barra flotante móvil */
}
