/* ==========================================================
   NUEVO MEDIA · IMÁGENES
   Versión más integrada con la web general
   La tipografía se hereda de la web
========================================================== */

.media-images {
  --media-padding: 50px;
  --media-border-light: #dedede;
  --media-text: #111;
  --media-muted: #666;
  --media-soft: #f3f3f3;

  width: 100%;
  background: #fff;
  color: var(--media-text);
}

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

.media-images a {
  color: inherit;
  text-decoration: none;
}

.media-inner {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--media-padding);
  padding-right: var(--media-padding);
}

.media-hero .media-inner {
  max-width: none;
}


/* ==========================================================
   HERO
========================================================== */

.media-hero {
  position: relative;
  height: 620px;
  min-height: 620px;
  overflow: hidden;
  background: #111;
  color: #fff;
}

.media-hero-picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.media-hero-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, .84) 0%,
      rgba(0, 0, 0, .58) 30%,
      rgba(0, 0, 0, .08) 62%,
      rgba(0, 0, 0, .22) 100%
    );
}

.media-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.media-hero-copy {
  max-width: 560px;
}

.media-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: .08em;
}

.media-eyebrow span {
  display: inline-block;
  width: 35px;
  height: 1px;
  background: currentColor;
  opacity: .45;
}

.media-hero h1 {
  margin: 55px 0 24px;
  font-size: clamp(56px, 5.5vw, 86px);
  line-height: .94;
  font-weight: 700;
  letter-spacing: -.04em;
}

.media-hero-has-date h1 {
  margin-top: 38px;
  margin-bottom: 10px;
  font-size: clamp(44px, 4.2vw, 66px);
  line-height: .98;
}

.media-hero-date {
  margin: 0 0 28px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 400;
}

.media-hero-description {
  margin: 0 0 38px;
  font-size: 12px;
  line-height: 1.7;
}

.media-hero-actions {
  display: flex;
  gap: 10px;
}

.media-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 18px;
  gap: 28px;
  border-radius: 1px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase !important;
}

.media-btn-light {
  min-width: 200px;
  background: #fff;
  color: #111 !important;
}

.media-btn-outline {
  min-width: 175px;
  border: 1px solid rgba(255, 255, 255, .55);
}

.media-btn span {
  font-size: 18px;
  font-weight: 300;
}

.media-hero-counter {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.media-hero-counter > span {
  font-size: 11px;
}

.media-hero-counter strong {
  margin: 7px 0;
  font-size: 48px;
  line-height: 1;
}

.media-hero-counter small {
  margin-top: 13px;
  font-size: 9px;
  opacity: .7;
}


/* ==========================================================
   NAVEGACIÓN INTERNA
========================================================== */

.media-subnav {
  height: 78px;
  background: #fff;
  border-bottom: 1px solid var(--media-border-light);
}

.media-subnav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  overflow: hidden;
}

.media-subnav-categories {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1 1 auto;
min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;

  scrollbar-width: none;
}

.media-subnav-categories::-webkit-scrollbar {
  display: none;
}

.media-subnav-categories a {
  position: relative;
  flex: 0 0 auto;
  padding: 0 22px;
  font-size: 13px;
  line-height: 78px;
  white-space: nowrap;
  color: #222;
  opacity: .72;
}

.media-subnav-categories a:first-child {
  padding-left: 0;
  padding-right: 28px;
  font-weight: 600;
}

.media-subnav-categories a:hover,
.media-subnav-categories a.active {
  opacity: 1;
}

.media-subnav-categories a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 22px;
  bottom: 0;
  height: 2px;
  background: #111;
}

.media-subnav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 24px;
  flex: 0 0 auto;
}

.media-subnav-tools a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 1;
}

.media-subnav-tools a:hover {
  background: #f3f3f3;
}

.media-tool-icon {

  width: 22px;

  height: 22px;

  flex: 0 0 22px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.8;

  stroke-linecap: round;

  stroke-linejoin: round;

}

.media-search-link,

.media-filter-link {

  gap: 12px;

}

.media-filter-link .media-tool-icon circle {

  fill: #fff;

}

.media-subnav-mobile {
  display: none;
}



/* BUSCADOR DESPLEGABLE */

