
/* =====================================================
   DOLLY BEATRIZ | LUXURY REAL ESTATE
   BENTLEY RESIDENCES MIAMI
   CINEMATIC EXPERIENCE

   Archivo: css/bentley-cinematico.css
   Complementa detalle-proyecto.css
   ===================================================== */

/* 01. IDENTIDAD */

.detalle-bentley {
  --bentley-oscuro: #211e1c;
  --bentley-cafe: #33251f;
  --bentley-arena: #d7c2a1;
  --bentley-marfil: #f7f4ee;
  --bentley-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 02. HERO */

.detalle-bentley .residencia-hero {
  position: relative;
  isolation: isolate;

  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 480px;

  overflow: hidden;
  background: var(--bentley-oscuro);
}

/* 03. CONTENEDOR AUDIOVISUAL */

.detalle-bentley .residencia-media {
  position: absolute;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;
  background: var(--bentley-oscuro);
}

/* 04. VIDEO PRINCIPAL */

.detalle-bentley .residencia-media video {
  position: absolute;
  inset: 0;

  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  opacity: 1;
  visibility: visible;

  background: var(--bentley-oscuro);
  pointer-events: none;
}

/* 05. VELO CINEMATOGRÁFICO */

.detalle-bentley .residencia-velo {
  position: absolute;
  inset: 0;
  z-index: 2;

  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(15, 13, 12, 0.28) 0%,
    rgba(15, 13, 12, 0.02) 32%,
    rgba(15, 13, 12, 0.15) 62%,
    rgba(15, 13, 12, 0.75) 100%
  );
}

/* 06. CONTENIDO PRINCIPAL */

.detalle-bentley .residencia-hero-contenido {
  position: absolute;

  left: clamp(24px, 7vw, 118px);
  right: clamp(24px, 5vw, 88px);
  bottom: clamp(115px, 17vh, 190px);

  z-index: 4;
  max-width: 1050px;

  color: #ffffff;

  opacity: 1;
  visibility: visible;
  transform: translateY(0);

  pointer-events: none;

  transition:
    opacity 1100ms ease,
    visibility 1100ms ease,
    transform 1100ms var(--bentley-ease);
}

/* El JavaScript agrega esta clase a los 2 segundos */

.detalle-bentley
.residencia-hero-contenido.titulo-oculto {
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
}

/* 07. TIPOGRAFÍA */

.detalle-bentley .residencia-eyebrow {
  color: var(--bentley-arena);
}

.detalle-bentley .residencia-hero h1 {
  margin: 0;

  color: #ffffff;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 7.5vw, 116px);
  font-weight: 400;

  line-height: 0.99;
  letter-spacing: -0.055em;
  text-wrap: balance;

  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.18);
}

.detalle-bentley .residencia-hero h1 span {
  display: block;

  margin-top: 12px;

  font-size: 0.51em;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.detalle-bentley .residencia-hero-ubicacion {
  color: #e5d7c0;
}

/* 08. VOLVER A LA COLECCIÓN */

.detalle-bentley .residencia-volver {
  position: absolute;

  top: clamp(24px, 4vw, 54px);
  left: clamp(24px, 5vw, 88px);

  z-index: 10;

  display: inline-flex;
  align-items: center;
  gap: 12px;

  color: #ffffff;
  text-decoration: none;

  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  transition:
    color 350ms ease,
    transform 350ms var(--bentley-ease);
}

@media (hover: hover) and (pointer: fine) {
  .detalle-bentley .residencia-volver:hover {
    color: var(--bentley-arena);
    transform: translateX(-4px);
  }
}

/* 09. DESCUBRIR EL PROYECTO */

.detalle-bentley .residencia-scroll {
  position: absolute;

  right: clamp(24px, 5vw, 88px);
  bottom: clamp(36px, 7vh, 72px);

  z-index: 6;

  display: inline-flex;
  align-items: center;
  gap: 14px;

  color: #ffffff;
  text-decoration: none;

  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;

  transition: color 350ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .detalle-bentley .residencia-scroll:hover {
    color: var(--bentley-arena);
  }
}

/* 10. BOTÓN DE REPRODUCCIÓN MANUAL */

.detalle-bentley .residencia-reproducir {
  position: absolute;

  top: 50%;
  left: 50%;
  z-index: 20;

  transform: translate(-50%, -50%);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  max-width: calc(100% - 40px);
  min-height: 52px;
  padding: 15px 28px;

  border: 1px solid rgba(215, 194, 161, 0.65);
  border-radius: 2px;

  background: rgba(36, 33, 31, 0.88);
  color: var(--bentley-marfil);

  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;

  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;

  cursor: pointer;
  touch-action: manipulation;

  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  transition:
    background-color 300ms ease,
    border-color 300ms ease;
}

.detalle-bentley .residencia-reproducir[hidden] {
  display: none !important;
}

.detalle-bentley .residencia-reproducir:focus-visible {
  outline: 2px solid var(--bentley-arena);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .detalle-bentley .residencia-reproducir:hover {
    background: rgba(51, 37, 31, 0.98);
    border-color: var(--bentley-arena);
  }
}

/* 11. TABLETS */

@media (max-width: 900px) {
  .detalle-bentley .residencia-hero h1 {
    font-size: clamp(50px, 8vw, 88px);
  }

  .detalle-bentley .residencia-hero-contenido {
    bottom: 155px;
  }
}

/* 12. IPHONE / ANDROID */

@media (max-width: 600px) {
  .detalle-bentley .residencia-hero {
    height: 100svh;
    min-height: 540px;
  }

  .detalle-bentley .residencia-volver {
    top: 26px;
    left: 23px;

    max-width: calc(100% - 145px);
    font-size: 10px;
  }

  .detalle-bentley .residencia-hero-contenido {
    left: 23px;
    right: 23px;
    bottom: 155px;
  }

  .detalle-bentley .residencia-hero h1 {
    font-size: clamp(45px, 10vw, 70px);
  }

  .detalle-bentley .residencia-hero h1 span {
    font-size: 0.52em;
  }

  .detalle-bentley .residencia-eyebrow,
  .detalle-bentley .residencia-hero-ubicacion {
    font-size: 9px;
    letter-spacing: 0.15em;
  }

  .detalle-bentley .residencia-scroll {
    right: 23px;
    bottom: 28px;
    font-size: 9px;
  }

  .detalle-bentley .residencia-reproducir {
    max-width: calc(100% - 48px);
    padding: 15px 20px;
    font-size: 10px;
  }
}

/* 13. ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {
  .detalle-bentley .residencia-hero-contenido,
  .detalle-bentley .residencia-volver,
  .detalle-bentley .residencia-scroll,
  .detalle-bentley .residencia-reproducir {
    transition: none !important;
  }
}
