/* =========================================================
   TEATROCERCA - STYLE.CSS CLARO COMPLETO
   Rediseño integral en tonos claros.
   Estructura:
   1. Variables / reset
   2. Botones / elementos base
   3. Header / layout público
   4. Filtros / GPS
   5. Cards cartelera
   6. Badge de función
   7. Card FULL en cartelera
   8. Modal simple
   9. Ficha premium / detalle clásico
   10. Landing FULL editorial clara
   11. Landing FULL funciones calendario
   12. Newsletter / productoras
   13. Admin claro
   14. Responsive
   15. Accesibilidad / motion
   ========================================================= */


/* =========================================================
   1. VARIABLES / RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f6efe7;
  --bg-2: #efe3d8;

  --surface: #fffaf4;
  --surface-2: #f2e7dc;
  --surface-3: #ead9cb;

  --text: #201720;
  --text-strong: #120d14;
  --muted: #746878;
  --muted-2: #958799;

  --accent: #9e2f55;
  --accent-strong: #7f2343;
  --accent-soft: rgba(158, 47, 85, .12);

  --accent-2: #e1a15a;
  --accent-2-strong: #a76528;
  --accent-2-soft: rgba(225, 161, 90, .18);

  --success: #237b4b;
  --danger: #b63848;

  --border: rgba(32, 23, 32, .14);
  --border-strong: rgba(32, 23, 32, .24);

  --shadow-sm: 0 8px 20px rgba(45, 31, 40, .07);
  --shadow-md: 0 16px 42px rgba(45, 31, 40, .10);
  --shadow-lg: 0 28px 78px rgba(45, 31, 40, .16);

  --obra-card-height: 700px;
  --obra-card-poster-height: 420px;
  --radius-card: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 84% 0%, rgba(158, 47, 85, .10), transparent 28%),
    radial-gradient(circle at 8% 14%, rgba(225, 161, 90, .12), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

input,
select,
textarea {
  width: 100%;
  background: rgba(255, 250, 244, .96);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .74) inset;
}

input::placeholder,
textarea::placeholder {
  color: rgba(32, 23, 32, .44);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(158, 47, 85, .44);
  box-shadow:
    0 0 0 4px rgba(158, 47, 85, .10),
    0 1px 0 rgba(255, 255, 255, .74) inset;
}

textarea {
  min-height: 120px;
  resize: vertical;
}


/* =========================================================
   2. BOTONES / ELEMENTOS BASE
   ========================================================= */

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(127, 35, 67, .14);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  box-shadow: 0 10px 22px rgba(158, 47, 85, .18);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    border-color .18s ease;
}

button:hover,
.btn:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
  box-shadow: 0 14px 30px rgba(158, 47, 85, .24);
}

.btn.secondary,
button.secondary {
  background: rgba(255, 250, 244, .74);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn.secondary:hover,
button.secondary:hover {
  background: #fff;
  border-color: rgba(158, 47, 85, .22);
}

.btn.disabled,
button:disabled {
  cursor: default;
  opacity: .72;
  pointer-events: none;
  box-shadow: none;
}

.eyebrow,
.genre {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
  font-size: .76rem;
}


/* =========================================================
   3. HEADER / LAYOUT PÚBLICO
   ========================================================= */

.hero {
  padding: 72px 0 42px;
  background:
    radial-gradient(circle at 80% 8%, rgba(158, 47, 85, .12), transparent 30%),
    linear-gradient(135deg, #fffaf4 0%, #f1e4d8 60%, #ead8ca 100%);
  border-bottom: 1px solid var(--border);
}

/* Header actual: solo logo centrado */
.hero.hero-logo-only {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 48px 0 44px;
  background:
    radial-gradient(circle at 50% 8%, rgba(158, 47, 85, .10), transparent 34%),
    radial-gradient(circle at 50% 115%, rgba(225, 161, 90, .18), transparent 32%),
    linear-gradient(180deg, #fff8ef 0%, #eadccd 100%);
  border-bottom: 1px solid rgba(32, 23, 32, .13);
}

.hero.hero-logo-only::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: -1;
  width: min(620px, 62vw);
  height: min(330px, 36vw);
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at center,
      rgba(255, 255, 255, .82) 0%,
      rgba(255, 245, 232, .58) 34%,
      rgba(225, 161, 90, .16) 58%,
      transparent 76%
    );
  filter: blur(10px);
  pointer-events: none;
}

.hero.hero-logo-only .hero-logo-only-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero.hero-logo-only .hero-logo-only-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
}