.media-subnav-tools button.media-search-link,
.media-subnav-mobile-tools button.media-mobile-search {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  cursor: pointer;
}

.media-subnav-tools button.media-search-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  gap: 12px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.media-subnav-tools button.media-search-link:hover,
.media-subnav-tools button.media-search-link[aria-expanded="true"] {
  background: #f3f3f3;
}

.media-subnav {
  position: relative;
}

.media-subnav-search-panel {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--media-border-light);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
}

.media-subnav-search-panel[hidden] {
  display: none;
}

.media-subnav-search-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px var(--media-padding);
}

.media-subnav-search-input {
  appearance: none;
  -webkit-appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 1px solid #cfcfcf;
  border-right: 0;
  border-radius: 0;
  outline: none;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 14px;
}

.media-subnav-search-input::placeholder {
  color: #777;
  opacity: 1;
}

.media-subnav-search-input:focus {
  border-color: #111;
}

.media-subnav-search-submit {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 52px;
  padding: 0;
  border: 1px solid #111;
  border-radius: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
}

.media-subnav-search-submit:hover {
  background: #333;
}

.media-subnav-search-submit .media-tool-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

/* ==========================================================
   ÚLTIMAS IMÁGENES
========================================================== */

.media-latest {
  padding: 58px 0 65px;
  background: #fff;
}

.media-latest-layout {
  display: grid;
  grid-template-columns: 25% 75%;
  align-items: stretch;
}

.media-section-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 50px 0 0;
}

.media-section-intro .media-eyebrow {
  color: var(--media-muted);
}

.media-section-intro h2 {
  margin: 34px 0 0;
  font-size: clamp(38px, 3.3vw, 54px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.03em;
}

.media-text-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-size: 10px;
}

.media-text-link span {
  font-size: 18px;
}

.media-photo-grid {
  display: grid;
  height: 590px;
  grid-template-columns:
    minmax(0, 1.62fr)
    minmax(0, 1fr)
    minmax(0, .92fr);
  grid-template-rows: 58% 42%;
  gap: 4px;
}

.media-photo {
  display: block;
  overflow: hidden;
  background: #ddd;
}

.media-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.media-photo:hover img {
  transform: scale(1.02);
}

/* MOSAICO A */

.media-grid-a .media-photo-1 {
  grid-column: 1;
  grid-row: 1 / 3;
}

.media-grid-a .media-photo-2 {
  grid-column: 2;
  grid-row: 1;
}

.media-grid-a .media-photo-3 {
  grid-column: 3;
  grid-row: 1;
}

.media-grid-a .media-photo-4 {
  grid-column: 2;
  grid-row: 2;
}

.media-grid-a .media-photo-5 {
  grid-column: 3;
  grid-row: 2;
}


/* MOSAICO B */

.media-grid-b .media-photo-1 {
  grid-column: 2;
  grid-row: 1 / 3;
}

.media-grid-b .media-photo-2 {
  grid-column: 1;
  grid-row: 1;
}

.media-grid-b .media-photo-3 {
  grid-column: 3;
  grid-row: 1;
}

.media-grid-b .media-photo-4 {
  grid-column: 1;
  grid-row: 2;
}

.media-grid-b .media-photo-5 {
  grid-column: 3;
  grid-row: 2;
}


/* MOSAICO C */

.media-grid-c {
  grid-template-columns: 1.2fr .8fr 1fr;
  grid-template-rows: 55% 45%;
}

.media-grid-c .media-photo-1 {
  grid-column: 1;
  grid-row: 1;
}

.media-grid-c .media-photo-2 {
  grid-column: 2 / 4;
  grid-row: 1;
}

.media-grid-c .media-photo-3 {
  grid-column: 1;
  grid-row: 2;
}

.media-grid-c .media-photo-4 {
  grid-column: 2;
  grid-row: 2;
}

.media-grid-c .media-photo-5 {
  grid-column: 3;
  grid-row: 2;
}

.media-photo-main {
  grid-column: 1;
  grid-row: 1 / 3;
}

.media-photo-top {
  grid-column: 2;
  grid-row: 1;
}

.media-photo-right-top {
  grid-column: 3;
  grid-row: 1;
}

