/*
 * BRYVO Property Content — ampliación comercial (v1.2.0)
 * ---------------------------------------------------------------
 * Hoja de estilos AISLADA, cargada después de bryvo-immersive.css.
 * No redefine ni sobrescribe ninguna clase existente: todas las
 * clases de aquí son nuevas y con prefijo propio. Reutiliza
 * exclusivamente los tokens ya definidos en :root por el CSS
 * principal (colores, tipografía, easing, radios de contenedor) —
 * no se introduce ningún color, fuente ni espaciado nuevo.
 */

/* ---------------------------------------------------------------
   Real Estate — refuerzos dentro de la sección ya existente
--------------------------------------------------------------- */
.re-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: max(1.75rem, min(4vh, 2.25rem));
}
.re-formula__item {
  color: var(--bryvo-white);
  border: 1px solid var(--bryvo-line);
  border-radius: 999px;
  padding: 0.4em 1em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.re-formula__plus {
  color: var(--bryvo-blue);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}
.re-statement {
  max-width: 40ch;
  margin-top: max(1.75rem, min(4vh, 2.25rem));
  font-size: max(1.2rem, min(2.4vw, 1.7rem));
  font-weight: 600;
  line-height: 1.3;
  color: var(--bryvo-grey);
}
.re-statement strong {
  display: block;
  color: var(--bryvo-white);
  font-weight: 700;
}
.re-statement strong em {
  color: var(--bryvo-blue);
  font-style: normal;
}

/* ---------------------------------------------------------------
   Shared section shell for the four new blocks — mirrors the
   existing site convention of a hairline top border separating
   sections (see .service-panel / .real-estate neighbours).
--------------------------------------------------------------- */
.property-content,
.packs,
.addons,
.re-cta {
  border-top: 1px solid var(--bryvo-line);
  background: var(--bryvo-black-soft);
  padding: max(3.5rem, min(10vh, 6rem)) 0;
}

/* Reveal-on-scroll hook (see bryvo-property-content.js). No GSAP
   dependency — plain, cheap IntersectionObserver + CSS transition. */
[data-pc-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
}
[data-pc-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-pc-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------------
   BRYVO Property Content
--------------------------------------------------------------- */
.property-content__title {
  text-transform: uppercase;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin-top: 0.6rem;
  font-size: max(2rem, min(5vw, 3.4rem));
  font-weight: 600;
}
.property-content__subhead {
  margin-top: 1.4rem;
  font-size: max(1.3rem, min(3vw, 2rem));
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--bryvo-white);
}
.property-content__subhead span {
  display: block;
}
.property-content__lead {
  max-width: 60ch;
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: var(--bryvo-grey);
}
/* =================================================================
   BRYVO SPATIAL FILM — presentación 3D del vídeo aéreo, controlada
   por scroll. Ver bryvo-property-content.js: JS calcula el progreso
   de scroll y escribe ÚNICAMENTE custom properties (--pc-*); todo lo
   visual vive aquí, en transform/opacity (compositor-friendly, sin
   layout/reflow). Tres capas:
     .pc-stage  — contexto de perspectiva (no se transforma)
     .pc-frame  — CAPA 1, "la pantalla": el objeto que se acerca/tilta
     .pc-screen — CAPA 2, overflow:hidden, contiene solo el vídeo
   ================================================================= */
.pc-stage {
  margin-top: max(3.5rem, min(9vh, 5.5rem));
  perspective: 1400px;
}
.pc-frame {
  position: relative;
  transform:
    translateY(var(--pc-ty, 0px))
    rotateX(var(--pc-rx, 0deg))
    rotateY(var(--pc-ry, 0deg))
    scale(var(--pc-scale, 1));
  opacity: var(--pc-opacity, 1);
  will-change: transform, opacity;
}
.pc-screen {
  /* 16:9 matches the source video exactly (3840x2160 / 1920x1080), so
     object-fit:cover shows the full frame with no meaningful crop at
     any width. Solid background = clean fallback: if the video never
     loads/plays (old browser, slow network, blocked autoplay), this
     reads as a plain dark panel — never a broken-video icon. */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bryvo-black);
  border: 1px solid var(--bryvo-line);
}
.property-content__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(var(--pc-video-scale, 1));
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .pc-frame {
    transform: none;
    opacity: 1;
  }
  .property-content__video {
    transform: none;
  }
}