.hero.hero-logo-only .hero-logo-only-img {
  width: clamp(190px, 25vw, 330px);
  height: auto;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(0 18px 34px rgba(45, 31, 40, .20))
    drop-shadow(0 0 18px rgba(255, 255, 255, .52));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr .8fr;
  gap: 32px;
  align-items: center;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: .95;
  margin: 8px 0 18px;
  max-width: 850px;
  color: var(--text-strong);
}

.hero-text,
.lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 720px;
}

.hero-card {
  background: rgba(255, 250, 244, .72);
  border: 1px solid var(--border);
  padding: 26px;
  border-radius: 24px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-md);
}

.hero-card strong {
  font-size: 1.4rem;
  color: var(--text-strong);
}

.hero-card span {
  color: var(--muted);
}

.main-content {
  padding: 34px 0 64px;
}

.footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 24px 0;
  background: rgba(255, 250, 244, .42);
}


/* =========================================================
   4. FILTROS / GPS
   ========================================================= */

.filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(140px, .6fr)) auto;
  gap: 12px;
  margin-bottom: 28px;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, .96), rgba(248, 239, 229, .96));
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.filters input[type="search"] {
  background: #fffdf9;
}

.filters select {
  appearance: auto;
  background: #fffdf9;
  color: var(--text);
  font-weight: 700;
}

.filters .btn,
.filters button,
.filters a.btn {
  min-height: 44px;
  white-space: nowrap;
}

.clear-filters-btn {
  color: var(--text);
}

.geo-tools {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .94rem;
}

.geo-tools .btn {
  padding: 10px 13px;
}

.distance-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  background: rgba(158, 47, 85, .08);
  color: var(--accent-strong);
  border: 1px solid rgba(158, 47, 85, .18);
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 900;
  font-size: .82rem;
  line-height: 1.25;
  white-space: normal;
  margin: 0;
}

.distance-inline {
  color: var(--accent-strong) !important;
  font-weight: 900;
}

/* Estado visual de filtro activo */
.filters select.filter-active {
  border-color: rgba(158, 47, 85, .55);
  background:
    linear-gradient(135deg, rgba(158, 47, 85, .12), rgba(255, 250, 244, .98));
  color: var(--accent-strong);
  border-radius: 999px;
  font-weight: 900;
  box-shadow:
    0 0 0 1px rgba(158, 47, 85, .12) inset,
    0 0 0 3px rgba(158, 47, 85, .08),
    var(--shadow-sm);
}

.filters select.filter-active:focus {
  outline: none;
  border-color: rgba(158, 47, 85, .72);
  box-shadow:
    0 0 0 1px rgba(158, 47, 85, .16) inset,
    0 0 0 4px rgba(158, 47, 85, .10);
}

/* Opciones desplegadas */
.filters select option {
  background: #fffaf4;
  color: var(--text);
  font-weight: 700;
}

.filters select option:checked {
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.filters select option:hover,
.filters select option:focus {
  background: #f2e7dc;
  color: var(--text-strong);
}


/* =========================================================
   5. CARDS CARTELERA - BASE / SIMPLE / PREMIUM
   ========================================================= */

.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.obra-card {
  height: auto;
  min-height: var(--obra-card-height);
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.obra-card:hover {
  transform: translateY(-4px);
  border-color: rgba(158, 47, 85, .30);
  box-shadow: var(--shadow-lg);
}

.obra-card.premium {
  border-color: rgba(225, 161, 90, .34);
  box-shadow:
    0 0 0 1px rgba(225, 161, 90, .16),
    var(--shadow-lg);
}

.obra-card:not(.poster-full) .poster-wrap {
  position: relative;
  flex: 0 0 var(--obra-card-poster-height);
  height: var(--obra-card-poster-height);
  aspect-ratio: auto;
  background: #efe3d8;
  overflow: hidden;
}

.obra-card:not(.poster-full) .poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.poster-is-clickable {
  cursor: pointer;
}

.poster-is-clickable img {
  transition: transform .25s ease, filter .25s ease;
}

.poster-is-clickable:hover img {
  transform: scale(1.025);
  filter: brightness(1.04) saturate(1.02);
}

.badge {
  position: absolute;
  background: rgba(32, 23, 32, .88);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .74rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(32, 23, 32, .18);
}

.badge.top {
  left: 12px;
  top: 12px;
  background: var(--accent);
}

.badge.type {
  right: 12px;
  top: 12px;
}

.card-body {
  padding: 18px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.card-body h2 {
  font-size: 1.35rem;
  margin: 0;
  line-height: 1.15;
  color: var(--text-strong);
}

.meta,
.location,
.price {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.price {
  color: var(--accent-2-strong);
  font-weight: 800;
}

.obra-card:not(.poster-full) .card-body .btn {
  margin-top: auto;
  flex-shrink: 0;
  align-self: flex-start;
}

.empty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}


/* =========================================================
   6. BADGE DE FUNCIÓN
   ========================================================= */

.badge.function-badge {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .95) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, .82) 0 1.5px, transparent 2.5px),
    linear-gradient(135deg, #fff4ad 0%, #f6c74b 36%, #d99416 68%, #b97509 100%);
  color: #261506;
  border: 1px solid rgba(255, 235, 152, .98);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .24) inset,
    0 0 16px rgba(246, 199, 75, .42),
    0 8px 22px rgba(0, 0, 0, .20);
  overflow: hidden;
  isolation: isolate;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .34);
  animation: badgeGoldGlow 3.8s ease-in-out infinite;
}