.media-photo-bottom {
  grid-column: 2;
  grid-row: 2;
}

.media-photo-right-bottom {
  grid-column: 3;
  grid-row: 2;
}



/* ==========================================================
   ÚLTIMAS IMÁGENES · INFORMACIÓN SOBRE FOTO
========================================================== */

.media-photo {
  position: relative;
}

.media-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.media-photo-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 42%,
      rgba(0, 0, 0, .68) 100%
    );
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.media-photo-info {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.media-photo-category {
  margin-bottom: 6px;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 600;
  text-transform: uppercase;
}

.media-photo-movie {
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.3;
}

.media-photo-title {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
}

.media-photo-copyright {
  margin-top: 7px;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 400;
  opacity: .72;
}

@media (hover: hover) and (pointer: fine) {

  .media-photo:hover .media-photo-shade {
    opacity: 1;
  }

  .media-photo:hover .media-photo-info {
    opacity: 1;
    transform: translateY(0);
  }

}

@media (max-width: 767px) {

  .media-photo-shade {
    opacity: .72;
  }

  .media-photo-info {
    left: 12px;
    right: 12px;
    bottom: 11px;
    opacity: 1;
    transform: none;
  }

  .media-photo-category {
    margin-bottom: 4px;
    font-size: 9px;
  }

  .media-photo-movie {
    font-size: 11px;
  }

  .media-photo-title {
    font-size: 12px;
  }

  .media-photo-copyright {
    margin-top: 5px;
    font-size: 9px;
  }

}


/* ==========================================================
   EXPLORAR POR DÍA
========================================================== */

.media-days {
  background: var(--media-soft);
  border-top: 1px solid #e7e7e7;
  border-bottom: 1px solid #e7e7e7;
}

.media-days-layout {
  display: grid;
  grid-template-columns: 16% 84%;
}

.media-small-title {

  padding-top: 38px;

  font-size: 13px;

  line-height: 1.35;

  color: #222;

  text-transform: uppercase;

  font-weight: 600;

}

.media-small-title span {
  display: block;
  width: 45px;
  height: 1px;
  margin-top: 12px;
  background: #111;
  opacity: .45;
}

.media-days-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

/* Línea horizontal entre las dos filas */
.media-day-card {
  border-bottom: 1px solid #dcdcdc;
}

/* La segunda fila no lleva línea inferior */
.media-day-card:nth-child(n+6) {
  border-bottom: none;
}

/* Primera tarjeta de cada fila sin borde izquierdo */
.media-day-card:nth-child(5n+1) {
  border-left: none;
}

.media-day-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  height: 145px;
  padding: 30px 22px;
  gap: 14px;
  border-left: 1px solid #ddd;
  background: #fff;
  color: #111 !important;
}

.media-day-card:first-child {
  border-left: none;
}

.media-day-card strong {
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
}

.media-day-card div {
  display: flex;
  flex-direction: column;
  padding-top: 2px;
}

.media-day-card span {

  font-size: 12px;

  line-height: 1.2;

  opacity: .65;

}

.media-day-card small {

  margin-top: 6px;

  font-size: 11px;

  line-height: 1.2;

  color: #111;

}

.media-day-card b {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-size: 18px;
  font-weight: 300;
}

/* PREVIOS AL FESTIVAL */

.media-day-previos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  padding: 30px 24px;
}

.media-day-previos .media-day-previos-title {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
}

.media-day-previos div {
  padding-top: 0;
}

.media-day-previos small {
  margin-top: 0;
  font-size: 11px;
  line-height: 1.2;
}

.media-day-card.active {
  background: #111;
  color: #fff !important;
}

.media-day-card.active span,
.media-day-card.active small {
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {

  .media-day-card {
    transition: background-color .2s ease;
  }

  .media-day-card:hover {
    background: #e7e7e7;
  }

  .media-day-card.active:hover {
    background: #111;
  }

}

.media-day-today {
  background: #151515;
  color: #fff !important;
}

.media-day-today span,
.media-day-today small {
  color: #fff;
}




/* ==========================================================
   RETRATOS
   Una única fila horizontal de lado a lado
========================================================== */

.media-portraits {
  padding: 50px 0 56px;
  background: #fff;
}

.media-portraits-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 18px;
}

