/* ============================================================
   MÁS METROS — Sección Creadores de Contenido (Videos)
   Estilos aislados con prefijo .mm-video-showcase
============================================================ */

.mm-video-showcase {
  --bg-color: #1F3860;
  --card-bg: #172B4C;
  --text-light: #FFFFFF;
  --text-muted: #A2B2CB;
  --orange: #FF6200;
  --orange-glow: rgba(255, 98, 0, 0.4);
  --font: 'Hanken Grotesk', system-ui, sans-serif;
  --radius: 16px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  font-family: var(--font);
  background-color: var(--bg-color);
  color: var(--text-light);
  line-height: 1.5;
  padding: 80px 0;
  overflow: hidden;
}

.mm-video-showcase * { box-sizing: border-box; }
.mm-video-showcase img { display: block; max-width: 100%; object-fit: cover; }
.mm-video-showcase a { text-decoration: none; color: inherit; }

.mm-video-showcase .wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Encabezado --- */
.mm-video-showcase .header-bar { margin-bottom: 45px; }

.mm-video-showcase .header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.mm-video-showcase .eyebrow {
  display: flex; align-items: center;
  font-weight: 500; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.mm-video-showcase .eyebrow::before {
  content: ""; display: block;
  width: 4px; height: 16px;
  background: var(--orange);
  margin-right: 12px; border-radius: 2px;
}

.mm-video-showcase h2 {
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-light);
}

/* Sin encabezado (encabezado="no"): solo la fila de flechas */
.mm-video-showcase .header-bar.is-arrows-only { margin-bottom: 20px; }
.mm-video-showcase .header-bar.is-arrows-only .header-row { justify-content: flex-end; }

/* --- Flechas del carrusel --- */
.mm-video-showcase .mmv-arrows { display: flex; gap: 10px; flex: 0 0 auto; }

.mm-video-showcase .mmv-arrow,
.mm-video-showcase .mmv-arrow:focus,
.mm-video-showcase .mmv-arrow:active {
  width: 42px !important; height: 42px !important;
  min-width: 0 !important; min-height: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  background: rgba(255,255,255,0.06) !important;
  background-image: none !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  text-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0 !important;
  margin: 0;
  font-size: 0;
  outline: none;
  transition: background-color .25s ease, border-color .25s ease, opacity .25s ease;
}
.mm-video-showcase .mmv-arrow svg { width: 22px !important; height: 22px !important; fill: currentColor !important; display: block; pointer-events: none; }
.mm-video-showcase .mmv-arrow:hover {
  background: #FF6200 !important;
  border-color: #FF6200 !important;
}
.mm-video-showcase .mmv-arrow:focus-visible { box-shadow: 0 0 0 3px rgba(255,98,0,0.55) !important; }
.mm-video-showcase .mmv-arrow[disabled] { opacity: .3; cursor: default; }
.mm-video-showcase .mmv-arrow[disabled]:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.18) !important;
}

/* --- Cuadrícula --- */
.mm-video-showcase .videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Modo carrusel (más de 4 videos) */
.mm-video-showcase.is-carousel .videos-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.mm-video-showcase.is-carousel .videos-grid::-webkit-scrollbar { display: none; }
.mm-video-showcase.is-carousel .video-card {
  flex: 0 0 calc((100% - 72px) / 4);
  scroll-snap-align: start;
}

/* --- Tarjeta --- */
.mm-video-showcase .video-card {
  position: relative;
  background-color: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 9/16;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
  transform: translateY(0);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
  cursor: pointer;
}

.mm-video-showcase .video-card .mmv-media {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--card-bg);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}

.mm-video-showcase .video-card:hover,
.mm-video-showcase .video-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  border-color: rgba(255,98,0,0.4);
  outline: none;
}
.mm-video-showcase .video-card:hover .mmv-media { transform: scale(1.05); }
.mm-video-showcase .video-card:focus-visible { box-shadow: 0 0 0 3px var(--orange); }