.badge.function-badge::before {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 48%, rgba(255, 255, 255, .95) 0 1.6px, transparent 2.8px),
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, .86) 0 1.2px, transparent 2.4px),
    radial-gradient(circle at 58% 64%, rgba(255, 255, 255, .95) 0 1.7px, transparent 3px),
    radial-gradient(circle at 78% 34%, rgba(255, 255, 255, .78) 0 1.1px, transparent 2.3px),
    radial-gradient(circle at 88% 76%, rgba(255, 255, 255, .9) 0 1.4px, transparent 2.7px);
  opacity: .45;
  transform: translateX(-12%) rotate(0deg);
  animation: badgeStarDrift 2.6s ease-in-out infinite;
}

.badge.function-badge::after {
  content: "";
  position: absolute;
  top: -90%;
  left: -72%;
  z-index: 2;
  width: 46%;
  height: 300%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, .08) 30%,
    rgba(255, 255, 255, .65) 48%,
    rgba(255, 255, 255, .96) 52%,
    rgba(255, 255, 255, .28) 62%,
    transparent 100%
  );
  transform: rotate(20deg);
  animation: badgeShine 2.9s ease-in-out infinite;
}

@keyframes badgeGoldGlow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, .20) inset,
      0 0 14px rgba(246, 199, 75, .30),
      0 8px 22px rgba(0, 0, 0, .20);
    filter: brightness(1);
  }
  42% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, .42) inset,
      0 0 25px rgba(255, 220, 95, .70),
      0 0 44px rgba(246, 199, 75, .34),
      0 8px 22px rgba(0, 0, 0, .20);
    filter: brightness(1.08);
  }
  58% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, .24) inset,
      0 0 16px rgba(246, 199, 75, .38),
      0 8px 22px rgba(0, 0, 0, .20);
    filter: brightness(1.02);
  }
}

@keyframes badgeStarDrift {
  0%, 100% {
    opacity: .30;
    transform: translateX(-12%) translateY(0) rotate(0deg) scale(.96);
  }
  35% {
    opacity: .96;
    transform: translateX(4%) translateY(-4%) rotate(9deg) scale(1.08);
  }
  70% {
    opacity: .48;
    transform: translateX(10%) translateY(3%) rotate(15deg) scale(1);
  }
}

@keyframes badgeShine {
  0% { left: -76%; opacity: 0; }
  16% { opacity: 1; }
  48% { left: 132%; opacity: 1; }
  100% { left: 132%; opacity: 0; }
}


/* =========================================================
   7. CARD FULL - CARTELERA
   Mantiene póster protagonista y overlay oscuro para legibilidad.
   ========================================================= */

.obra-card.poster-full {
  position: relative;
  height: auto;
  min-height: var(--obra-card-height);
  max-height: none;
  align-self: stretch;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-card);
  background: #111;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  box-shadow: var(--shadow-lg);
}

.obra-card.poster-full .poster-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: #111;
}

.obra-card.poster-full .poster-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.01);
  transition: transform .35s ease, filter .35s ease;
}

.obra-card.poster-full::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, .98) 0%,
      rgba(0, 0, 0, .94) 18%,
      rgba(0, 0, 0, .82) 34%,
      rgba(0, 0, 0, .55) 54%,
      rgba(0, 0, 0, .22) 76%,
      rgba(0, 0, 0, .06) 100%
    );
}

.obra-card.poster-full .card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  flex: initial;
  padding: 0 26px 28px;
  background: transparent;
  color: #fff;
}

.obra-card.poster-full .genre {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .82);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.obra-card.poster-full h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.9rem, 2.7vw, 2.85rem);
  line-height: .96;
  letter-spacing: -0.055em;
  text-shadow:
    0 4px 18px rgba(0, 0, 0, .78),
    0 14px 38px rgba(0, 0, 0, .62);
}

.obra-card.poster-full .card-synopsis {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.obra-card.poster-full .meta,
.obra-card.poster-full .location {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .92);
}

.obra-card.poster-full .meta strong {
  color: #fff;
}