/* ---- Corner marks: thin editorial frame, not a box ---- */
.pc-corner {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  opacity: var(--pc-corner-opacity, 0);
  pointer-events: none;
  border-color: rgba(243, 243, 240, 0.55);
  border-style: solid;
  border-width: 0;
}
.pc-corner--tl {
  top: -10px;
  left: -10px;
  border-top-width: 1px;
  border-left-width: 1px;
}
.pc-corner--tr {
  top: -10px;
  right: -10px;
  border-top-width: 1px;
  border-right-width: 1px;
}
.pc-corner--bl {
  bottom: -10px;
  left: -10px;
  border-bottom-width: 1px;
  border-left-width: 1px;
}
.pc-corner--br {
  bottom: -10px;
  right: -10px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

/* ---- Editorial labels: distributed around the frame, not stacked as
   one tag ---- */
.pc-label {
  position: absolute;
  z-index: 2;
  margin: 0;
  color: var(--bryvo-white);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pc-label--tl {
  top: -1.9rem;
  left: 0;
  opacity: var(--pc-phase-1, 0);
  transform: translateY(calc((1 - var(--pc-phase-1, 0)) * 6px));
}
.pc-label--tr {
  top: -1.9rem;
  right: 0;
  color: var(--bryvo-grey);
  opacity: var(--pc-phase-1, 0);
  transform: translateY(calc((1 - var(--pc-phase-1, 0)) * 6px));
}
.pc-label--bl {
  bottom: -1.9rem;
  left: 0;
  color: var(--bryvo-grey);
  opacity: var(--pc-phase-3, 0);
  transform: translateY(calc((1 - var(--pc-phase-3, 0)) * -6px));
}
.pc-label--br {
  bottom: -1.9rem;
  right: 0;
  opacity: var(--pc-phase-4, 0);
  transform: translateY(calc((1 - var(--pc-phase-4, 0)) * -6px));
}

/* ---- The single blue accent: one very thin line, bottom edge ---- */
.pc-line {
  position: absolute;
  z-index: 2;
  bottom: -1px;
  left: 0;
  height: 1px;
  width: calc(var(--pc-phase-5, 0) * 100%);
  background: var(--bryvo-blue);
  opacity: var(--pc-phase-5, 0);
}

@media (max-width: 780px) {
  .pc-corner {
    width: 14px;
    height: 14px;
  }
  .pc-corner--tl,
  .pc-corner--tr {
    top: -7px;
  }
  .pc-corner--bl,
  .pc-corner--br {
    bottom: -7px;
  }
  .pc-corner--tl,
  .pc-corner--bl {
    left: -7px;
  }
  .pc-corner--tr,
  .pc-corner--br {
    right: -7px;
  }
  .pc-label {
    font-size: 0.58rem;
    letter-spacing: 0.11em;
  }
  .pc-label--tl,
  .pc-label--tr {
    top: -1.5rem;
  }
  .pc-label--bl,
  .pc-label--br {
    bottom: -1.5rem;
  }
}

.property-content__benefits {
  margin-top: max(3rem, min(7vh, 4.5rem));
}

/* ---------------------------------------------------------------
   Packs
--------------------------------------------------------------- */
.packs__title {
  text-transform: uppercase;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin-top: 0.6rem;
  font-size: max(2rem, min(5vw, 3.4rem));
  font-weight: 600;
}
.packs__note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bryvo-grey);
}
.packs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: max(2.5rem, min(6vh, 4rem));
}
@media (min-width: 900px) {
  .packs__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.pack-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bryvo-line);
  padding: 2rem;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.pack-card--featured {
  border-color: var(--bryvo-blue);
}
.pack-card__badge {
  color: var(--bryvo-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.pack-card__eyebrow {
  color: var(--bryvo-blue);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pack-card__price {
  margin-top: 0.5rem;
  font-size: max(2rem, min(4vw, 2.6rem));
  font-weight: 700;
  color: var(--bryvo-white);
}
.pack-card__price span {
  margin-left: 0.3em;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bryvo-grey);
}
.pack-card__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  flex: 1;
}
.pack-card__list li {
  border-top: 1px solid var(--bryvo-line);
  padding: 0.75em 0;
  font-size: 0.92rem;
  color: var(--bryvo-white);
}
.pack-card__list li:last-child {
  border-bottom: 1px solid var(--bryvo-line);
}
.pack-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  width: fit-content;
  margin-top: 1.75rem;
  padding-bottom: 0.15em;
  color: var(--bryvo-white);
  border-bottom: 1px solid var(--bryvo-blue);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

/* ---------------------------------------------------------------
   Add-ons
--------------------------------------------------------------- */
.addons__title {
  text-transform: uppercase;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin-top: 0.6rem;
  font-size: max(1.7rem, min(4vw, 2.6rem));
  font-weight: 600;
}
.addons__lead {
  max-width: 60ch;
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--bryvo-grey);
}
.addon-card {
  border: 1px solid var(--bryvo-line);
  padding: 1.75rem;
}
.addon-card h3 {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.02rem;
}
.addon-card__price {
  margin-top: 0.9rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bryvo-blue);
}
.addon-card__price span {
  margin-left: 0.35em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bryvo-grey);
}
.addon-card__compare {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--bryvo-grey);
}

/* ---------------------------------------------------------------
   Real Estate CTA
--------------------------------------------------------------- */
.re-cta__title {
  max-width: 18ch;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: max(1.8rem, min(4.4vw, 2.8rem));
  font-weight: 600;
  line-height: 1.1;
}
.re-cta .btn {
  margin-top: max(1.75rem, min(4vh, 2.25rem));
}

/* ---------------------------------------------------------------
   Mobile — packs and add-ons stay a clean single column with full
   information (no compressed table), per brief section 12.
--------------------------------------------------------------- */
@media (max-width: 480px) {
  .re-formula__item {
    font-size: 0.72rem;
    padding: 0.35em 0.85em;
  }
  .pack-card {
    padding: 1.5rem;
  }
}