/* Overlay */
.mm-video-showcase .video-overlay {
  position: relative;
  z-index: 2;
  height: 60%;
  background: linear-gradient(to top, rgba(11,23,42,0.95) 0%, rgba(11,23,42,0.6) 60%, rgba(11,23,42,0) 100%);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}
.mm-video-showcase .video-overlay a { pointer-events: auto; }

/* Botón play */
.mm-video-showcase .card-play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 50px; height: 50px;
  background-color: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px var(--orange-glow);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
  z-index: 3;
  pointer-events: none;
}
.mm-video-showcase .card-play-icon svg { width: 20px; height: 20px; fill: #fff; margin-left: 2px; }
.mm-video-showcase .video-card:hover .card-play-icon,
.mm-video-showcase .video-card:focus-visible .card-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.mm-video-showcase .creator-handle {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 4px;
  align-self: flex-start;
  transition: opacity .2s ease;
}
a.mm-video-showcase-handle:hover,
.mm-video-showcase a.creator-handle:hover { opacity: .75; text-decoration: underline; }

.mm-video-showcase .video-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-light);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

/* ============================================================
   MODAL
============================================================ */
.mmv-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  padding: 24px;
}
.mmv-modal.is-open { display: flex; }

.mmv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 33, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: mmvFade .25s ease;
}

.mmv-modal__box {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-height: 100%;
  animation: mmvUp .35s cubic-bezier(0.25, 1, 0.5, 1);
}

.mmv-modal__player {
  position: relative;
  width: min(420px, 92vw);
  aspect-ratio: 9/16;
  max-height: 78vh;
  border-radius: 16px;
  overflow: hidden;
  background: #0B172A;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}
.mmv-modal__player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0B172A;
}

.mmv-modal__meta {
  text-align: center;
  max-width: min(420px, 92vw);
  color: #fff;
}
.mmv-modal__handle {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #FF6200;
  margin-bottom: 4px;
}
.mmv-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

/* Botón cerrar — blindado contra los estilos de botón del tema.
   Sin !important, temas como Astra/Hello/OceanWP lo pintan con su color
   de botón (rosa/rojo) durante el primer pintado y en :focus. */
.mmv-modal .mmv-modal__close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px  !important;
  height: 40px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  background: rgba(255,255,255,0.08) !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  -webkit-appearance: none;
  appearance: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  transition: background-color .25s ease, border-color .25s ease;
}

/* Estados que el tema suele secuestrar: los devolvemos al estado base. */
.mmv-modal .mmv-modal__close:focus,
.mmv-modal .mmv-modal__close:focus-visible,
.mmv-modal .mmv-modal__close:active,
.mmv-modal .mmv-modal__close:visited {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.2) !important;
  color: #fff !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Único cambio de color permitido: el hover naranja. */
.mmv-modal .mmv-modal__close:hover {
  background: #FF6200 !important;
  border-color: #FF6200 !important;
  color: #fff !important;
}

/* Anillo de foco accesible, con nuestro color. */
.mmv-modal .mmv-modal__close:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,98,0,0.55) !important;
}

.mmv-modal .mmv-modal__close svg {
  width: 22px !important;
  height: 22px !important;
  fill: currentColor !important;
  display: block;
  pointer-events: none;
}

.mmv-modal__box:focus { outline: none; }

body.mmv-modal-open { overflow: hidden; }

@keyframes mmvFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mmvUp { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVO
============================================================ */
@media (max-width: 1024px) {
  .mm-video-showcase .wrap { padding: 0 24px; }
  .mm-video-showcase .mmv-arrows { display: none; }

  .mm-video-showcase .videos-grid,
  .mm-video-showcase.is-carousel .videos-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    gap: 16px;
  }
  .mm-video-showcase .videos-grid::-webkit-scrollbar { height: 6px; }
  .mm-video-showcase .videos-grid::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
    border-radius: 10px;
  }
  .mm-video-showcase .video-card,
  .mm-video-showcase.is-carousel .video-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
  }
}