.media-portraits-inner {
  width: 100%;
  padding-left: 18px;
  padding-right: 18px;
}

.media-portraits-title {
  padding: 0;
  color: #222;
}

.media-portraits-total {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 2px;
  color: #111;
  white-space: nowrap;
}

.media-portraits-total strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}

.media-portraits-total span {
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  opacity: .62;
}

.media-portraits-total b {
  margin-left: 6px;
  font-size: 18px;
  line-height: 1;
  font-weight: 300;
  transition: transform .2s ease;
}

.media-portraits-total:hover b {
  transform: translateX(4px);
}

.media-portraits-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  width: 100%;
  height: 300px;
  gap: 4px;
}

.media-portrait-card {
  position: relative;
  display: block;
  min-width: 0;
  height: 300px;
  overflow: hidden;
  background: #ddd;
  color: #fff !important;
}

.media-portrait-card > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease;
}

.media-portrait-card:hover > img {
  transform: scale(1.025);
}

.media-portrait-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 48%,
      rgba(0, 0, 0, .72) 100%
    );
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.media-portrait-info {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity .25s ease,
    transform .25s ease;
  pointer-events: none;
}

.media-portrait-movie {
  margin-bottom: 4px;
  font-size: 10px;
  line-height: 1.25;
}

.media-portrait-name {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
}

.media-portrait-copyright {
  margin-top: 7px;
  font-size: 9px;
  line-height: 1.25;
  font-weight: 400;
  opacity: .72;
}

@media (hover: hover) and (pointer: fine) {

  .media-portrait-card:hover .media-portrait-shade {
    opacity: 1;
  }

  .media-portrait-card:hover .media-portrait-info {
    opacity: 1;
    transform: translateY(0);
  }

}

/* ==========================================================
   EXPLORAR POR CATEGORÍA
========================================================== */

.media-categories {
  padding: 62px 0 70px;
  background: #fff;
}

.media-categories-title {
  padding: 0 0 20px;
  color: #222;
}

.media-category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.media-category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 430px;
  padding: 20px;
  overflow: hidden;
  background: #ddd;
  color: #fff !important;
}

.media-category-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.media-category-card:hover > img {
  transform: scale(1.025);
}

.media-category-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, .40),
      rgba(0, 0, 0, .03) 50%,
      rgba(0, 0, 0, .66)
    );
}

.media-category-card h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 21px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.015em;
}

.media-category-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 12px;
  font-weight: 500;
}

.media-category-footer b {
  font-size: 22px;
  font-weight: 300;
}


/* ==========================================================
   VER TODAS LAS IMÁGENES
========================================================== */

.media-all {
  padding: 42px 0 48px;
  background: #111;
  color: #fff;
}

.media-all-link {
  display: flex;
  align-items: center;
  gap: 30px;
}

.media-all-link span {
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.035em;
}

.media-all-link b {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 18px;
  font-size: 38px;
  line-height: 1;
  font-weight: 200;
}

.media-all-link b::before {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .45);
}

.media-all-link span,
.media-all-link b,
.media-all-link b::before {
  transition: all .25s ease;
}

.media-all-link:hover span {
  opacity: .82;
}

.media-all-link:hover b {
  transform: translateX(6px);
}

.media-all-link:hover b::before {
  background: rgba(255, 255, 255, .75);
}


/* ==========================================================

   ANCLAS · COMPENSACIÓN CABECERA FIJA

========================================================== */

.media-anchor {

  position: relative;

  top: -180px;

  height: 0;

  visibility: hidden;

  pointer-events: none;

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1199px) {

  .media-images {
    --media-padding: 28px;
  }

  .media-hero {
    height: 560px;
    min-height: 560px;
  }

  .media-subnav {
    overflow-x: auto;
  }

  .media-subnav-inner {
    min-width: 980px;
  }
	
  .media-subnav-more {
    font-weight: 600;
    text-transform: uppercase;
  }

  .media-latest-layout {
    grid-template-columns: 27% 73%;
  }

  .media-section-intro {
    padding-right: 32px;
  }

  .media-photo-grid {
    height: 520px;
  }

  .media-days-layout {
    grid-template-columns: 18% 82%;
  }

  .media-category-card {
    height: 390px;
  }

}


