/* ==========================================================================
   RTVE Instituto — Single Product Page
   Mobile-first · max-width 1240px · replica layout de haz.institutortve.com
   ========================================================================== */

/* ── Reset WooCommerce ────────────────────────────────────────────────────── */
.prd-page .woocommerce-breadcrumb,
.prd-page .product_meta,
.prd-page .woocommerce-tabs { display: none !important; }

/* ── Contenedor base ──────────────────────────────────────────────────────── */
.prd-page {
  background: var(--rtve-black);
  color: var(--rtve-text);
}

/* ── Contenedor centrado (reutilizable) ───────────────────────────────────── */
.prd-container {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 1. BREADCRUMB                                                               */
/* ─────────────────────────────────────────────────────────────────────────── */

.prd-breadcrumb {
  padding: 12px 0;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  background: var(--rtve-ink);
}

.prd-breadcrumb .prd-container {
  display: flex;
  align-items: center;
}

.prd-breadcrumb .woocommerce-breadcrumb {
  display: block !important;
  margin: 0; padding: 0;
  background: transparent;
  font-size: inherit; color: inherit;
}

.prd-breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; }
.prd-breadcrumb a:hover { color: #fff; }

.prd-breadcrumb a,
.prd-breadcrumb span {
    margin: 0 6px;
}
.prd-breadcrumb a:first-child {
    margin-left: 0;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 2. HERO                                                                     */
/* ─────────────────────────────────────────────────────────────────────────── */

.prd-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-block: 48px 52px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #111520;
}

/* Degradado sobre la imagen del hero */
.prd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.90) 40%, rgba(0,0,0,.3) 100%);
  z-index: 0;
  pointer-events: none;
}

/* El contenedor del hero limita el ancho del texto */
.prd-hero > .prd-container {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

.prd-hero__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
  padding: 40px 48px 40px 0;
  position: relative;
  z-index: 1;
}

.prd-hero__content > * + * {
  margin-top: 12px;
}

.prd-hero__btns {
  margin-top: 20px;
}

.prd-hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.prd-hero__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 2px;
  background: var(--rtve-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.prd-hero__kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.8);
}

.prd-hero__title {
  margin: 0;
  font-family: var(--rtve-display);
  font-size: clamp(26px, 4.5vw, 48px);
  line-height: 1.1;
  color: #fff;
}

.prd-hero__excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,.85);
}

.prd-hero__excerpt p { margin: 0; }

.prd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.prd-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 5px;
  font-family: var(--rtve-display);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: filter 160ms ease, transform 160ms ease;
}

.prd-hero__btn:hover { transform: translateY(-1px); filter: brightness(1.1); }

.prd-hero__btn--reservar {
  background: linear-gradient(270deg, #F6A30B 5.55%, #ED6E00 50%);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  border: none;
}

.prd-hero__btn--folleto {
  background: rgba(255,255,255,.10);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  border: 1px solid #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 14px 32px;
  height: 100%;
  min-height: 46px;
}

.prd-hero__brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.prd-hero__brand img {
  height: 40px;
  width: auto;
  opacity: .9;
  object-fit: contain;
}

/* ── Hero con vídeo: layout dos columnas ─────────────────────────────────── */

.prd-hero__inner {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 48px;
  align-items: center;
}

/* En layout de 2 col el contenido no necesita max-width ni padding derecho */
.prd-hero__inner .prd-hero__content {
  max-width: none;
  padding-right: 0;
}

.prd-hero__media {
  width: 100%;
  position: relative;
  z-index: 2;
}

.prd-hero__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}

.prd-hero__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.prd-hero__img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

@media (max-width: 768px) {
  .prd-hero__inner {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 3. INFO STRIP — tarjeta blanca sobre fondo blanco, ancho contenido         */
/* ─────────────────────────────────────────────────────────────────────────── */

.prd-infostrip-wrap {
  padding-bottom: 40px;
}

.prd-infostrip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
  margin-top: -28px;          /* solapa ligeramente el hero */
  position: relative;
  z-index: 10;
}

.prd-infostrip__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  background: #fff;
}

.prd-infostrip__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,135,0,.10);
  color: var(--rtve-orange);
}

.prd-infostrip__icon svg { display: block; }

.prd-infostrip__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
  margin-bottom: 3px;
}

