.smedia-functions {
  --sm-accent: #c51f35;
  --sm-text: #171717;
  --sm-muted: #6b7280;
  --sm-border: #e7e7e7;
  --sm-surface: #fff;
  color: var(--sm-text);
  font-family: inherit;
  margin: 28px 0;
}
.smedia-functions__header { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:16px; }
.smedia-functions__eyebrow { margin:0 0 5px; color:var(--sm-accent); font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.smedia-functions__title { margin:0; font-size:clamp(25px,3vw,38px); line-height:1.08; }
.smedia-functions__count { color:var(--sm-muted); font-size:14px; white-space:nowrap; }
.smedia-functions__list { display:grid; gap:10px; }
.smedia-function { display:grid; grid-template-columns:minmax(150px,1.5fr) minmax(90px,.7fr) minmax(120px,.9fr) auto; align-items:center; gap:18px; padding:17px 18px; background:var(--sm-surface); border:1px solid var(--sm-border); border-radius:14px; box-shadow:0 4px 14px rgba(0,0,0,.035); }
.smedia-function__date,.smedia-function__time,.smedia-function__price { display:flex; flex-direction:column; gap:3px; }
.smedia-function__day { font-size:17px; font-weight:800; }
.smedia-function__full-date,.smedia-function__label { color:var(--sm-muted); font-size:13px; }
.smedia-function__button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 18px; border-radius:999px; background:var(--sm-accent); color:#fff !important; font-weight:800; text-decoration:none !important; transition:transform .15s ease, opacity .15s ease; }
.smedia-function__button:hover,.smedia-function__button:focus { transform:translateY(-1px); opacity:.9; }
.smedia-functions__admin-note { margin:10px 0 0; color:var(--sm-muted); font-size:12px; }
.smedia-functions--empty,.smedia-functions--notice { padding:18px; border:1px solid var(--sm-border); border-radius:12px; background:#fafafa; }
.smedia-functions--empty p { margin:6px 0 0; color:var(--sm-muted); }
@media (max-width: 760px) {
  .smedia-functions__header { align-items:flex-start; flex-direction:column; gap:6px; }
  .smedia-function { grid-template-columns:1fr 1fr; gap:14px; }
  .smedia-function__date { grid-column:1 / -1; padding-bottom:10px; border-bottom:1px solid var(--sm-border); }
  .smedia-function__action { grid-column:1 / -1; }
  .smedia-function__button { width:100%; }
}

.smedia-function--oculta { display:none; }
.smedia-functions__more-wrap { display:flex; justify-content:center; margin-top:16px; }
.smedia-functions__more { appearance:none; border:1px solid var(--sm-accent); border-radius:999px; background:#fff; color:var(--sm-accent); cursor:pointer; font:inherit; font-weight:800; min-height:44px; padding:10px 22px; }
.smedia-functions__more:hover,.smedia-functions__more:focus { background:var(--sm-accent); color:#fff; }

/* Agenda web: acabado definitivo v0.16.77 */
.smedia-function__promotion {
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  margin-top:3px;
  padding:3px 8px;
  border-radius:999px;
  background:#fff1f1;
  color:#B80000;
  font-size:13px;
  font-weight:800;
  line-height:1.25;
}
.smedia-function__button {
  background:#B80000;
  color:#fff !important;
}
.smedia-function__button:hover,
.smedia-function__button:focus {
  background:#FF0000;
  color:#fff !important;
  opacity:1;
}
.smedia-functions__more {
  background:#fff;
  color:#B80000;
  border-color:#B80000;
}
.smedia-functions__more:hover,
.smedia-functions__more:focus {
  background:#FF0000;
  border-color:#FF0000;
  color:#fff;
}

/* Ajustes agenda v0.16.77 */
.smedia-functions__more:hover,
.smedia-functions__more:focus {
  background:#B80000;
  border-color:#B80000;
  color:#fff;
}

/* Agenda compacta v0.16.77 */
.smedia-functions__eyebrow {
  color:#B80000;
}

.smedia-functions__list {
  gap:10px;
}

.smedia-function {
  grid-template-columns:minmax(150px,1.25fr) minmax(90px,.65fr) minmax(150px,1fr) minmax(125px,.9fr) auto;
  gap:18px;
  padding:18px 18px;
}

.smedia-function__time,
.smedia-function__price {
  font-size:15px;
  line-height:1.25;
}

.smedia-function__promotion {
  justify-self:start;
  margin-top:0;
  padding:5px 10px;
  font-size:15px;
  font-weight:800;
}

.smedia-function__button {
  min-height:42px;
  padding:9px 17px;
  white-space:nowrap;
}

@media (max-width: 760px) {
  .smedia-functions {
    margin:18px 0;
  }

  .smedia-functions__header {
    gap:8px;
    margin-bottom:12px;
  }

  .smedia-functions__title {
    font-size:28px;
  }

  .smedia-functions__list {
    gap:8px;
  }

  .smedia-function {
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "date time"
      "price promo"
      "button button";
    gap:7px 12px;
    padding:13px 14px;
    border-radius:14px;
  }

  .smedia-function__date {
    grid-area:date;
  }

  .smedia-function__time {
    grid-area:time;
    align-self:center;
    text-align:right;
    white-space:nowrap;
  }

  .smedia-function__price {
    grid-area:price;
    align-self:center;
    white-space:nowrap;
  }

  .smedia-function__promotion {
    grid-area:promo;
    justify-self:end;
    align-self:center;
    font-size:14px;
    padding:4px 8px;
    white-space:nowrap;
  }

  .smedia-function__cta {
    grid-area:button;
    justify-self:start;
    margin-top:2px;
  }

  .smedia-function__button {
    min-height:36px;
    padding:7px 13px;
    font-size:14px;
  }

  .smedia-functions__more-wrap {
    margin-top:10px;
  }

  .smedia-functions__more {
    min-height:38px;
    padding:7px 16px;
    font-size:14px;
  }
}

@media (max-width: 390px) {
  .smedia-function {
    gap:6px 8px;
    padding:12px;
  }

  .smedia-function__promotion {
    font-size:13px;
    padding:4px 7px;
  }

  .smedia-function__price,
  .smedia-function__time {
    font-size:14px;
  }
}

/* Precio integrado en CTA v0.16.77 */
.smedia-function {
  grid-template-columns:minmax(150px,1.25fr) minmax(90px,.65fr) minmax(150px,1fr) auto;
}

.smedia-function__button {
  padding-left:18px;
  padding-right:18px;
}

@media (max-width:760px) {
  .smedia-function {
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "date time"
      "promo promo"
      "button button";
  }

  .smedia-function__promotion {
    grid-area:promo;
    justify-self:start;
  }

  .smedia-function__cta {
    grid-area:button;
    justify-self:start;
  }

  .smedia-function__button {
    padding-left:13px;
    padding-right:13px;
  }
}

@media (max-width:760px) {
  .smedia-function__action {
    grid-area:button;
    justify-self:start;
  }
}

/* Ajuste móvil final según cambios.jpg — v0.16.77 */
.smedia-function__button-title { font-weight:800; }
.smedia-function__button-price { font-weight:400; }

@media (max-width:760px) {
  .smedia-function {
    display:grid;
    grid-template-columns:minmax(0,1.45fr) minmax(72px,.65fr) auto;
    grid-template-areas:
      "date time promo"
      "button button button";
    column-gap:10px;
    row-gap:10px;
    padding:13px 14px;
    align-items:center;
  }

  .smedia-function__date { grid-area:date; min-width:0; }

  .smedia-function__time {
    grid-area:time;
    justify-self:center;
    align-self:center;
    text-align:center;
    white-space:nowrap;
  }

  .smedia-function__price {
    grid-area:promo;
    justify-self:end;
    align-self:center;
    min-width:0;
  }

  .smedia-function__promotion {
    margin:0;
    justify-self:end;
    align-self:center;
    white-space:nowrap;
  }

  .smedia-function__action {
    grid-area:button;
    justify-self:stretch;
    width:100%;
    margin:0;
  }

  .smedia-function__button {
    display:flex;
    width:100%;
    min-height:36px;
    box-sizing:border-box;
    align-items:center;
    justify-content:center;
    padding:7px 12px;
    font-size:14px;
    line-height:1.2;
    text-align:center;
  }
}

@media (max-width:390px) {
  .smedia-function {
    grid-template-columns:minmax(0,1.35fr) minmax(65px,.6fr) auto;
    column-gap:7px;
    padding:12px;
  }

  .smedia-function__promotion {
    font-size:12px;
    padding:4px 6px;
  }

  .smedia-function__time { font-size:13px; }
  .smedia-function__button { font-size:13px; }
}

/* Últimos ajustes agenda v0.16.77 */
.smedia-function__button-price {
  margin-left:4px;
}

@media (max-width:760px) {
  .smedia-function__time .smedia-function__label {
    display:none;
  }
}

/* Agenda: bloques negros v0.16.77 */
.smedia-function {
  background:#000;
  color:#fff;
}

.smedia-function__date strong,
.smedia-function__date span,
.smedia-function__time,
.smedia-function__time strong {
  color:#fff;
}

.smedia-function__date::after {
  border-color:rgba(255,255,255,.18);
}

/* Mantener la promoción con su tratamiento rojo/rosa actual */
.smedia-function__promotion {
  color:#B80000;
}

/* Mantener botones de compra tal como estaban */
.smedia-function__button {
  color:#fff !important;
}

/* Ajustes agenda negra v0.16.77 */

/* Escritorio: etiqueta Hora en blanco */
@media (min-width:761px) {
  .smedia-function__time .smedia-function__label {
    color:#fff;
  }
}

/* Móvil: eliminar la línea/separador claro dentro de la tarjeta */
@media (max-width:760px) {
  .smedia-function__date,
  .smedia-function__date::before,
  .smedia-function__date::after,
  .smedia-function__time,
  .smedia-function__price {
    border-bottom:none !important;
  }

  .smedia-function__date::before,
  .smedia-function__date::after {
    content:none !important;
    display:none !important;
  }
}

/* Corrección carga progresiva en móvil v0.16.77 */
@media (max-width:760px) {
  .smedia-function.smedia-function--oculta {
    display:none !important;
  }
}

/* Botones de compra con ancho uniforme v0.16.77 */
@media (min-width:761px) {
  .smedia-function__action {
    display:flex;
    justify-content:flex-end;
  }

  .smedia-function__button {
    width:285px;
    max-width:100%;
    box-sizing:border-box;
    justify-content:center;
    text-align:center;
  }
}

@media (max-width:760px) {
  .smedia-function__button {
    width:100%;
    max-width:none;
  }
}


/* Cartelera mensual por teatro v0.16.77 */
.smedia-theatre-program {
  --sm-program-red:#B80000;
  margin:24px 0;
  transition:opacity .18s ease;
}
.smedia-theatre-program--loading { opacity:.55; pointer-events:none; }
.smedia-theatre-program__head { margin-bottom:14px; }
.smedia-theatre-program__current {
  display:inline-block;
  margin-bottom:10px;
  padding:4px 10px;
  border-radius:999px;
  background:#aaa;
  color:#fff;
  font-size:11px;
  font-weight:700;
  line-height:1.2;
}
.smedia-theatre-program__month-row {
  display:flex;
  align-items:center;
  gap:12px;
}
.smedia-theatre-program__month {
  margin:0;
  color:#171717;
  font-size:38px;
  font-weight:900;
  line-height:1;
  letter-spacing:.01em;
}
.smedia-theatre-program__nav { display:flex; gap:7px; }
.smedia-theatre-program__nav button {
  display:flex;
  width:38px;
  height:38px;
  align-items:center;
  justify-content:center;
  padding:0 0 3px;
  border:1px solid #aaa;
  border-radius:50%;
  background:#fff;
  color:#333;
  cursor:pointer;
  font-size:28px;
  font-weight:300;
  line-height:1;
}
.smedia-theatre-program__nav button:hover,
.smedia-theatre-program__nav button:focus {
  border-color:var(--sm-program-red);
  background:var(--sm-program-red);
  color:#fff;
}
.smedia-theatre-program__list {
  display:flex;
  flex-direction:column;
  gap:8px;
}
.smedia-theatre-show {
  position:relative;
  display:grid;
  grid-template-columns:126px minmax(0,1fr) 28px;
  gap:20px;
  min-height:146px;
  align-items:center;
  padding:16px 18px;
  overflow:hidden;
  border-radius:14px;
  background:#000;
  color:#fff !important;
  text-decoration:none !important;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
  transition:transform .16s ease, box-shadow .16s ease;
}
.smedia-theatre-show::before {
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px;
  background:var(--sm-program-red);
}
.smedia-theatre-show:hover,
.smedia-theatre-show:focus {
  color:#fff !important;
  transform:translateY(-1px);
  box-shadow:0 7px 20px rgba(0,0,0,.16);
}
.smedia-theatre-show__image {
  display:block;
  width:126px;
  height:126px;
  overflow:hidden;
  border-radius:10px;
  background:#171717;
}
.smedia-theatre-show__image img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.smedia-theatre-show__content {
  display:flex;
  min-width:0;
  flex-direction:column;
  align-items:flex-start;
}
.smedia-theatre-show__dates {
  margin-bottom:5px;
  color:#ff4a4a;
  font-size:14px;
  font-weight:900;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.smedia-theatre-show__title {
  color:#fff;
  font-size:24px;
  font-weight:900;
  line-height:1.08;
}
.smedia-theatre-show__meta {
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  margin-top:9px;
  color:#ddd;
  font-size:13px;
}
.smedia-theatre-show__meta span + span::before {
  content:"•";
  margin-right:16px;
  color:#777;
}
.smedia-theatre-show__arrow {
  color:#fff;
  font-size:38px;
  font-weight:200;
  line-height:1;
  opacity:.72;
}
.smedia-theatre-program__empty {
  padding:18px 20px;
  border:1px solid #e2e2e2;
  border-radius:12px;
  background:#fafafa;
}

@media (max-width:760px) {
  .smedia-theatre-program { margin:18px 0; }
  .smedia-theatre-program__month-row { gap:9px; }
  .smedia-theatre-program__month { font-size:27px; }
  .smedia-theatre-program__nav button {
    width:32px;
    height:32px;
    font-size:23px;
  }
  .smedia-theatre-show {
    grid-template-columns:82px minmax(0,1fr) 18px;
    gap:12px;
    min-height:104px;
    padding:11px 12px;
    border-radius:12px;
  }
  .smedia-theatre-show__image {
    width:82px;
    height:82px;
    border-radius:8px;
  }
  .smedia-theatre-show__dates {
    margin-bottom:3px;
    font-size:11px;
  }
  .smedia-theatre-show__title {
    font-size:17px;
    line-height:1.08;
  }
  .smedia-theatre-show__meta {
    display:block;
    margin-top:5px;
    font-size:11px;
    line-height:1.35;
  }
  .smedia-theatre-show__meta span { display:block; }
  .smedia-theatre-show__meta span + span::before {
    content:none;
    margin:0;
  }
  .smedia-theatre-show__arrow { font-size:28px; }
}

@media (max-width:390px) {
  .smedia-theatre-show {
    grid-template-columns:72px minmax(0,1fr);
  }
  .smedia-theatre-show__image {
    width:72px;
    height:72px;
  }
  .smedia-theatre-show__arrow { display:none; }
}

/* Cartelera teatro refinada v0.16.77 */
.smedia-theatre-program__month-row {
  align-items:center;
}
.smedia-theatre-program__titles {
  display:flex;
  flex-direction:column;
  gap:3px;
}
.smedia-theatre-program__month {
  font-size:32px;
  font-weight:500;
  letter-spacing:0;
}
.smedia-theatre-program__theatre {
  margin:0;
  color:#6b7280;
  font-size:14px;
  font-weight:500;
}
.smedia-theatre-show {
  background:#B80000;
}
.smedia-theatre-show--promo {
  background:#000;
}
.smedia-theatre-show::before {
  display:none;
}
.smedia-theatre-show__dates {
  color:#fff;
  font-weight:700;
}
.smedia-theatre-show__title {
  font-weight:700;
}
.smedia-theatre-show__meta {
  color:rgba(255,255,255,.88);
}
.smedia-theatre-show__commercial {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
  align-items:center;
}
.smedia-theatre-show__price {
  color:#fff;
  font-size:13px;
  font-weight:600;
}
.smedia-theatre-show__promo {
  display:inline-flex;
  align-items:center;
  padding:4px 9px;
  border-radius:999px;
  background:#fff1f1;
  color:#B80000;
  font-size:13px;
  font-weight:800;
  line-height:1.2;
}
.smedia-theatre-show:hover,
.smedia-theatre-show:focus {
  filter:brightness(1.04);
}

@media (max-width:760px) {
  .smedia-theatre-program__month {
    font-size:24px;
    font-weight:500;
  }
  .smedia-theatre-program__theatre {
    font-size:12px;
  }
  .smedia-theatre-show__title {
    font-size:17px;
    font-weight:700;
  }
  .smedia-theatre-show__commercial {
    gap:6px;
    margin-top:6px;
  }
  .smedia-theatre-show__price,
  .smedia-theatre-show__promo {
    font-size:11px;
  }
  .smedia-theatre-show__promo {
    padding:3px 7px;
  }
}

/* Ajustes cartelera teatro v0.16.77 */
.smedia-theatre-program__theatre {
  font-size:17px;
  font-weight:600;
  color:#4b5563;
}
.smedia-theatre-show__meta span:first-child {
  font-weight:700;
  color:#fff;
}

@media (max-width:760px) {
  .smedia-theatre-program__theatre {
    font-size:14px;
    font-weight:600;
  }
}

/* Cabecera cartelera teatro según maqueta v0.16.77 */
.smedia-theatre-program__month-row {
  align-items:flex-end;
}

.smedia-theatre-program__titles {
  gap:5px;
}

.smedia-theatre-program__theatre {
  color:#B80000;
  font-size:20px;
  font-weight:600;
  line-height:1.15;
}

.smedia-theatre-program__nav {
  align-self:flex-end;
  margin-bottom:0;
}

@media (max-width:760px) {
  .smedia-theatre-program__month-row {
    align-items:flex-end;
  }

  .smedia-theatre-program__theatre {
    font-size:17px;
  }

  .smedia-theatre-program__nav {
    align-self:flex-end;
  }
}

/* Afinado cabecera cartelera teatro v0.16.77 */
.smedia-theatre-program__titles {
  gap:1px;
}

.smedia-theatre-program__theatre {
  margin:0 0 1px 0;
  font-size:22px;
  font-weight:700;
  line-height:1.05;
}

@media (max-width:760px) {
  .smedia-theatre-program__titles {
    gap:1px;
  }

  .smedia-theatre-program__theatre {
    margin-bottom:1px;
    font-size:19px;
    font-weight:700;
    line-height:1.05;
  }
}