/* ==========================================================
   MÓVIL
========================================================== */

@media (max-width: 767px) {

  .media-images {
    --media-padding: 18px;
  }

  /* HERO */

  .media-hero {
    height: 650px;
    min-height: 650px;
  }

  .media-hero::after {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, .15) 0%,
        rgba(0, 0, 0, .28) 35%,
        rgba(0, 0, 0, .92) 100%
      );
  }

  .media-hero-content {
    align-items: flex-end;
    padding-bottom: 32px;
  }

  .media-hero-copy {
    width: 100%;
    max-width: none;
  }

  .media-hero h1 {
    margin: 22px 0 18px;
    font-size: 54px;
  }

  .media-hero-description {
    margin-bottom: 24px;
  }

  .media-hero-actions {
    flex-direction: column;
  }

  .media-btn {
    width: 100%;
  }

  .media-hero-counter {
    position: absolute;
    top: 25px;
    right: 18px;
  }


/* SUBNAV */


.media-subnav-mobile-tools button.media-mobile-search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 18px;
  border: 0;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.media-subnav-mobile-tools button.media-mobile-search:hover,
.media-subnav-mobile-tools button.media-mobile-search[aria-expanded="true"] {
  background: #f3f3f3;
}

.media-subnav-mobile-tools button.media-mobile-search + a,
.media-subnav-mobile-tools a + button.media-mobile-search {
  border-left: 1px solid #e5e5e5;
}

.media-subnav-mobile .media-subnav-search-panel {
  position: relative;
  top: auto;
  box-shadow: none;
  border-top: 1px solid #e5e5e5;
  border-bottom: 0;
}

.media-subnav-mobile .media-subnav-search-form {
  padding: 14px 18px;
}

.media-subnav-mobile .media-subnav-search-input {
  height: 48px;
  padding: 0 14px;
  font-size: 14px;
}

.media-subnav-mobile .media-subnav-search-submit {
  width: 52px;
  height: 48px;
}



.media-subnav {
  display: none;
}

.media-subnav-mobile {
  display: block;
  background: #fff;
  border-bottom: 1px solid var(--media-border-light);
}

.media-subnav-mobile-inner {
  width: 100%;
}

.media-subnav-mobile-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 58px;
  border-bottom: 1px solid #e5e5e5;
}

.media-subnav-mobile-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #111;
}

.media-subnav-mobile-top a + a {
  border-left: 1px solid #e5e5e5;
}

.media-mobile-chevron {
  width: 20px;
  height: 20px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.media-subnav-mobile-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.media-subnav-mobile-tools a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #111;
}

.media-subnav-mobile-tools a + a {
  border-left: 1px solid #e5e5e5;
}

.media-subnav-mobile-tools .media-tool-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

  /* ÚLTIMAS */

  .media-latest {
    padding: 38px 0 42px;
  }

.media-latest-layout {
  display: flex;
  flex-direction: column;
}

.media-section-intro {
  display: contents;
}

.media-section-intro .media-eyebrow {
  order: 1;
  margin: 0 0 18px;
}

.media-section-intro h2 {
  order: 2;
  margin: 0 0 28px;
  font-size: 40px;
}

.media-photo-grid {
  order: 3;
}

.media-section-intro .media-text-link {
  order: 4;
  align-self: flex-start;
  margin: 24px 0 0;
}

  .media-photo-grid {
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows:
      390px
      205px
      205px;
  }
	
.media-grid-a,
.media-grid-b,
.media-grid-c {
  grid-template-columns: 1fr 1fr;
  grid-template-rows:
    360px
    190px
    190px;
}

.media-grid-a .media-photo-1,
.media-grid-b .media-photo-1,
.media-grid-c .media-photo-1 {
  grid-column: 1 / 3;
  grid-row: 1;
}

.media-grid-a .media-photo-2,
.media-grid-b .media-photo-2,
.media-grid-c .media-photo-2 {
  grid-column: 1;
  grid-row: 2;
}

.media-grid-a .media-photo-3,
.media-grid-b .media-photo-3,
.media-grid-c .media-photo-3 {
  grid-column: 2;
  grid-row: 2;
}