@media (max-width: 600px) {
  .mm-video-showcase { padding: 60px 0; }
  .mm-video-showcase .video-card,
  .mm-video-showcase.is-carousel .video-card { flex: 0 0 220px; }
  .mmv-modal .mmv-modal__close { top: auto; bottom: -52px; right: 50%; transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
  .mm-video-showcase .video-card,
  .mm-video-showcase .mmv-media,
  .mm-video-showcase .card-play-icon { transition: none; }
  .mmv-modal__box, .mmv-modal__backdrop { animation: none; }
}

/* ============================================================
   MÁS METROS — Sección Redes Sociales (Instagram · TikTok · YouTube)
============================================================ */

.mm-social {
  --bg-color: #1F3860;
  --card-bg: #172B4C;
  --text-light: #FFFFFF;
  --text-muted: #A2B2CB;
  --orange: #FF6200;
  --font: 'Hanken Grotesk', system-ui, sans-serif;
  --radius-reel: 14px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  font-family: var(--font);
  background-color: var(--bg-color);
  color: var(--text-light);
  line-height: 1.5;
  padding: 80px 0;
  overflow: hidden;
}

.mm-social * { box-sizing: border-box; }
.mm-social img { display: block; max-width: 100%; object-fit: cover; }
.mm-social a { text-decoration: none; color: inherit; }

.mm-social .wrap { max-width: 1140px; margin: 0 auto; padding: 0 40px; }

/* --- Encabezado --- */
.mm-social .mms-block { margin-bottom: 56px; }
.mm-social .mms-block:last-of-type { margin-bottom: 24px; }

.mm-social .header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 20px;
}