.obra-card.poster-full .price,
.obra-card.poster-full .badge.type {
  display: none;
}

.obra-card.poster-full .distance-pill {
  width: fit-content;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
}

.obra-card.poster-full .badge.top {
  z-index: 4;
}

.obra-card.poster-full .btn {
  width: 100%;
  margin-top: 16px;
  background: #fff;
  color: #111;
  border-color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}

.obra-card.poster-full .btn:hover {
  background: rgba(255, 255, 255, .9);
  color: #111;
}

.obra-card.poster-full:hover .poster-wrap img {
  transform: scale(1.055);
  filter: brightness(1.06);
}

.obra-card.full-card-clickable {
  cursor: pointer;
}

.obra-card.full-card-clickable .full-card-button {
  pointer-events: none;
}

.obra-card.full-card-clickable:focus-visible {
  outline: 3px solid rgba(158, 47, 85, .55);
  outline-offset: 4px;
}


/* =========================================================
   8. MODAL SIMPLE
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(32, 23, 32, .56);
  padding: 20px;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.modal.show {
  display: grid;
}

.modal-content {
  width: min(680px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.modal-content h2 {
  color: var(--text-strong);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  box-shadow: none;
}


/* =========================================================
   9. FICHA PREMIUM / DETALLE CLÁSICO
   ========================================================= */

.page-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 250, 244, .96), rgba(242, 231, 220, .96));
}

.detail-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 42px;
  padding: 42px 0 80px;
}

.detail-poster img {
  width: 100%;
  border-radius: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.detail-content h1 {
  font-size: clamp(2.4rem, 4vw, 4.5rem);
}

.detail-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  margin-top: 22px;
  box-shadow: var(--shadow-sm);
}

.detail-box h2 {
  margin-top: 0;
  color: var(--text-strong);
}
.modal-poster-wrap {
  width: 120px;
  max-width: 35%;
  margin: 0 auto 14px;
  border-radius: 12px;
  overflow: hidden;
}

.modal-poster-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) {
  .modal-poster-wrap {
    width: 150px;
    max-width: 55%;
  }
}
.function-row {
  display: grid;
  gap: 5px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.function-row:last-child {
  border-bottom: 0;
}

.function-row span,
.function-row small {
  color: var(--muted);
}


/* =========================================================
   10. LANDING FULL EDITORIAL CLARA
   ========================================================= */

.obra-full-page {
  background:
    radial-gradient(circle at 86% 0%, rgba(158, 47, 85, .10), transparent 28%),
    linear-gradient(180deg, #fbf5ed 0%, #efe2d5 100%);
  color: var(--text);
}

.full-hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fbf5ed 0%, #efe2d5 100%);
  isolation: isolate;
}

.full-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--full-poster);
  background-size: cover;
  background-position: center top;
  filter: blur(36px) brightness(1.08) saturate(.92);
  transform: scale(1.16);
  opacity: .20;
}

.full-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(251, 245, 237, .98) 0%,
      rgba(251, 245, 237, .90) 42%,
      rgba(251, 245, 237, .58) 68%,
      rgba(251, 245, 237, .92) 100%
    ),
    linear-gradient(
      to top,
      #fbf5ed 0%,
      rgba(251, 245, 237, .78) 18%,
      rgba(251, 245, 237, .30) 58%,
      rgba(251, 245, 237, .10) 100%
    );
}

.full-hero-inner {
  position: relative;
  z-index: 3;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
  padding-top: 72px;
  padding-bottom: 84px;
}

.full-hero-inner::after {
  content: "";
  justify-self: end;
  align-self: center;
  width: min(430px, 34vw);
  aspect-ratio: 9 / 14;
  background-image: var(--full-poster);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 10px;
  box-shadow:
    0 34px 90px rgba(45, 31, 40, .22),
    0 0 0 1px rgba(32, 23, 32, .12);
}

.full-back-link {
  position: absolute;
  top: 28px;
  left: 0;
  color: var(--muted);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .01em;
}

.full-back-link:hover {
  color: var(--accent);
}

.full-hero-content {
  max-width: 780px;
}

.full-hero-content .eyebrow {
  color: var(--accent);
  margin-bottom: 14px;
}

.full-hero-content h1 {
  margin: 0 0 24px;
  color: var(--text-strong);
  font-size: clamp(3.8rem, 8.8vw, 8.4rem);
  line-height: .82;
  letter-spacing: -0.085em;
  text-wrap: balance;
  text-shadow:
    0 12px 32px rgba(255, 255, 255, .55),
    0 26px 80px rgba(45, 31, 40, .10);
}

.full-director {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 900;
}

.full-lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.45vw, 1.34rem);
  line-height: 1.58;
}

