/* home.css — layout reestructurado del home de Radio Master (reestructura "B").
   Reutiliza la identidad: Montserrat, navy + acentos rojo/ámbar, motivos de marca. */

:root {
  --rm-navy: #181826;
  --rm-navy-2: #243047;
  --rm-red: #e8433f;
  --rm-amber: #f5a623;
  --rm-sky: #75d6fd;
  --rm-ink: #243047;
  --rm-muted: #5b6472;
  --rm-line: #e7ebf2;
  --rm-max: 1140px;
  --rm-pad: clamp(1.25rem, 4vw, 3rem);
  --rm-sp: clamp(3rem, 7vw, 5.5rem);
}

.rm-main {
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--rm-ink);
  overflow-x: clip;
}
.rm-main .rm-wrap { max-width: var(--rm-max); margin: 0 auto; padding-inline: var(--rm-pad); }
.rm-main h1, .rm-main h2, .rm-main h3 { margin: 0; line-height: 1.12; font-weight: 800; }
.rm-main p { margin: 0; }

/* ---------- Botones ---------- */
.rm-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 0; cursor: pointer; text-decoration: none;
  font: 700 1rem/1 Montserrat, sans-serif;
  padding: .95rem 1.5rem; border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.rm-btn svg { width: 1.15em; height: 1.15em; }
.rm-btn--play { background: var(--rm-red) !important; color: #fff !important; box-shadow: 0 8px 22px rgba(232,67,63,.35); }
.rm-btn--play:hover { transform: translateY(-2px); background: var(--rm-red) !important; box-shadow: 0 12px 26px rgba(232,67,63,.45); }
.rm-btn--tv { background: var(--rm-amber) !important; color: var(--rm-navy) !important; }
.rm-btn--tv:hover { transform: translateY(-2px); background: var(--rm-amber) !important; box-shadow: 0 10px 24px rgba(245,166,35,.4); }
.rm-btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.rm-btn--ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- Hero: consola en vivo ---------- */
.rm-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 620px at 74% 30%, #eaf1fb 0%, #f3f7fc 45%, #eef2f8 100%);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.rm-hero__inner {
  position: relative; z-index: 1; /* por encima de la capa de motivos (.bfx-layer, z-index:0) */
  max-width: var(--rm-max); margin: 0 auto; padding-inline: var(--rm-pad);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.rm-live-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--rm-red); color: #fff; font-size: .78rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; padding: .4rem .8rem; border-radius: 999px;
}
.rm-live-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: rm-pulse 1.4s infinite; }
@keyframes rm-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }
.rm-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); color: var(--rm-navy-2); margin-top: 1rem; }
.rm-hero h1 b { color: var(--rm-red); }
.rm-hero__sub { color: var(--rm-muted); font-size: clamp(1.05rem, 2vw, 1.25rem); margin-top: .9rem; }
.rm-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.rm-freq-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 0; padding: 0; }
.rm-freq-chips li {
  background: #fff; border: 1px solid var(--rm-line); border-radius: 12px;
  padding: .5rem .85rem; font-weight: 800; color: var(--rm-navy-2); font-size: 1rem;
  display: flex; flex-direction: column; line-height: 1.15; box-shadow: 0 4px 14px rgba(36,48,71,.05);
}
.rm-freq-chips li span { font-weight: 600; font-size: .72rem; color: var(--rm-muted); text-transform: uppercase; letter-spacing: .04em; }
.rm-hero__art { display: flex; justify-content: center; }
.rm-hero__mascot { width: min(100%, 420px); height: auto; transform: scaleX(-1); filter: drop-shadow(0 20px 40px rgba(36,48,71,.22)); }

