/**
 * RONDA — Patrimonio Vivo
 * ─────────────────────────────────────────────────────────
 * Estilos de la sección del inicio (.pv-home) y de la nota
 * (.pv-nota). Todo va con prefijo "pv-" para no pisar nada
 * del resto del sitio.
 */

.pv-home,
.pv-nota {
  --pv-teal:       #004049;
  --pv-teal-deep:  #002f36;
  --pv-sage:       #62B1A1;
  --pv-coral:      #FF5252;
  --pv-paper:      #f7f5f0;
  --pv-ink:        #14201f;
  --pv-ink-soft:   #4d5b59;
  --pv-line:       rgba(255, 255, 255, 0.16);
  --pv-sans:  'Sora', system-ui, sans-serif;
  --pv-serif: 'Fraunces', Georgia, serif;
  --pv-ease:  cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--pv-sans);
  -webkit-font-smoothing: antialiased;
}

.pv-home *, .pv-nota * { box-sizing: border-box; }

/* Aparición progresiva */
.pv-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--pv-ease), transform 0.9s var(--pv-ease);
  transition-delay: var(--pv-delay, 0s);
}
.pv-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .pv-reveal { opacity: 1; transform: none; transition: none; }
}

/* ═════════════════════════════════════════════════════════
   SECCIÓN DEL INICIO
   ═════════════════════════════════════════════════════════ */

.pv-home {
  position: relative;
  background: var(--pv-teal);
  color: #fff;
  overflow: hidden;
  padding: 72px 0 80px;
}

/* Halo cálido, eco de la luz del salón */
.pv-home::before {
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  left: -220px; top: -260px;
  background: radial-gradient(circle, rgba(98, 177, 161, 0.22), transparent 62%);
  pointer-events: none;
}

.pv-home__link {
  position: relative;
  display: grid;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  color: inherit;
  text-decoration: none;
}

.pv-home__media {
  position: relative;
  margin: 0;
  aspect-ratio: 9 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--pv-teal-deep);
}

.pv-home__media picture { display: block; width: 100%; height: 100%; }

.pv-home__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
  transform: scale(1.02);
  transition: transform 1.4s var(--pv-ease);
}

.pv-home__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 47, 54, 0) 55%, rgba(0, 47, 54, 0.55) 100%);
  pointer-events: none;
}

/* Rótulo, como el zócalo del video */
.pv-home__tag {
  position: absolute;
  left: 16px; top: 16px;
  z-index: 2;
  padding: 10px 14px 11px;
  background: rgba(0, 64, 73, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 6px;
  line-height: 1.25;
}
.pv-home__tag small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pv-sage);
  margin-bottom: 4px;
}
.pv-home__tag span {
  font-family: var(--pv-serif);
  font-size: 17px;
  font-weight: 400;
}

.pv-home__play {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pv-home__play i {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: background 0.4s var(--pv-ease), border-color 0.4s var(--pv-ease), transform 0.4s var(--pv-ease);
}
.pv-home__play svg { width: 14px; height: 14px; margin-left: 3px; fill: #fff; }

.pv-home__body { align-self: center; }

.pv-home__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pv-sage);
}
.pv-home__eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pv-coral);
}

