@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;700&display=swap");

.page-produccion {
  background: #1f1f1f;
  color: #f5f6ef;
}

.page-produccion {
  --production-lime: var(--hero-lime);
  --production-media-bg: #1f1f1f;
}

.page-produccion .hero__topbar {
  background: #1f1f1f;
}

.page-produccion .hero__nav a.nav-active {
  color: var(--hero-lime) !important;
}

.page-produccion .conversion,
.page-produccion .conversion__title,
.page-produccion .conversion__text,
.page-produccion .conversion__cta,
.page-produccion .footer__link,
.page-produccion .footer__legal a {
  transition: color 0.4s ease-in-out, background-color 0.4s ease-in-out, border-color 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.page-produccion .conversion:hover {
  background-color: #d2f583 !important;
}

.page-produccion .conversion:hover .conversion__title,
.page-produccion .conversion:hover .conversion__text {
  color: #1a1a1a !important;
}

.page-produccion .conversion:hover .conversion__cta {
  color: #1a1a1a;
  border-color: #1a1a1a;
  background-color: transparent;
}

.page-produccion .conversion__cta:hover {
  background-color: #1a1a1a !important;
  color: #d2f583 !important;
  border-color: #1a1a1a !important;
}

.page-produccion .conversion,
.page-produccion .conversion__content,
.page-produccion .conversion__title,
.page-produccion .conversion__title .intro__title-line,
.page-produccion .conversion__text {
  text-align: center;
}

.page-produccion .conversion__content,
.page-produccion .conversion__title,
.page-produccion .conversion__text {
  margin-left: auto;
  margin-right: auto;
}

.page-produccion .conversion__title.conversion__title--brand {
  width: min(700px, 100%) !important;
  max-width: 100%;
  display: block !important;
}

.page-produccion .conversion__text {
  width: min(520px, 100%);
}

@media (max-width: 1024px) {
  .page-produccion .hero__topbar,
  .page-produccion .hero__topbar--glass,
  .page-produccion .hero__topbar--lime {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 0 !important;
  }

  .page-produccion .hero__topbar--lime .hero__brand::after {
    background-image: url("../icon/iconomovil2.png") !important;
  }

  .page-produccion .hero__menu-toggle,
  .page-produccion .hero__topbar--glass .hero__menu-toggle,
  .page-produccion .hero__topbar--lime .hero__menu-toggle {
    background: var(--mobile-menu-pill-bg) !important;
    border-color: var(--mobile-menu-pill-border) !important;
    color: var(--hero-lime) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }
}



.production-page {
  width: 100%;
  padding-top: var(--header-height);
  background: #1f1f1f;
}

.production-gallery,
.production-next {
  width: 100%;
  padding: clamp(72px, 8vw, 120px) var(--hero-side-pad);
}

.production-hero__inner,
.production-gallery__inner,
.production-next__card {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.production-hero__inner {
  width: min(1440px, 100%);
  min-height: 700px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: clamp(72px, 8vw, 120px);
  gap: clamp(40px, 5vw, 64px);
  box-sizing: border-box;
}

.production-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: #a4a4a4;
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  text-transform: uppercase;
}

.production-back__icon {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  flex: 0 0 auto;
}

.production-back:hover {
  color: var(--production-lime);
}

.production-hero__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.production-hero__title {
  margin: 0;
  font-family: "Outfit", Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(38px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #f5f6ef;
  text-wrap: balance;
}

.production-hero__title span,
.production-next__title span {
  color: var(--production-lime);
}

.production-hero__summary {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.95fr);
  justify-content: space-between;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.production-hero__description {
  margin: 0;
  max-width: 58ch;
  font-family: "Outfit", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 21px;
  color: #f5f6ef;
}

.production-meta {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.production-meta__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px clamp(24px, 4vw, 45px);
}

.production-meta__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.production-meta__label {
  color: #a4a4a4;
  font-family: "Outfit", Arial, sans-serif;
  font-weight: 600;
  font-size: 10px;
  line-height: 13px;
  text-transform: uppercase;
}

.production-meta__value {
  color: #f5f6ef;
  font-family: "Outfit", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
}

.production-media {
  width: 100%;
  padding: clamp(80px, 12vh, 160px) var(--hero-side-pad); /* Mucho más espacio arriba y abajo */
  background: var(--production-media-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.production-media .custom-player {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.production-media .custom-player__video {
  height: auto;
  object-fit: contain;
  background: transparent;
}

.production-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 38%;
  background: var(--production-media-bg);
}

.production-gallery__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.production-gallery__eyebrow {
  margin: 0;
  color: #ffffff;
  font-family: "Outfit", Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
}

.production-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.production-gallery__grid--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.production-gallery__item {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--production-media-bg);
  overflow: hidden;
}

.production-gallery__item--reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  clip-path: inset(18% 0 0 0);
  will-change: transform, opacity, clip-path;
}

.production-gallery__item--reveal.is-visible {
  animation: production-gallery-item-reveal 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.production-gallery__item--reveal:nth-child(2).is-visible {
  animation-delay: 0.08s;
}

.production-gallery__item--reveal:nth-child(3).is-visible {
  animation-delay: 0.16s;
}

.production-gallery__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: var(--production-media-bg);
  transform: scale(1.08);
  transition: transform 1.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.production-gallery__item video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: var(--production-media-bg);
}

.production-gallery__item--reveal.is-visible img {
  transform: scale(1);
}

.production-gallery__item--video {
  background: var(--production-media-bg);
}

.production-gallery__item--video .custom-player {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

@keyframes production-gallery-item-reveal {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.985);
    clip-path: inset(18% 0 0 0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    clip-path: inset(0 0 0 0);
  }
}

.production-next {
  padding-top: 40px;
}

.production-next__card {
  min-height: clamp(340px, 38vw, 450px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(48px, 5vw, 64px) clamp(32px, 8vw, 120px);
  position: relative;
  overflow: hidden;
  background: var(--production-media-bg);
  text-align: center;
  isolation: isolate;
  cursor: pointer;
}

.production-next__media {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  z-index: -2;
  background: var(--production-media-bg);
  transition:
    width 1.45s cubic-bezier(0.22, 1, 0.36, 1),
    height 1.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1.15s ease;
}

.production-next__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 1;
}

.production-next__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: var(--production-media-bg);
  transform: scale(1.08);
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.production-next__content {
  width: min(960px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.production-next__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.production-next__link:focus-visible {
  outline: 1px solid var(--production-lime);
  outline-offset: 6px;
}

.production-next__eyebrow {
  color: #a4a4a4;
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.35s ease;
}

.production-next__title {
  margin: 0;
  color: #f5f6ef;
  font-family: "Outfit", Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(38px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.production-next__title span {
  display: block;
}

.production-next--animate:not(.production-next--open) .production-next__media {
  width: 0;
  height: 0;
  opacity: 1;
}

.production-next--open .production-next__media {
  width: 100%;
  height: 100%;
}

.production-next--open .production-next__image {
  transform: scale(1);
}

.production-next__card:hover .production-next__image,
.production-next__card:focus-within .production-next__image {
  transform: scale(1.03);
}

.production-next__link:hover .production-next__eyebrow,
.production-next__link:focus-visible .production-next__eyebrow {
  color: var(--production-lime);
}

@media (max-width: 1120px) {
  .production-hero__inner {
    min-height: 0;
  }

  .production-hero__summary {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 1180px) {
  .production-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .production-gallery,
  .production-next {
    padding-left: 40px;
    padding-right: 40px;
  }

  .production-hero__inner {
    padding-left: 40px;
    padding-right: 40px;
  }

  .production-next__card {
    padding-left: 64px;
    padding-right: 64px;
  }
}

@media (max-width: 900px) {
  .production-hero__inner {
    height: auto;
    padding: 80px 40px 48px;
    gap: 40px;
  }

  .production-hero__title,
  .production-next__title {
    font-size: clamp(28px, 7.4vw, 38px);
    line-height: 1.04;
  }

  .production-hero__summary {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .production-meta__row {
    gap: 24px;
  }

  .production-gallery {
    padding-top: 56px;
  }

  .production-gallery__grid {
    grid-template-columns: 1fr;
  }

  .production-next {
    padding-top: 24px;
  }

  .production-next__card {
    min-height: 360px;
    padding: 48px 32px;
  }

  .production-media,
  .production-gallery__item,
  .production-next__media {
    background: var(--production-media-bg);
  }

  .production-media img,
  .production-gallery__item img,
  .production-next__image {
    object-fit: cover;
    object-position: center;
    background: var(--production-media-bg);
  }
}

@media (max-width: 640px) {
  .production-gallery {
    padding: 44px 24px 56px;
  }

  .production-next {
    padding: 56px 24px;
  }

  .production-hero__inner {
    padding: 56px 24px 32px;
    gap: 32px;
  }

  .production-back {
    font-size: 12px;
    line-height: 16px;
  }

  .production-hero__title,
  .production-next__title {
    font-size: clamp(24px, 7vw, 31px);
    line-height: 1.04;
  }

  .production-hero__description,
  .production-meta__value {
    font-size: 15px;
    line-height: 20px;
  }

  .production-meta {
    gap: 24px;
  }

  .production-meta__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .production-media {
    aspect-ratio: auto;
  }

  .production-media img {
    object-position: center;
  }

  .production-next__card {
    min-height: 320px;
    padding: 40px 24px;
  }

  .production-next__eyebrow {
    font-size: 12px;
    line-height: 16px;
  }
}

/* Custom Video Player Styles */
.custom-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--production-media-bg);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.custom-player__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--production-media-bg);
}

.custom-player__controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
}

.custom-player:hover .custom-player__controls,
.custom-player--interacting .custom-player__controls {
  opacity: 1;
  visibility: visible;
}

.custom-player__progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  position: relative;
  border-radius: 2px;
}

.custom-player__progress-bar {
  height: 100%;
  background: var(--production-lime);
  width: 0%;
  border-radius: 2px;
  position: relative;
}

.custom-player__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.custom-player__group {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  flex-wrap: wrap;
}

.custom-player__btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.custom-player__btn:hover {
  color: var(--production-lime);
}

.custom-player__btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.custom-player__time {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  color: #fff;
  min-width: 68px;
}

.custom-player__volume-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-player__volume-slider {
  width: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  transition: width 0.3s ease;
}

.custom-player__volume-wrap:hover .custom-player__volume-slider {
  width: 80px;
}

.custom-player__volume-level {
  height: 100%;
  background: #fff;
  width: 80%;
}

@media (max-width: 640px) {
  .custom-player {
    aspect-ratio: 4 / 5;
  }
  .custom-player__controls {
    padding: 15px;
  }
  .custom-player__bottom {
    align-items: flex-start;
  }
  .custom-player__group {
    gap: 10px;
  }
  .custom-player__time {
    min-width: 0;
  }
  .custom-player__volume-slider {
    display: none;
  }
}

/* Central Play Overlay */
.custom-player__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 5;
}

.custom-player__center-play {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.custom-player:hover .custom-player__center-play {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.15);
}

.custom-player__center-play svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  margin-left: 4px; /* Compensate for play icon asymmetry */
  transition: fill 0.3s ease;
}

.custom-player--autoplay .custom-player__overlay {
  background: transparent;
}

.custom-player--autoplay .custom-player__center-play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.custom-player:hover .custom-player__center-play svg {
  fill: var(--production-lime);
}

.custom-player-playing .custom-player__overlay {
  opacity: 0;
  visibility: hidden;
}

@media (max-width: 640px) {
  .custom-player__center-play {
    width: 60px;
    height: 60px;
  }
  .custom-player__center-play svg {
    width: 24px;
    height: 24px;
  }
}
