﻿/* ==========================================================
   Mi Preferida 104.7 FM — "La Mera Mera"
    Blue-forward layout, centered logo hero, bold blue/red accents.
   ========================================================== */
:root {
  --bg: #edf5ff;
  --bg-2: #dceaff;
  --card: #ffffff;
  --line: #c1d8f3;
  --navy: #082d68;
  --blue: #0b5eb4;
  --blue-lt: #58a8ff;
  --red: #d7182f;
  --red-deep: #a90f23;
  --ink: #132d52;
  --muted: #526b8b;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --shadow: 0 1px 2px rgba(12, 26, 74, 0.06), 0 10px 28px rgba(12, 26, 74, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  padding-bottom: 74px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, 92vw); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--blue-lt); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; color: var(--navy); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; }

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(110deg, #061d49, #082d68);
  border-bottom: 3px solid var(--red);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding-block: 0.55rem;
  width: min(1280px, 94vw);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 96px; width: auto; }
.wordmark {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0;
  color: #fff;
  line-height: 0.9;
  font-weight: 700;
}
.wordmark small {
  display: block;
  font: 700 0.6rem/1 var(--font-body);
  letter-spacing: 0.2em;
  color: #ffb7c1;
  margin-top: 4px;
}
.brand img + .wordmark { display: none; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav a {
  font: 800 1.08rem var(--font-body);
  letter-spacing: 0.12em;
  text-decoration: none;
  color: #fff;
  padding: 0.35rem 0;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  text-transform: uppercase;
}
.nav a:hover { color: #b9dcff; }
.nav a[aria-current="page"] { color: #fff; border-color: var(--red); }

.langsw {
  display: inline-flex;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 0.6rem;
}
.langsw button {
  font: 700 0.94rem var(--font-body);
  cursor: pointer;
  background: transparent;
  color: #fff;
  border: 0;
  padding: 0.52rem 1.05rem;
}
.langsw button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.menu-btn {
  display: none;
  margin-left: auto;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  font: 700 0.9rem var(--font-body);
  padding: 0.42rem 0.95rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font: 800 0.86rem var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #ee3248, var(--red-deep));
  border: 2px solid var(--red-deep);
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  box-shadow: 0 4px 16px rgba(215, 24, 47, 0.25);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(215, 24, 47, 0.35); }
.btn--dark {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  box-shadow: none;
}
.btn--dark:hover { background: #fff; color: var(--navy); box-shadow: 0 6px 18px rgba(8, 45, 104, 0.3); }
.btn--sm { font-size: 0.74rem; padding: 0.6rem 1.2rem; }
.play-ico { width: 0; height: 0; border-left: 11px solid currentColor; border-block: 7px solid transparent; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: clamp(540px, 64vw, 700px);
  text-align: center;
  background:
    linear-gradient(180deg, transparent 34%, rgba(4, 25, 67, 0.16) 58%, rgba(2, 15, 47, 0.76) 100%),
    radial-gradient(ellipse at 50% 31%, rgba(151, 211, 255, 0.88) 0%, rgba(90, 166, 239, 0.48) 35%, transparent 72%),
    linear-gradient(135deg, #093b82 0%, #0759a7 55%, #103f88 100%);
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(4.5rem, 8vw, 6rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.music-note {
  position: absolute;
  color: rgba(232, 245, 255, 0.76);
  font: 700 clamp(1.7rem, 3vw, 2.7rem)/1 var(--font-body);
  text-shadow: 0 2px 12px rgba(2, 24, 67, 0.35);
  animation: note-float 5.5s ease-in-out infinite alternate;
}
.note-one { left: 10%; top: 24%; }
.note-two { left: 20%; top: 63%; animation-delay: -2.2s; }
.note-three { right: 9%; top: 20%; animation-delay: -3.7s; }
.note-four { right: 22%; top: 72%; animation-delay: -1.1s; }
.note-five { left: 5%; top: 47%; animation-delay: -2.8s; }
.note-six { right: 5%; top: 50%; animation-delay: -4.4s; }
@keyframes note-float {
  from { opacity: 0.38; transform: translate3d(0, 7px, 0) rotate(-8deg); }
  to { opacity: 0.9; transform: translate3d(0, -17px, 0) rotate(9deg); }
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-logo { width: min(600px, 84vw); margin: 0 auto; }
.hero .tagline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0;
  color: #fff;
  margin: 1.6rem 0 1.7rem;
  text-transform: none;
  font-style: italic;
  font-weight: 600;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

section { padding: clamp(3rem, 6vw, 5rem) 0; }
.alt { background: linear-gradient(120deg, #dceaff, #e8f3ff); border-block: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.sec-head h2::after { display: none; }
.link-more { font: 800 0.76rem var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 1px; }
.link-more:hover { color: var(--red); }

.grid { display: grid; gap: 1.4rem; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--blue); }
.card .body { padding: 1.1rem 1.25rem 1.35rem; }
.card p { font-size: 0.97rem; color: var(--muted); }

.tag, .eyebrow {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.ann .photo {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(ellipse at 50% 100%, #9ec2ff 0, #dbe7fb 55%, #eef3fc 100%);
  color: rgba(11, 79, 166, 0.55);
}
.ann .photo svg { width: 26%; opacity: 1; }
.ann .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ann .photo .slot { position: absolute; left: 12px; bottom: 12px; background: #fff; color: var(--muted); font: 700 0.62rem var(--font-body); letter-spacing: 0.16em; padding: 0.25rem 0.6rem; border-radius: 999px; border: 1px solid var(--line); }
.ann h3 { margin: 0.1rem 0 0; font-size: 1.35rem; }
.ann .time { font-weight: 700; color: var(--blue); font-size: 0.85rem; margin-bottom: 0.5rem; }

.event { display: grid; grid-template-columns: 96px 1fr; }
.event .date { background: linear-gradient(180deg, var(--red), var(--red-deep)); color: #fff; text-align: center; display: flex; flex-direction: column; justify-content: center; padding: 1rem 0.4rem; }
.event .date b { font: 700 2.3rem/1 var(--font-display); letter-spacing: 0.03em; }
.event .date span { font: 800 0.72rem var(--font-body); letter-spacing: 0.16em; }
.event h3 { margin-bottom: 0.2rem; }
.event .meta { font-size: 0.85rem; font-weight: 700; color: var(--blue); margin-bottom: 0.4rem; }

.masonry { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.masonry figure { aspect-ratio: 1; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #e8effb; }
.masonry img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.masonry figure:hover img { transform: scale(1.05); }
.ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #e8effb, #cfdcf3);
  color: rgba(11, 79, 166, 0.45);
  font: 800 0.72rem var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.notice { background: #fff8e6; color: #5c4710; border: 1px dashed #d9b95a; border-radius: 12px; padding: 0.9rem 1.1rem; font-size: 0.92rem; margin-bottom: 1.8rem; }
.notice code { background: rgba(0, 0, 0, 0.06); padding: 0 0.3rem; border-radius: 4px; }

.page-title {
  text-align: center;
  background: linear-gradient(135deg, #dceaff, #c8e1ff);
  padding: clamp(2.8rem, 5vw, 4.2rem) 0;
  border-bottom: 1px solid var(--line);
}
.page-title h1 { font-size: clamp(2.8rem, 6vw, 4.4rem); }
.page-title h1::after {
  content: "";
  display: block;
  width: 84px;
  height: 5px;
  margin: 0.8rem auto 0;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%);
  border-radius: 3px;
}
.page-title p { max-width: 54ch; margin: 1rem auto 0; color: var(--muted); font-size: 1.08rem; }

.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; }
form.card { padding: 1.8rem; }
label {
  display: block;
  font: 800 0.72rem var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
input, textarea, select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.8rem 0.95rem;
  margin-bottom: 1.1rem;
  border: 1px solid #c9d3e8;
  border-radius: 10px;
  background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
textarea { min-height: 140px; resize: vertical; }
.info-list { list-style: none; display: grid; gap: 1.4rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.info-list b { display: block; font: 800 0.72rem var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.info-list a, .info-list span { color: var(--ink); text-decoration: none; }
.info-list a:hover { color: var(--blue); }

.social-wrap { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.4rem; }
.social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
}
.social-link:hover { background: var(--red); transform: translateY(-2px); }
.social-link svg { width: 18px; height: 18px; fill: currentColor; }
.social-link[hidden] { display: none; }
.foot .social-link { display: inline-flex; margin: 0; }
.foot .social-link[hidden] { display: none; }
.follow-heading { font: 800 0.72rem var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin: 1.4rem 0 0.7rem; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: center; }
.onair { background: linear-gradient(160deg, #143a96, var(--navy)); color: #fff; border-radius: 16px; padding: 2rem; border-top: 5px solid var(--red); }
.onair .live { display: inline-flex; align-items: center; gap: 0.55rem; font: 800 0.74rem var(--font-body); letter-spacing: 0.16em; color: #ffb3bd; text-transform: uppercase; }
.onair .live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.onair h3 { color: #fff; font-size: 2.1rem; margin: 0.6rem 0 0.4rem; }
.onair p { color: #cdd8f5; }
.lead-p { font-size: 1.1rem; color: var(--muted); margin-top: 1.1rem; }

.foot { background: var(--navy); border-top: 4px solid var(--red); color: #b9c6e6; padding: 3rem 0 2rem; }
.foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.1rem; }
.foot h4 { font: 800 0.72rem var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: #fff; margin-bottom: 0.8rem; }
.foot a { display: block; text-decoration: none; margin: 0.3rem 0; }
.foot a:hover { color: #fff; }
.footer-brand { display: inline-block; margin-bottom: 0.75rem; }
.footer-logo { width: min(230px, 100%); height: 66px; object-fit: contain; object-position: left center; }
.foot small { display: block; margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, 0.15); grid-column: 1 / -1; opacity: 0.75; }

.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--navy); color: #fff; border-top: 3px solid var(--red); }
.player .wrap { display: flex; align-items: center; gap: 1.2rem; padding-block: 0.55rem; }
.player .np { line-height: 1.15; min-width: 0; }
.player .np b { font: 700 1.05rem var(--font-display); letter-spacing: 0; display: block; }
.player .np small { color: #9fb0d8; font-weight: 600; font-size: 0.78rem; }
.player .vol { width: 96px; margin: 0 0 0 auto; accent-color: var(--red); padding: 0; border: 0; background: none; }
.player.on .play-ico { border: 0; width: 13px; height: 15px; border-inline: 4px solid currentColor; }

.pill {
  display: inline-flex;
  align-items: center;
  font: 800 0.76rem var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blue);
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.pill:hover { background: var(--blue); color: #fff; }

.rows { display: grid; gap: 0.9rem; }
.event-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: linear-gradient(125deg, #082d68, #0b4fa6);
  border: 1px solid #174f96;
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow);
}
.event-row .date {
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.event-row .date b { font: 700 2rem/1 var(--font-display); }
.event-row .date span { font-family: var(--font-label); font-size: 0.8rem; letter-spacing: 0.16em; margin-top: 0.15rem; text-transform: uppercase; }
.event-row .info { flex: 1; min-width: 0; }
.event-row h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0.15rem; }
.event-row .meta { color: #d2e4ff; font-size: 0.92rem; font-weight: 600; }
.event-description { margin-top: 0.35rem; color: var(--muted); font-size: 0.92rem; }
.event-row .event-description { color: #d2e4ff; }
.events-empty {
  padding: 1.15rem 1.3rem;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(125deg, #082d68, #0b4fa6);
  border: 1px solid #174f96;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .hero-logo { width: min(440px, 84vw); }
  .split, .contact-grid, .foot .wrap { grid-template-columns: 1fr; }
  .brand img { height: 64px; }
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #082d68;
    border-bottom: 3px solid var(--red);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 4vw 1rem;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0.3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
  .langsw { align-self: flex-start; margin: 0.9rem 0 0; }
  .player .vol, .player .np small { display: none; }
  .player .btn { margin-left: auto; }
}
@media (max-width: 620px) {
  .hero { min-height: 540px; }
  .note-three { right: 5%; top: 19%; }
  .note-four { right: 21%; top: 74%; }
  .note-six { right: 4%; top: 52%; }
}
@media (max-width: 900px) {
  .g3 { grid-template-columns: 1fr; }
  .event-row { flex-wrap: wrap; }
  .event-row .pill { margin-left: auto; }
}
@media (min-width: 620px) and (max-width: 900px) { .g3 { grid-template-columns: repeat(2, 1fr); } }
.event-row .date span { font-size: 1rem; letter-spacing: 0.05em; }
.timepill { display: inline-block; font-size: 0.82rem; font-weight: 700; color: var(--blue); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