.media-grid-a .media-photo-4,
.media-grid-b .media-photo-4,
.media-grid-c .media-photo-4 {
  grid-column: 1;
  grid-row: 3;
}

.media-grid-a .media-photo-5,
.media-grid-b .media-photo-5,
.media-grid-c .media-photo-5 {
  grid-column: 2;
  grid-row: 3;
}

  .media-photo-main {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .media-photo-top {
    grid-column: 1;
    grid-row: 2;
  }

  .media-photo-right-top {
    grid-column: 2;
    grid-row: 2;
  }

  .media-photo-bottom {
    grid-column: 1;
    grid-row: 3;
  }

  .media-photo-right-bottom {
    grid-column: 2;
    grid-row: 3;
  }


/* DÍAS */

.media-days-layout {
  display: block;
}

.media-small-title {
  padding: 28px 0 20px;
}

.media-days-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  overflow: visible;
}

.media-day-card {
  width: 100%;
  height: 130px;
  padding: 24px 18px;
  border-left: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

/* Primera columna: sin borde izquierdo */
.media-day-card:nth-child(odd) {
  border-left: none;
}

/* Segunda columna: mantiene borde izquierdo */
.media-day-card:nth-child(even) {
  border-left: 1px solid #ddd;
}

/* Última fila: sin borde inferior */
.media-day-card:nth-last-child(1),
.media-day-card:nth-last-child(2) {
  border-bottom: none;
}
	
	.media-day-card:nth-child(n+6) {

  border-bottom: 1px solid #ddd;

}

.media-day-card:nth-child(5n+1) {

  border-left: 1px solid #ddd;

}

.media-day-card:nth-child(odd) {

  border-left: none;

}

.media-day-card:nth-last-child(1),

.media-day-card:nth-last-child(2) {

  border-bottom: none;

}

.media-day-card strong {
  font-size: 30px;
}

.media-day-card span {
  font-size: 12px;
}

.media-day-card small {
  font-size: 11px;
}

.media-day-previos {
  width: 100%;
  height: 130px;
  padding: 24px 18px;
}

.media-day-previos .media-day-previos-title {
  font-size: 16px;
}


/* RETRATOS */

.media-portraits {
  padding: 34px 0 40px;
}

.media-portraits-heading {
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 16px;
}

.media-portraits-inner {
  padding-left: 8px;
  padding-right: 8px;
}

.media-portraits-title {
  padding: 0;
}

.media-portraits-total {
  gap: 5px;
}

.media-portraits-total strong {
  font-size: 18px;
}

.media-portraits-total span {
  font-size: 9px;
}

.media-portraits-total b {
  margin-left: 2px;
  font-size: 16px;
}

.media-portraits-grid {
  display: flex;
  width: 100%;
  height: 260px;
  gap: 3px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.media-portraits-grid::-webkit-scrollbar {
  display: none;
}

.media-portrait-card {
  flex: 0 0 170px;
  width: 170px;
  height: 260px;
  scroll-snap-align: start;
}

.media-portrait-shade {
  opacity: .68;
}

.media-portrait-info {
  left: 11px;
  right: 11px;
  bottom: 10px;
  opacity: 1;
  transform: none;
}

.media-portrait-movie {
  font-size: 9px;
}

.media-portrait-name {
  font-size: 12px;
}

.media-portrait-copyright {
  margin-top: 5px;
  font-size: 8px;
}


/* CATEGORÍAS */


.media-categories {
  padding: 38px 0 45px;
}

.media-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}

.media-category-card {
  width: 100%;
  height: 250px;
  padding: 16px;
}

/* La quinta categoría ocupa todo el ancho */
.media-category-card:nth-child(5) {
  grid-column: 1 / 3;
  height: 280px;
}

.media-category-card h3 {
  font-size: 18px;
  line-height: 1.05;
}

.media-category-footer {
  font-size: 11px;
}

.media-category-footer b {
  font-size: 20px;
}

  /* CIERRE */

  .media-all {
    padding: 32px 0 36px;
  }

  .media-all-link {
    gap: 18px;
  }

  .media-all-link span {
    font-size: 34px;
  }


/* ANCLAS */

.media-anchor {

  top: -100px;

}

}