.pv-home__title {
  margin: 0 0 22px;
  font-family: var(--pv-serif);
  font-weight: 300;
  font-size: clamp(2.3rem, 9.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.pv-home__title em { font-style: italic; color: var(--pv-sage); }

.pv-home__text {
  margin: 0 0 30px;
  max-width: 46ch;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}

.pv-home__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 30px;
  padding: 16px 0;
  border-top: 1px solid var(--pv-line);
  border-bottom: 1px solid var(--pv-line);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  list-style: none;
}

.pv-home__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: gap 0.4s var(--pv-ease), border-color 0.4s var(--pv-ease);
}
.pv-home__cta svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.pv-home__link:hover .pv-home__media img,
.pv-home__link:focus-visible .pv-home__media img { transform: scale(1.06); }
.pv-home__link:hover .pv-home__play i,
.pv-home__link:focus-visible .pv-home__play i {
  background: var(--pv-coral);
  border-color: var(--pv-coral);
  transform: scale(1.06);
}
.pv-home__link:hover .pv-home__cta,
.pv-home__link:focus-visible .pv-home__cta { gap: 20px; border-color: #fff; }
.pv-home__link:focus-visible { outline: 2px solid var(--pv-sage); outline-offset: 8px; }

@media (min-width: 860px) {
  .pv-home { padding: 120px 0; }
  .pv-home__link {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(48px, 7vw, 110px);
    padding: 0 40px;
  }
  .pv-home__media { max-width: 480px; }
  .pv-home__tag { left: 22px; top: 22px; }
  .pv-home__play { left: 22px; bottom: 22px; }
}

/* ═════════════════════════════════════════════════════════
   NOTA
   ═════════════════════════════════════════════════════════ */

.pv-nota {
  margin: 0;
  background: var(--pv-paper);
  color: var(--pv-ink);
}
.pv-nota a { color: inherit; }
.pv-nota img { max-width: 100%; }

/* Barra superior */
.pv-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 64, 73, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}
.pv-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}
.pv-nav__logo img { display: block; height: 20px; width: auto; }
.pv-nav__links { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.pv-nav__links a { text-decoration: none; opacity: 0.85; transition: opacity 0.3s; }
.pv-nav__links a:hover { opacity: 1; }
.pv-nav__hide { display: none; }
.pv-nav__cta {
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  opacity: 1 !important;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.pv-nav__cta:hover { background: #fff; color: var(--pv-teal); border-color: #fff; }

/* Encabezado */
.pv-hero {
  position: relative;
  background: var(--pv-teal);
  color: #fff;
  overflow: hidden;
  padding: 44px 0 150px;
}
.pv-hero::before {
  content: "";
  position: absolute;
  width: 900px; height: 900px;
  right: -320px; top: -420px;
  background: radial-gradient(circle, rgba(98, 177, 161, 0.2), transparent 60%);
  pointer-events: none;
}
.pv-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.pv-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 44px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7) !important;
  transition: color 0.3s, gap 0.3s var(--pv-ease);
}
.pv-back:hover { color: #fff !important; gap: 12px; }

.pv-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pv-sage);
}
.pv-hero__eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pv-coral);
}
.pv-hero__title {
  margin: 0 0 26px;
  max-width: 13ch;
  font-family: var(--pv-serif);
  font-weight: 300;
  font-size: clamp(2.7rem, 11.5vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.pv-hero__title em { font-style: italic; color: var(--pv-sage); }
.pv-hero__deck {
  margin: 0 0 34px;
  max-width: 52ch;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}
.pv-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--pv-line);
  max-width: 640px;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

/* Cuerpo: video + texto */
.pv-layout {
  display: grid;
  gap: 48px;
  margin-top: -110px;
  padding-bottom: 80px;
}

.pv-video { width: 100%; max-width: 380px; margin: 0 auto; }
.pv-video__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  background: #001c21;
  box-shadow: 0 30px 70px -25px rgba(0, 36, 42, 0.6);
}
.pv-video__frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.pv-video__btn {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  background: linear-gradient(180deg, rgba(0, 28, 33, 0.1) 40%, rgba(0, 28, 33, 0.65) 100%);
  transition: opacity 0.5s var(--pv-ease);
}
.pv-video__btn span {
  display: grid;
  place-items: center;
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(0, 64, 73, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.4s var(--pv-ease), border-color 0.4s var(--pv-ease), transform 0.4s var(--pv-ease);
}
.pv-video__btn svg { width: 22px; height: 22px; margin-left: 4px; fill: #fff; }
.pv-video__btn b {
  position: absolute;
  left: 20px; bottom: 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pv-video__btn:hover span,
.pv-video__btn:focus-visible span { background: var(--pv-coral); border-color: var(--pv-coral); transform: scale(1.06); }
.pv-video__btn:focus-visible { outline: 2px solid var(--pv-sage); outline-offset: -6px; }
.pv-video.is-playing .pv-video__btn { opacity: 0; pointer-events: none; }
.pv-video__sound {
  position: absolute;
  left: 50%; top: 18px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--pv-teal);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
}
.pv-video__sound[hidden] { display: none; }
.pv-video__sound svg { width: 16px; height: 16px; fill: currentColor; }

.pv-video__caption {
  margin: 14px 2px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--pv-ink-soft);
}

.pv-article { max-width: 640px; margin: 0 auto; }
.pv-article p {
  margin: 0 0 1.5em;
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.85;
  color: #2a3836;
}
.pv-article > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  font-family: var(--pv-serif);
  font-weight: 300;
  font-size: 4.4em;
  line-height: 0.82;
  color: var(--pv-teal);
}
.pv-article h2 {
  margin: 2.2em 0 0.8em;
  font-family: var(--pv-serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 4.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--pv-teal);
}
.pv-quote {
  margin: 2.4em 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--pv-coral);
}
.pv-quote p {
  margin: 0 0 10px;
  font-family: var(--pv-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.7rem, 6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--pv-teal);
}
.pv-quote cite {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pv-ink-soft);
}