.prd-infostrip__value {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.prd-infostrip__sub {
  display: block;
  font-size: 11px;
  color: var(--rtve-orange);
  margin-top: 2px;
}

.prd-infostrip__value .woocommerce-Price-amount { color: inherit; }
.prd-infostrip__value ins,
.prd-infostrip__value .woocommerce-Price-amount bdi { text-decoration: none; }
.prd-infostrip__value del,
.prd-infostrip__value del * { color: #979797 !important; }

@media (max-width: 480px) {
  .prd-infostrip-wrap > div {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
  }
  .prd-infostrip__label {
    font-size: 9px;
  }
  .prd-infostrip__value {
    font-size: 12px;
  }
  .prd-infostrip__icon {
    width: 24px;
    height: 24px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 4. TABS                                                                     */
/* ─────────────────────────────────────────────────────────────────────────── */

.prd-tabs {
  background: #0f0f0f;
  padding-bottom: 56px;
}

.prd-tabs__nav-wrap {
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 0;
  cursor: grab;
}

@media (max-width: 768px) {
  .prd-tabs__nav-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    padding-bottom: 4px;
  }
  .prd-tabs__nav-wrap::-webkit-scrollbar {
    display: none;
  }
  .prd-tabs__nav {
    display: inline-flex;
    flex-wrap: nowrap;
    min-width: max-content;
  }
  .prd-tabs__panel {
    padding: 0;
  }
}

.prd-tabs__nav {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.prd-tabs__nav::-webkit-scrollbar { display: none; }

.prd-tabs__btn {
  flex-shrink: 0;
  padding: 18px 22px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.5);
  font-family: var(--rtve-display);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}

.prd-tabs__btn:hover { color: #fff; }

.prd-tabs__btn.is-active {
  color: #fff;
  border-bottom-color: var(--rtve-orange);
}

.prd-tabs__panels {
  padding-top: 40px;
}

.prd-tabs__panel {
  display: none;
  line-height: 1.75;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.05);
  border-radius: 12px;
  padding: 24px;
}

.prd-tabs__panel.is-active { display: block; }

.prd-tabs__panel p { margin: 0 0 16px; }
.prd-tabs__panel ul { padding-left: 20px; margin: 0 0 16px; }
.prd-tabs__panel li { margin-bottom: 6px; }
.prd-tabs__panel h2,
.prd-tabs__panel h3 {
  font-family: var(--rtve-display);
  margin: 0 0 14px;
  color: #fff;
}

/* ── Details/Summary nativo (Programa) ───────────────────────────────────── */

.prd-details-list { display: flex; flex-direction: column; gap: 8px; }

.prd-details {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  overflow: hidden;
}

.prd-details__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255,255,255,.04);
  font-family: var(--rtve-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}

.prd-details__summary::-webkit-details-marker { display: none; }

.prd-details__summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,.5);
  transition: transform 220ms ease;
}

.prd-details[open] .prd-details__summary { background: rgba(255,135,0,.07); }
.prd-details[open] .prd-details__summary::after { transform: rotate(45deg); color: var(--rtve-orange); }

.prd-details__body {
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.prd-details__body ul { padding-left: 18px; margin: 0; }
.prd-details__body li { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,.82); margin-bottom: 4px; }

/* ── Programa: acordeón de unidades ─────────────────────────────────────── */

.prd-programa { display: flex; flex-direction: column; }

.prd-programa__unidad {
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 8px 0;
}

.prd-programa__titulo {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  padding: 8px 0;
  color: #fff;
  user-select: none;
}

.prd-programa__titulo::-webkit-details-marker { display: none; }
.prd-programa__titulo::marker { display: none; }

.prd-programa__titulo::before {
  content: '+';
  margin-right: 8px;
  color: #F6A30B;
  font-size: 18px;
  font-weight: 300;
}

.prd-programa__unidad[open] .prd-programa__titulo::before { content: '−'; }

.prd-programa__items {
  padding: 8px 0 8px 24px;
  margin: 0;
  list-style: disc;
}

.prd-programa__items li {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,.82);
  margin-bottom: 4px;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 5. ACORDEÓN (legacy — mantenido por compatibilidad)                         */
/* ─────────────────────────────────────────────────────────────────────────── */

.prd-accordion { display: flex; flex-direction: column; gap: 8px; }

.prd-accordion__item {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  overflow: hidden;
}

.prd-accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  background: rgba(255,255,255,.03);
  border: 0;
  color: #fff;
  font-family: var(--rtve-display);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  gap: 12px;
  transition: background 160ms ease;
}

.prd-accordion__item.is-open .prd-accordion__header {
  background: rgba(255,135,0,.07);
}

.prd-accordion__icon {
  position: relative;
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  transition: transform 240ms ease, background 160ms ease, border-color 160ms ease;
}

.prd-accordion__icon::before,
.prd-accordion__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}

.prd-accordion__icon::before { width: 10px; height: 2px; }
.prd-accordion__icon::after  { width: 2px; height: 10px; }