.full-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.full-main-btn {
  background: var(--accent);
  color: #fff;
  border-color: rgba(127, 35, 67, .14);
}

.full-secondary-btn {
  color: var(--text);
  background: rgba(255, 250, 244, .72);
  border: 1px solid var(--border);
}

.full-secondary-btn:hover {
  background: #fff;
}

.full-detail-layout {
  padding-top: 64px;
  padding-bottom: 90px;
}

.full-section {
  margin-bottom: 84px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.full-info-card h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(2.1rem, 3.8vw, 3.8rem);
  line-height: .9;
  letter-spacing: -0.06em;
}

.full-info-grid,
.full-team-grid {
  display: grid;
  gap: 52px;
}

.full-info-grid {
  grid-template-columns: 1.25fr .75fr;
}

.full-team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.full-info-card {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 26px 0 0;
}

.full-info-card h3 {
  margin: 0 0 12px;
  color: var(--text-strong);
  font-size: 1.28rem;
}

.full-info-card p,
.full-info-card small {
  color: var(--muted);
  line-height: 1.62;
}

.full-info-card .btn {
  margin-top: 14px;
}

.obra-full-page .detail-box {
  background: rgba(255, 250, 244, .70);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}


/* =========================================================
   11. LANDING FULL - FUNCIONES CON CALENDARIO
   ========================================================= */

.full-functions-grid {
  display: block;
  border-top: 1px solid var(--border);
}

.full-function-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.calendar-date {
  width: 52px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #fffaf4;
  color: var(--text-strong);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.calendar-month {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  background: var(--accent);
  color: #fff;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
}

.calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  color: var(--text-strong);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.full-function-info {
  min-width: 0;
}

.full-function-info strong {
  display: block;
  margin: 0 0 6px;
  color: var(--text-strong);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  font-weight: 900;
  line-height: 1.28;
  text-transform: uppercase;
}

.full-function-info span,
.full-function-info small {
  display: block;
  color: var(--muted);
  font-size: clamp(.98rem, 1.2vw, 1.14rem);
  line-height: 1.4;
}

.function-inline-badge {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 8px;
  color: var(--accent-2-strong) !important;
  font-size: .78rem !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.full-function-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin: 0;
}

.full-function-actions a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(158, 47, 85, .35);
  white-space: nowrap;
}

.full-function-actions a:hover {
  border-color: var(--accent);
}


/* =========================================================
   12. NEWSLETTER / PRODUCTORAS
   ========================================================= */

.newsletter-section {
  margin: 34px 0 12px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top left, rgba(158, 47, 85, .10), transparent 34%),
    linear-gradient(135deg, rgba(255, 250, 244, .98), rgba(242, 231, 220, .98));
  box-shadow: var(--shadow-md);
}

.newsletter-copy {
  max-width: 720px;
  margin-bottom: 18px;
}

.newsletter-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.newsletter-section h2 {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.08;
}

.newsletter-section p {
  color: var(--muted);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 720px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 180px;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fffdf9;
  color: var(--text);
  font-weight: 700;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(32, 23, 32, .45);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: rgba(158, 47, 85, .44);
  box-shadow: 0 0 0 4px rgba(158, 47, 85, .10);
}

.newsletter-feedback {
  margin: 14px 0 0;
  font-size: .9rem;
  font-weight: 900;
}

.newsletter-feedback.ok {
  color: var(--success);
}

.newsletter-feedback.error {
  color: var(--danger);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.productora-logo-wrap {
  margin: 10px 0 14px;
}

.productora-logo {
  max-width: 150px;
  max-height: 82px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.productora-logo-wrap-premium {
  margin-top: 4px;
}

.productora-description {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.productora-social-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.productora-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 250, 244, .62);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, transform .2s ease, background .2s ease;
}

.productora-social-icon:hover {
  border-color: rgba(158, 47, 85, .34);
  color: var(--accent);
  background: #fff;
  transform: translateY(-1px);
}

.productora-icon-svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.productora-name-line {
  margin-top: 4px;
  margin-bottom: 6px;
  font-size: .94rem;
  font-weight: 800;
}


/* =========================================================
   13. ADMIN CLARO
   ========================================================= */

.admin-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 0%, rgba(158, 47, 85, .08), transparent 26%),
    linear-gradient(180deg, #fbf5ed 0%, #efe2d5 100%);
}

.admin-header {
  background: rgba(255, 250, 244, .94);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
}

.admin-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.admin-nav div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-main {
  padding: 28px 0 60px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--accent);
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.notice {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 16px;
  color: var(--accent-2-strong);
  background: rgba(225, 161, 90, .14);
  border: 1px solid rgba(225, 161, 90, .28);
}

.error {
  color: var(--danger);
  background: rgba(182, 56, 72, .10);
  border-color: rgba(182, 56, 72, .22);
}