.mm-social .eyebrow {
  display: flex; align-items: center;
  font-weight: 500; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.mm-social .eyebrow::before {
  content: ""; display: block;
  width: 4px; height: 16px;
  background: var(--orange);
  margin-right: 12px; border-radius: 2px;
}

.mm-social .mms-eyebrow-ico {
  display: inline-flex;
  align-items: center;
  margin-right: 7px;
}
.mm-social .mms-eyebrow-ico svg {
  width: 15px; height: 15px;
  fill: currentColor;
  display: block;
  opacity: .9;
}
.mm-social .mms-eyebrow-ico--instagram { color: #E1306C; }
.mm-social .mms-eyebrow-ico--tiktok    { color: #FFFFFF; }
.mm-social .mms-eyebrow-ico--youtube   { color: #FF0000; }

.mm-social h2 {
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-light);
}

.mm-social .mms-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}

.mm-social .social-links {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  padding-bottom: 2px;
}
.mm-social .social-links a {
  transition: color .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mm-social .social-links a:hover { color: var(--orange); }
.mm-social .mms-dot { opacity: .6; }

/* --- Galería --- */
.mm-social .reels-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.mm-social .mms-block.is-carousel .reels-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.mm-social .mms-block.is-carousel .reels-grid::-webkit-scrollbar { display: none; }
.mm-social .mms-block.is-carousel .reel-card {
  flex: 0 0 calc((100% - 80px) / 5);
  scroll-snap-align: start;
}

.mm-social .reel-card {
  position: relative;
  border-radius: var(--radius-reel);
  overflow: hidden;
  aspect-ratio: 9/16;
  background-color: var(--card-bg);
  display: block;
  transform: translateY(0);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  cursor: pointer;
}

.mm-social .reel-card img {
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease);
}

.mm-social .reel-card:hover,
.mm-social .reel-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  outline: none;
}
.mm-social .reel-card:hover img { transform: scale(1.05); }
.mm-social .reel-card:focus-visible { box-shadow: 0 0 0 3px var(--orange); }

.mm-social .mms-noimg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Badge de plataforma */
.mm-social .mms-badge {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,23,42,0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  transition: background .25s ease, transform .25s var(--ease);
}
.mm-social .mms-badge svg { width: 17px; height: 17px; fill: #fff; display: block; }
.mm-social .reel-card:hover .mms-badge { transform: scale(1.08); }
.mm-social .mms-badge--instagram:hover { background: #E1306C; }
.mm-social .mms-badge--tiktok { background: rgba(0,0,0,0.7); }
.mm-social .mms-badge--youtube:hover { background: #FF0000; }

/* Gradiente inferior */
.mm-social .reel-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px 16px;
  pointer-events: none;
}

.mm-social .likes {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mm-social .footer-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  font-weight: 400;
}

/* Flechas heredan el estilo de la otra sección */
.mm-social .mmv-arrows { display: flex; gap: 10px; }
.mm-social .mmv-arrow,
.mm-social .mmv-arrow:focus,
.mm-social .mmv-arrow:active {
  width: 42px !important; height: 42px !important;
  min-width: 0 !important; min-height: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  background: rgba(255,255,255,0.06) !important;
  background-image: none !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  -webkit-appearance: none; appearance: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0 !important; font-size: 0; outline: none;
  transition: background-color .25s ease, border-color .25s ease, opacity .25s ease;
}
.mm-social .mmv-arrow svg { width: 22px !important; height: 22px !important; fill: currentColor !important; display: block; }
.mm-social .mmv-arrow:hover { background: #FF6200 !important; border-color: #FF6200 !important; }
.mm-social .mmv-arrow[disabled] { opacity: .3; cursor: default; }
.mm-social .mmv-arrow[disabled]:hover { background: rgba(255,255,255,0.06) !important; border-color: rgba(255,255,255,0.18) !important; }

/* --- Responsivo --- */
@media (max-width: 1024px) {
  .mm-social .wrap { padding: 0 24px; }
  .mm-social .mmv-arrows { display: none; }

  .mm-social .reels-grid,
  .mm-social .mms-block.is-carousel .reels-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    gap: 16px;
  }
  .mm-social .reels-grid::-webkit-scrollbar { height: 6px; }
  .mm-social .reels-grid::-webkit-scrollbar-thumb { background-color: rgba(255,255,255,0.2); border-radius: 10px; }

  .mm-social .reel-card,
  .mm-social .mms-block.is-carousel .reel-card { flex: 0 0 calc(33.333% - 14px); scroll-snap-align: start; }
}

@media (max-width: 600px) {
  .mm-social { padding: 60px 0; }
  .mm-social .header-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .mm-social .mms-head-right { align-items: flex-start; }
  .mm-social .reel-card,
  .mm-social .mms-block.is-carousel .reel-card { flex: 0 0 calc(50% - 10px); }
}

/* ============================================================
   MODAL — modo embed (Instagram / TikTok / YouTube)
============================================================ */

.mmv-modal__embed {
  position: absolute;
  inset: 0;
  background: #0B172A;
}
.mmv-modal__embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.mmv-modal.is-embed .mmv-modal__player {
  width: min(460px, 94vw);
  height: 80vh;
  max-height: 80vh;
  aspect-ratio: auto;
  background: #000;
}
.mmv-modal.is-embed .mmv-modal__meta { max-width: min(460px, 94vw); }

/* Botón "Ver en Instagram / TikTok / YouTube" */
.mmv-modal .mmv-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 22px !important;
  border-radius: 999px !important;
  background: #FF6200 !important;
  color: #fff !important;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: 0 8px 20px rgba(255,98,0,0.28) !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mmv-modal .mmv-modal__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255,98,0,0.38) !important;
  color: #fff !important;
}
.mmv-modal .mmv-modal__cta[hidden] { display: none !important; }

/* En pantallas bajas, el embed no debe salirse */
@media (max-height: 720px) {
  .mmv-modal.is-embed .mmv-modal__player { height: 68vh; }
}