.prd-accordion__item.is-open .prd-accordion__icon {
  background: var(--rtve-orange);
  border-color: var(--rtve-orange);
  transform: rotate(45deg);
}

.prd-accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.prd-accordion__body-inner {
  padding: 20px 22px 26px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.prd-accordion__body-inner ul {
  padding-left: 18px;
  margin: 0;
}

.prd-accordion__body-inner li {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,.82);
  margin-bottom: 4px;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 6. CONTACTO                                                                 */
/* ─────────────────────────────────────────────────────────────────────────── */

.prd-contact {
  position: relative;
  padding: 72px 0;
  background: var(--rtve-ink);
  overflow: hidden;
}

.prd-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,135,0,.06) 0%, transparent 65%);
  pointer-events: none;
}

.prd-contact__title {
  font-family: var(--rtve-display);
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 900;
  color: #fff;
  text-align: center;
  margin: 0 0 48px;
}

.prd-contact__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.prd-contact__left,
.prd-contact__right {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

/* Texto lateral */
.prd-contact__aside h3 {
  font-family: var(--rtve-display);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--rtve-orange);
  margin: 0 0 14px;
}

.prd-contact__aside p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.65);
  margin: 0;
}

/* Fallback: formulario PHP nativo ─────────────────────────────────────────── */
.prd-fallback-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prd-fallback-form__field { display: flex; flex-direction: column; gap: 5px; }

.prd-fallback-form__field label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.prd-fallback-form__field input,
.prd-fallback-form__field textarea,
.prd-fallback-form__field select {
  padding: 12px 16px;
  background: #f5f5f5;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #111;
  font-size: 14px;
  font-family: var(--rtve-sans);
  transition: border-color 160ms ease, background 160ms ease;
  width: 100%;
  box-sizing: border-box;
}

.prd-fallback-form__field input:focus,
.prd-fallback-form__field textarea:focus {
  outline: none;
  border-color: var(--rtve-orange);
  background: #fff;
}

.prd-fallback-form__field textarea { resize: vertical; min-height: 100px; }

.prd-fallback-form__gdpr-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.prd-fallback-form__gdpr-wrap input[type="checkbox"] {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--rtve-orange);
  cursor: pointer;
}

.prd-fallback-form__gdpr-label {
  font-size: 12px;
  color: #ccc;
  line-height: 1.5;
  cursor: pointer;
}

.prd-fallback-form__gdpr-label a { color: var(--rtve-orange); }

/* Mensajes de feedback (role=alert) */
.prd-form-notice {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.prd-form-notice--ok  { background: rgba(46,125,50,.18); color: #81c784; border: 1px solid rgba(46,125,50,.4); }
.prd-form-notice--err { background: rgba(211,47,47,.18);  color: #ef9a9a; border: 1px solid rgba(211,47,47,.4); }

.prd-fallback-form__submit {
  width: 100%;
  min-height: 50px;
  background: var(--rtve-orange);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-family: var(--rtve-display);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease;
}

.prd-fallback-form__submit:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ─────────────────────────────────────────────────────────────────────────── */
/* 7. RELACIONADOS                                                             */
/* ─────────────────────────────────────────────────────────────────────────── */

.prd-related {
  padding: 56px 0 64px;
  background: var(--rtve-black);
}

.prd-related__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-family: var(--rtve-display);
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

.prd-related__heading::before {
  content: "";
  display: block;
  width: 4px; height: 22px;
  background: var(--rtve-orange);
  border-radius: 2px;
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────────────────────── */
/* RESPONSIVE — tablet ≥ 640px                                                 */
/* ─────────────────────────────────────────────────────────────────────────── */

@media (min-width: 640px) {


  .prd-accordion__body-inner ul { columns: 2; column-gap: 28px; }

}

/* ─────────────────────────────────────────────────────────────────────────── */
/* RESPONSIVE — desktop ≥ 900px                                                */
/* ─────────────────────────────────────────────────────────────────────────── */

@media (min-width: 900px) {

  .prd-hero { padding-block: 20px 64px; align-items: center; }

  .prd-infostrip__item { padding: 26px 22px; }

  .prd-tabs__btn { padding: 20px 28px; font-size: 13px; }

  .prd-accordion__body-inner ul { columns: 2; }

  /* Contacto: dos columnas */
  .prd-contact__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
  }

  .prd-contact__left {
    flex: 0 0 38%;
    max-width: 38%;
  }

  .prd-contact__right {
    flex: 0 0 62%;
    max-width: 62%;
  }

  .prd-contact__aside { flex: 0 0 300px; padding-top: 4px; }

}