/* ==========================================================
   FILTROS MEDIA · ENTRADA AL ARCHIVE
   Día · Categoría · Película · Sección · Tipo
========================================================== */

.media-home-filters {
  position: relative;
  z-index: 20;
  padding: 28px 0 30px;
  background: #fff;
  border-bottom: 1px solid var(--media-border-light);
}

.media-home-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid #dedede;
  border-left: 1px solid #dedede;
}

.media-home-filter-wrap {
  position: relative;
  min-width: 0;
}

.media-home-filter-trigger {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  padding: 12px 38px 12px 16px;
  border: 0;
  border-right: 1px solid #dedede;
  border-bottom: 1px solid #dedede;
  border-radius: 0;
  background: #fff;
  color: #111;
  text-align: left;
  cursor: pointer;
}

.media-home-filter-trigger > span {
  margin-bottom: 5px;
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  opacity: .55;
}

.media-home-filter-trigger > b {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-home-filter-trigger > i {
  position: absolute;
  top: 50%;
  right: 16px;
  margin-top: -9px;
  font-size: 17px;
  line-height: 18px;
  font-style: normal;
  font-weight: 400;
}

.media-home-filter-trigger:hover,
.media-home-filter-trigger[aria-expanded="true"] {
  background: #f3f3f3;
}

.media-home-dropdown {
  position: absolute;
  z-index: 50;
  top: calc(100% - 1px);
  left: 0;
  display: none;
  width: max-content;
  min-width: 100%;
  max-width: min(420px, calc(100vw - 36px));
  max-height: 390px;
  overflow-y: auto;
  border: 1px solid #d8d8d8;
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .09);
}

.media-home-dropdown.is-open {
  display: block;
}

.media-home-dropdown a,
.media-home-dropdown-option {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #ededed;
  border-radius: 0;
  background: #fff;
  color: #111;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
}

.media-home-dropdown a:last-child,
.media-home-dropdown-option:last-child {
  border-bottom: 0;
}

.media-home-dropdown a:hover,
.media-home-dropdown-option:hover,
.media-home-dropdown a.active,
.media-home-dropdown-option.active {
  background: #f3f3f3;
}

.media-home-dropdown small {
  flex: 0 0 auto;
  font-size: 10px;
  opacity: .55;
}

.media-home-dropdown-movies {
  width: min(500px, calc(100vw - 36px));
}

.media-home-dropdown-search {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 10px;
  border-bottom: 1px solid #dedede;
  background: #fff;
}

.media-home-dropdown-search input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: 0;
  outline: none;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 12px;
}

.media-home-movie-option {
  align-items: flex-start;
}

.media-home-movie-title {
  min-width: 0;
}

.media-home-movie-section {
  padding-top: 1px;
  white-space: nowrap;
}

.media-home-search {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin-top: 14px;
}

.media-home-search-input {
  appearance: none;
  -webkit-appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 1px solid #cfcfcf;
  border-right: 0;
  border-radius: 0;
  outline: none;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 14px;
}

.media-home-search-input::placeholder {
  color: #777;
  opacity: 1;
}

.media-home-search-input:focus {
  border-color: #111;
}

.media-home-search-submit {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 52px;
  padding: 0;
  border: 1px solid #111;
  border-radius: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
}

.media-home-search-submit:hover {
  background: #333;
}

.media-home-search-submit .media-tool-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}


@media (max-width: 1199px) {

  .media-home-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}


@media (max-width: 767px) {

  .media-home-filters {
    padding: 18px 0 20px;
  }

  .media-home-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .media-home-filter-wrap:last-child {
    grid-column: auto;
  }

  .media-home-filter-trigger {
    min-height: 66px;
    padding-left: 13px;
    padding-right: 34px;
  }

  .media-home-filter-trigger > i {
    right: 12px;
  }

  .media-home-dropdown {
    position: fixed;
    z-index: 1000;
    top: auto;
    left: 18px;
    right: 18px;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: 55vh;
  }

  .media-home-dropdown.is-open {
    display: block;
  }

  .media-home-search {
    margin-top: 10px;
  }

  .media-home-search-input {
    height: 48px;
    padding: 0 14px;
  }

  .media-home-search-submit {
    width: 52px;
    height: 48px;
  }

}