.pv-figure { margin: 2.2em 0 2.6em; }
.pv-figure img {
  display: block;
  width: 100%; height: auto;
  border-radius: 8px;
  background: #001c21;
}
.pv-figure figcaption {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--pv-ink-soft);
}

/* Tres ideas */
.pv-ideas {
  margin: 3em 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(0, 64, 73, 0.18);
}
.pv-ideas li {
  display: grid;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 64, 73, 0.18);
}
.pv-ideas strong {
  font-family: var(--pv-serif);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--pv-teal);
}
.pv-ideas span {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--pv-ink-soft);
}

/* Cierre */
.pv-close {
  background: var(--pv-teal);
  color: #fff;
  text-align: center;
  padding: 84px 24px 90px;
}
.pv-close__phrase {
  margin: 0 auto 14px;
  max-width: 16ch;
  font-family: var(--pv-serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 8vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.pv-close__phrase em { font-style: italic; color: var(--pv-sage); }
.pv-close__text {
  margin: 0 auto 34px;
  max-width: 44ch;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}
.pv-close__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.pv-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.pv-btn--solid { background: #fff; color: var(--pv-teal) !important; border-color: #fff; }
.pv-btn--solid:hover { background: var(--pv-sage); border-color: var(--pv-sage); color: #fff !important; }

.pv-foot {
  background: var(--pv-teal-deep);
  color: rgba(255, 255, 255, 0.6);
  padding: 26px 24px;
  font-size: 12px;
}
.pv-foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.pv-foot a { text-decoration: none; }
.pv-foot a:hover { color: #fff; }

@media (min-width: 640px) {
  .pv-nav__hide { display: inline; }
}

@media (min-width: 960px) {
  .pv-nav__inner, .pv-wrap { padding-left: 40px; padding-right: 40px; }
  .pv-hero { padding: 64px 0 120px; }
  .pv-hero__content { padding-left: calc(380px + clamp(56px, 7vw, 110px)); }
  .pv-back { margin-bottom: 64px; }
  .pv-layout {
    grid-template-columns: 380px minmax(0, 1fr);
    gap: clamp(56px, 7vw, 110px);
    align-items: start;
    margin-top: 0;
    padding-bottom: 120px;
  }
  .pv-video {
    position: sticky;
    top: 96px;
    margin: -420px 0 0;
  }
  .pv-article { margin: 0; padding-top: 72px; }
  .pv-figure { margin-right: clamp(-80px, -5vw, 0px); }
}