/* ---------- Banda mensaje ---------- */
.rm-strip { background: #f4f7fb; text-align: center; padding-block: clamp(2rem, 5vw, 3.25rem); }
.rm-strip h2 { font-size: clamp(1.4rem, 3.4vw, 2.1rem); color: var(--rm-navy-2); }
.rm-strip p { color: var(--rm-muted); margin-top: .6rem; font-size: 1.05rem; }
.rm-strip b { color: var(--rm-red); }

/* ---------- Señal en vivo (video) ---------- */
.rm-live { background: var(--rm-navy); color: #fff; padding-block: var(--rm-sp); text-align: center; }
.rm-live h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
.rm-live__sub { color: rgba(255,255,255,.7); margin-top: .5rem; }
.rm-video {
  position: relative; width: min(100%, 820px); margin: 1.8rem auto 0; padding-top: min(56.25%, 461px);
  border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.4);
  background: #000;
}
.rm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Nace en el Choapa (about) ---------- */
.rm-about { background: #fff; padding-block: var(--rm-sp); }
.rm-about__grid {
  max-width: var(--rm-max); margin: 0 auto; padding-inline: var(--rm-pad);
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.rm-about__img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 18px 44px rgba(36,48,71,.18); display: block; }
.rm-about h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--rm-navy-2); }
.rm-about h2 b { color: var(--rm-red); }
.rm-about p { color: var(--rm-muted); font-size: 1.05rem; line-height: 1.6; margin-top: 1rem; }
.rm-about details { margin-top: 1.4rem; border-top: 1px solid var(--rm-line); padding-top: 1rem; }
.rm-about summary { cursor: pointer; font-weight: 800; color: var(--rm-navy-2); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.rm-about summary::-webkit-details-marker { display: none; }
.rm-about summary::after { content: "+"; font-size: 1.4rem; color: var(--rm-red); }
.rm-about details[open] summary::after { content: "\2212"; }
.rm-about details p { font-size: .98rem; }

/* ---------- Dónde escucharnos (frecuencias) ---------- */
.rm-freqs { background: #f4f7fb; padding-block: var(--rm-sp); text-align: center; }
.rm-freqs h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); color: var(--rm-navy-2); }
.rm-freqs__grid { max-width: 900px; margin: 2rem auto 0; padding-inline: var(--rm-pad); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.rm-freq-card { background: #fff; border-radius: 16px; padding: 1.6rem 1rem; box-shadow: 0 10px 30px rgba(36,48,71,.08); }
.rm-freq-card .n { font-size: 1.9rem; font-weight: 800; color: var(--rm-navy-2); }
.rm-freq-card .l { color: var(--rm-muted); font-weight: 600; margin-top: .25rem; text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; }
.rm-freqs__cta { margin-top: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .rm-hero__inner { grid-template-columns: 1fr; text-align: center; }
  .rm-hero__actions, .rm-freq-chips { justify-content: center; }
  .rm-hero__art { order: -1; }
  .rm-hero__mascot { width: min(72%, 300px); }
  .rm-about__grid { grid-template-columns: 1fr; }
  .rm-about__img { order: -1; max-width: 460px; margin-inline: auto; }
  .rm-freqs__grid { grid-template-columns: 1fr; max-width: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-live-badge .dot { animation: none; }
  .rm-btn:hover { transform: none; }
}

/* ---------- Accesibilidad: foco visible por teclado ---------- */
.rm-btn:focus-visible,
.elementor-location-header .elementor-button:focus-visible,
.rm-about summary:focus-visible,
.rmwa .rmwa__btn:focus-visible,
.rmwa .rmwa__cta:focus-visible,
a:focus-visible {
  outline: 3px solid #1561d4 !important;
  outline-offset: 3px !important;
  border-radius: 8px;
}
/* elementos sobre fondo navy (barra del reproductor): anillo claro */
.rmlp :focus-visible {
  outline: 3px solid #75d6fd !important;
  outline-offset: 3px !important;
}

/* Footer: textos un poco más chicos */
.elementor-location-footer .elementor-element-23d25aa .elementor-heading-title { font-size: .95rem !important; }
.elementor-location-footer .elementor-element-233bdf1 .elementor-heading-title { font-size: .82rem !important; }
.elementor-location-footer .elementor-element-65b1f18 .elementor-heading-title { font-size: .72rem !important; }

/* Header no fijo (red de seguridad por si el JS intentara activar sticky) */
.elementor-location-header .elementor-sticky--active { position: static !important; box-shadow: none !important; }
.elementor-sticky__spacer { display: none !important; }

/* ---------- Botones del header: mismo estilo pill + íconos que el hero ---------- */
.elementor-location-header .elementor-button {
  border-radius: 999px !important;
  text-transform: none !important;
  padding: .72rem 1.3rem !important;
  font-weight: 700 !important;
  font-size: .95rem !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
}
.elementor-location-header .elementor-button:hover { transform: translateY(-2px) !important; }
.elementor-location-header .elementor-button-content-wrapper { display: inline-flex !important; align-items: center; gap: .5rem; }
.elementor-location-header .elementor-button-content-wrapper::before {
  content: ""; width: 1.1em; height: 1.1em; flex: 0 0 auto;
  background-size: contain; background-repeat: no-repeat; background-position: center;
}
/* "Escucha la radio" (dispara el player): ícono play blanco */
.elementor-location-header a[onclick] .elementor-button-content-wrapper::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M8 5v14l11-7z'/%3E%3C/svg%3E");
}
/* "Ver TV en vivo" (#tv): texto e ícono navy sobre ámbar, como en el hero */
.elementor-location-header a[href="#tv"] .elementor-button-text { color: #243047 !important; }
.elementor-location-header a[href="#tv"] .elementor-button-content-wrapper::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23243047' d='M21 3H3a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h6v2H7v2h10v-2h-2v-2h6a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm0 13H3V5h18z'/%3E%3C/svg%3E");
}
/* En móvil ocultamos el contenedor de botones del header (redunda con los CTAs del hero y la
   barra). Se oculta el contenedor completo para que no deje espacio vacío en el flex. */
@media (max-width: 767px) {
  .elementor-location-header .elementor-element-e7b2c1e { display: none !important; }
}