.login-box {
  width: min(440px, calc(100% - 32px));
  margin: 80px auto;
}


/* =========================================================
   14. RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  :root {
    --obra-card-height: 650px;
    --obra-card-poster-height: 380px;
  }

  .hero-grid,
  .detail-layout,
  .two-cols {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .full-hero {
    min-height: auto;
  }

  .full-hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 82px;
    padding-bottom: 62px;
  }

  .full-hero-inner::after {
    grid-row: 1;
    justify-self: start;
    width: min(320px, 80vw);
    aspect-ratio: 9 / 14;
  }

  .full-hero-content {
    grid-row: 2;
  }

  .full-hero-content h1 {
    font-size: clamp(2.9rem, 15vw, 5.7rem);
  }

  .full-info-grid,
  .full-team-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .full-function-card {
    grid-template-columns: 52px 1fr;
    gap: 14px;
  }

  .full-function-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .calendar-date {
    width: 48px;
    height: 54px;
  }
}

@media (max-width: 720px) {
  .newsletter-section {
    padding: 20px;
    border-radius: 22px;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form input[type="email"],
  .newsletter-form .btn {
    width: 100%;
  }
}

@media (max-width: 620px) {
  :root {
    --obra-card-height: 620px;
    --obra-card-poster-height: 360px;
  }

  .filters,
  .grid-cards,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 44px;
  }

  .hero.hero-logo-only {
    padding: 34px 0 30px;
  }

  .hero.hero-logo-only::before {
    width: 320px;
    height: 190px;
    filter: blur(8px);
  }

  .hero.hero-logo-only .hero-logo-only-img {
    width: clamp(155px, 50vw, 240px);
  }

  .obra-card.poster-full .card-body {
    padding: 0 22px 24px;
  }

  .filters .btn,
  .filters button,
  .filters a.btn {
    width: 100%;
  }
}

/* Ficha técnica: orden desktop/mobile */
@media (min-width: 821px) {
  .ficha-tecnica-grid {
    align-items: start;
    column-gap: 52px;
    row-gap: 14px;
  }

  .ficha-principales-card {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 8px;
  }

  .ficha-elenco-card {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .ficha-productora-card {
    grid-column: 3;
    grid-row: 1;
  }

  .ficha-tecnica-card {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
    padding-top: 0;
    background: transparent;
    border-top: 0;
    box-shadow: none;
  }

  .ficha-tecnica-card h3 {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    font-size: .96rem;
    line-height: 1.25;
  }

  .ficha-tecnica-card .ficha-line:first-of-type {
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  .ficha-principales-card {
    order: 1;
  }

  .ficha-elenco-card {
    order: 2;
  }

  .ficha-tecnica-card {
    order: 3;
  }

  .ficha-productora-card {
    order: 4;
  }
}


/* =========================================================
   15. ACCESIBILIDAD / MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================================
   OVERRIDE OBRA FULL - CONSERVA LANDING OSCURA
   La web general queda clara, pero las páginas full vuelven a oscuro.
   ========================================================= */

.obra-full-page {
  background: #070707;
  color: #fff;
}

/* HERO FULL OSCURO */
.obra-full-page .full-hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  background: #070707;
  isolation: isolate;
}

.obra-full-page .full-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--full-poster);
  background-size: cover;
  background-position: center top;
  filter: blur(34px) brightness(.34) saturate(1.05);
  transform: scale(1.16);
  opacity: .78;
}

.obra-full-page .full-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(7, 7, 7, .98) 0%,
      rgba(7, 7, 7, .92) 34%,
      rgba(7, 7, 7, .68) 62%,
      rgba(7, 7, 7, .96) 100%
    ),
    linear-gradient(
      to top,
      #070707 0%,
      rgba(7, 7, 7, .86) 10%,
      rgba(7, 7, 7, .22) 42%,
      rgba(7, 7, 7, .06) 100%
    );
}

.obra-full-page .full-hero-inner {
  position: relative;
  z-index: 3;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
  padding-top: 72px;
  padding-bottom: 84px;
}

.obra-full-page .full-hero-inner::after {
  content: "";
  justify-self: end;
  align-self: center;
  width: min(430px, 34vw);
  aspect-ratio: 9 / 14;
  background-image: var(--full-poster);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 10px;
  box-shadow:
    0 46px 120px rgba(0, 0, 0, .76),
    0 0 0 1px rgba(255, 255, 255, .12);
}

/* LINK VOLVER */
.obra-full-page .full-back-link {
  position: absolute;
  top: 28px;
  left: 0;
  color: rgba(255, 255, 255, .70);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .01em;
}

.obra-full-page .full-back-link:hover {
  color: #fff;
}

/* CONTENIDO HERO */
.obra-full-page .full-hero-content {
  max-width: 780px;
}

.obra-full-page .full-hero-content .eyebrow {
  color: var(--accent-2);
  margin-bottom: 14px;
}

.obra-full-page .full-hero-content h1 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(3.8rem, 8.8vw, 8.4rem);
  line-height: .82;
  letter-spacing: -0.085em;
  text-wrap: balance;
  text-shadow:
    0 12px 32px rgba(0, 0, 0, .68),
    0 32px 90px rgba(0, 0, 0, .72);
}

.obra-full-page .full-director {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .88);
  font-size: 1rem;
  font-weight: 800;
}

.obra-full-page .full-lead {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1.08rem, 1.45vw, 1.34rem);
  line-height: 1.58;
}

.obra-full-page .full-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* BOTONES FULL */
.obra-full-page .full-main-btn {
  background: #fff;
  color: #111;
  border-color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
}

.obra-full-page .full-main-btn:hover {
  background: rgba(255, 255, 255, .90);
  color: #111;
}

.obra-full-page .full-secondary-btn {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .34);
  box-shadow: none;
}

.obra-full-page .full-secondary-btn:hover {
  background: rgba(255, 255, 255, .10);
  color: #fff;
}

/* CUERPO FULL */
.obra-full-page .full-detail-layout {
  padding-top: 64px;
  padding-bottom: 90px;
}

.obra-full-page .full-section {
  margin-bottom: 84px;
}

.obra-full-page .section-heading {
  margin-bottom: 28px;
}

.obra-full-page .section-heading .eyebrow,
.obra-full-page .full-info-card .eyebrow {
  color: var(--accent-2);
}

.obra-full-page .section-heading h2,
.obra-full-page .full-info-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 3.8vw, 3.8rem);
  line-height: .9;
  letter-spacing: -0.06em;
}

.obra-full-page .full-info-grid,
.obra-full-page .full-team-grid {
  display: grid;
  gap: 52px;
}

.obra-full-page .full-info-grid {
  grid-template-columns: 1.25fr .75fr;
}

.obra-full-page .full-team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* BLOQUES INFO SIN TARJETAS CLARAS */
.obra-full-page .full-info-card {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 26px 0 0;
}

.obra-full-page .full-info-card h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.28rem;
}

.obra-full-page .full-info-card p,
.obra-full-page .full-info-card small {
  color: rgba(255, 255, 255, .72);
  line-height: 1.62;
}

.obra-full-page .full-info-card .btn {
  margin-top: 14px;
}

/* CAJA VACÍA / SIN FUNCIONES */
.obra-full-page .detail-box {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  color: rgba(255, 255, 255, .76);
  box-shadow: none;
}

/* FUNCIONES */
.obra-full-page .full-functions-grid {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.obra-full-page .full-function-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.obra-full-page .calendar-date {
  width: 52px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  background: #f6f3ee;
  color: #111;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
  border: 0;
  flex-shrink: 0;
}

.obra-full-page .calendar-month {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  background: #f0143f;
  color: #fff;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
}

.obra-full-page .calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  color: #111;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.obra-full-page .full-function-info {
  min-width: 0;
}

.obra-full-page .full-function-info strong {
  display: block;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  font-weight: 900;
  line-height: 1.28;
  text-transform: uppercase;
}

.obra-full-page .full-function-info span,
.obra-full-page .full-function-info small {
  display: block;
  color: rgba(255, 255, 255, .56);
  font-size: clamp(.98rem, 1.2vw, 1.14rem);
  line-height: 1.4;
}

.obra-full-page .function-inline-badge {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 8px;
  color: #f0bd42 !important;
  font-size: .78rem !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.obra-full-page .distance-inline {
  color: #f2d7bd !important;
  font-weight: 800;
}

.obra-full-page .full-function-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin: 0;
}

.obra-full-page .full-function-actions a {
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
  white-space: nowrap;
}

.obra-full-page .full-function-actions a:hover {
  border-color: #fff;
}

/* FICHA TÉCNICA */
.obra-full-page .ficha-line {
  margin: 0 0 16px;
}

.obra-full-page .ficha-line strong {
  color: #fff;
}

.obra-full-page .ficha-person-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.obra-full-page .ficha-person-list li {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .82);
}

.obra-full-page .ficha-person-list span {
  color: rgba(255, 255, 255, .62);
}

.obra-full-page .ficha-person-list small {
  display: block;
  margin-top: 3px;
}

.obra-full-page .person-link {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .34);
}

.obra-full-page .person-link:hover {
  border-color: #fff;
}

/* PRODUCTORA EN FULL */
.obra-full-page .productora-logo-wrap {
  margin: 10px 0 14px;
}

.obra-full-page .productora-logo {
  max-width: 150px;
  max-height: 82px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.obra-full-page .productora-social-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.obra-full-page .productora-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .88);
  background: transparent;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.obra-full-page .productora-social-icon:hover {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  transform: translateY(-1px);
}

/* RESPONSIVE FULL OSCURO */
@media (max-width: 900px) {
  .obra-full-page .full-hero {
    min-height: auto;
  }

  .obra-full-page .full-hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 82px;
    padding-bottom: 62px;
  }

  .obra-full-page .full-hero-inner::after {
    grid-row: 1;
    justify-self: start;
    width: min(320px, 80vw);
    aspect-ratio: 9 / 14;
  }

  .obra-full-page .full-hero-content {
    grid-row: 2;
  }

  .obra-full-page .full-hero-content h1 {
    font-size: clamp(2.9rem, 15vw, 5.7rem);
  }

  .obra-full-page .full-info-grid,
  .obra-full-page .full-team-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .obra-full-page .full-function-card {
    grid-template-columns: 52px 1fr;
    gap: 14px;
  }

  .obra-full-page .full-function-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .obra-full-page .calendar-date {
    width: 48px;
    height: 54px;
  }
}
/* =========================================================
   PREMIUM / PRO - MINI HERO DE MARCA
   Similar al home, más chico. No afecta obra full.
   ========================================================= */

.obra-premium-page .pro-mini-brand-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px 0 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(158, 47, 85, .12), transparent 36%),
    radial-gradient(circle at 50% 120%, rgba(225, 161, 90, .16), transparent 32%),
    linear-gradient(180deg, #fff8ef 0%, #eadccd 100%);
  border-bottom: 1px solid rgba(32, 23, 32, .13);
}

.obra-premium-page .pro-mini-brand-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: -1;
  width: min(460px, 52vw);
  height: 220px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at center,
      rgba(255, 255, 255, .74) 0%,
      rgba(255, 245, 232, .50) 38%,
      rgba(225, 161, 90, .13) 60%,
      transparent 78%
    );
  filter: blur(9px);
  pointer-events: none;
}

.obra-premium-page .pro-mini-brand-inner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.obra-premium-page .pro-mini-brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.obra-premium-page .pro-mini-brand-logo {
  width: clamp(145px, 16vw, 230px);
  height: auto;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(0 14px 28px rgba(45, 31, 40, .20))
    drop-shadow(0 0 16px rgba(255, 255, 255, .55));
}

.obra-premium-page .pro-back-link {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(32, 23, 32, .68);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 900;
}

.obra-premium-page .pro-back-link:hover {
  color: #9e2f55;
}

@media (max-width: 620px) {
  .obra-premium-page .pro-mini-brand-hero {
    padding: 22px 0 20px;
  }

  .obra-premium-page .pro-mini-brand-inner {
    display: grid;
    justify-items: center;
    gap: 12px;
  }

  .obra-premium-page .pro-back-link {
    position: static;
    transform: none;
    font-size: .86rem;
  }

  .obra-premium-page .pro-mini-brand-logo {
    width: clamp(130px, 42vw, 190px);
  }
}

/* =========================================================
   CRITERIO FINAL DE COLOR
   - Full (.obra-full-page): negro, desktop y mobile.
   - Pro/Premium (.obra-premium-page): claro, desktop y mobile.
   - Resto del sitio: claro.
   ========================================================= */
   .modal-content {
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 620px) {
  .modal {
    align-items: start;
    padding: 12px;
    overflow-y: auto;
  }

  .modal-content {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 22px;
    border-radius: 22px;
  }

  .modal-poster-wrap {
    width: 125px;
    max-width: 52%;
    margin-bottom: 12px;
  }

  .modal-main {
    padding-bottom: 8px;
  }

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  display: block;
  border-radius: 999px;
  background: rgba(255, 250, 244, .78);
  color: rgba(32, 23, 32, .62);
  border: 1px solid rgba(32, 23, 32, .10);
  box-shadow: 0 8px 18px rgba(45, 31, 40, .10);
  backdrop-filter: blur(8px);
  font-size: 0;
  line-height: 1;
}

.modal-close::before {
  content: "×";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  font-family: Arial, Helvetica, sans-serif;
}

.modal-close:hover {
  background: rgba(255, 250, 244, .96);
  color: var(--accent-strong);
  border-color: rgba(158, 47, 85, .20);
  box-shadow: 0 10px 22px rgba(45, 31, 40, .13);
}
@media (max-width: 620px) {
  .modal-close {
    position: sticky;
    top: 0;
    margin-left: auto;
    z-index: 5;
  }
}
}
