/* ============================================================
   Radio Trebujena · style.css
   ============================================================ */

:root {
  --green-dark:  #143F28;
  --green-mid:   #1B5B38;
  --red:         #C93315;
  --cream:       #F7F2EB;
  --cream-dark:  #EDE7DC;
  --text:        #1A1A1A;
  --text-muted:  #7A6E5E;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
button { cursor: pointer; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes wave-bar {
  0%, 100% { transform: scaleY(0.25); }
  50%       { transform: scaleY(1); }
}

/* ============================================================
   SHARED ATOMS
   ============================================================ */

.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.pulse-dot--green { background: #4ADE80; }

.hidden { display: none !important; }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(28px, 3vw, 36px);
  color: var(--green-dark);
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.section-title--dark { color: var(--green-dark); }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav--scrolled {
  border-bottom-color: rgba(26, 26, 26, 0.08);
  box-shadow: 0 2px 16px rgba(20, 63, 40, 0.06);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.nav__logo {
  height: 38px;
  width: auto;
}

.nav__name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--green-dark);
  letter-spacing: -0.2px;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav__freq {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.btn-live {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 9px 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 13.5px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-live:hover { background: #b02d12; transform: translateY(-1px); }
.btn-live:active { transform: translateY(0); }

.btn-live--playing { background: var(--green-mid); }
.btn-live--playing:hover { background: var(--green-dark); }

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

.hero {
  position: relative;
  background: var(--green-dark);
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 108px 40px 72px;
  overflow: hidden;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  width: 100%;
  max-width: 680px;
}

.hero__live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
}

.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(48px, 7.5vw, 80px);
  color: white;
  line-height: 1.0;
  letter-spacing: -1.5px;
  margin-top: 2px;
}

.hero__subtitle {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.4px;
  margin-top: -4px;
}

/* ---- Player Card ---- */

.player-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  padding: 20px 28px;
  margin-top: 10px;
  width: 100%;
  max-width: 440px;
  transition: background 0.25s, border-color 0.25s;
}

.player-card:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.2);
}

.player-card__btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--red);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(201, 51, 21, 0.4);
}

.player-card__btn:hover {
  background: #b02d12;
  transform: scale(1.07);
  box-shadow: 0 6px 20px rgba(201, 51, 21, 0.55);
}

.player-card__btn:active { transform: scale(0.98); }

.player-card__btn svg { width: 20px; height: 20px; }

.icon-play { margin-left: 3px; } /* optical centering */

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.player-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.player-card__station {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 15.5px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-card__status {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

/* Wave bars */
.player-card__wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 30px;
  flex-shrink: 0;
}

.player-card__wave span {
  display: block;
  width: 3px;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  transform: scaleY(0.25);
  transform-origin: center;
}

.player-card__wave.active span:nth-child(1) { animation: wave-bar 1s ease-in-out infinite 0s;    }
.player-card__wave.active span:nth-child(2) { animation: wave-bar 1s ease-in-out infinite 0.15s; }
.player-card__wave.active span:nth-child(3) { animation: wave-bar 1s ease-in-out infinite 0.3s;  }
.player-card__wave.active span:nth-child(4) { animation: wave-bar 1s ease-in-out infinite 0.45s; }
.player-card__wave.active span:nth-child(5) { animation: wave-bar 1s ease-in-out infinite 0.6s;  }

/* ============================================================
   EN LAS ONDAS
   ============================================================ */

.ondas {
  background: var(--cream);
  padding: 88px 40px;
}

.ondas__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ondas__header {
  margin-bottom: 44px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ondas__tagline {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--text-muted);
}

.ondas__layout {
  display: grid;
  grid-template-columns: 60% 1fr;
  gap: 56px;
  align-items: start;
}

.ondas__fb-wrap {
  width: 100%;
  min-height: 300px;
  background: rgba(0,0,0,0.025);
  border-radius: 12px;
  overflow: hidden;
}

/* Facebook fallback — oculto por defecto; JS lo muestra con display:flex */
.fb-fallback {
  background: var(--cream-dark);
  border-radius: 12px;
  padding: 40px 32px;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.fb-fallback__icon { line-height: 0; }

.fb-fallback__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--green-dark);
  line-height: 1.2;
}

.fb-fallback__desc {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 380px;
}

.btn-fb-fallback {
  display: inline-flex;
  align-items: center;
  background: #1877F2;
  color: white;
  border-radius: 100px;
  padding: 9px 22px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 13.5px;
  margin-top: 4px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-fb-fallback:hover { background: #1464d8; transform: translateY(-1px); }
.btn-fb-fallback:active { transform: translateY(0); }

.ondas__aside {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 4px;
}

.ondas__intro {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-muted);
}

.ondas__fm-display {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  background: var(--green-dark);
  border-radius: 12px;
  padding: 18px 26px;
  align-self: flex-start;
}

.ondas__fm-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 52px;
  color: white;
  line-height: 1;
  letter-spacing: -1.5px;
}

.ondas__fm-unit {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.ondas__social-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}

.btn-facebook {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1877F2;
  color: white;
  border-radius: 8px;
  padding: 11px 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 13.5px;
  align-self: flex-start;
  transition: background 0.2s, transform 0.15s;
}

.btn-facebook:hover { background: #1464d8; transform: translateY(-1px); }
.btn-facebook:active { transform: translateY(0); }

/* ============================================================
   SOBRE NOSOTROS
   ============================================================ */

.sobre {
  background: var(--cream-dark);
  padding: 88px 40px;
}

.sobre__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.sobre__texto {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sobre__p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-muted);
}

.sobre__datos {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sobre__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(0,0,0,0.05);
}

.stat-card__num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 38px;
  color: var(--green-dark);
  line-height: 1;
  letter-spacing: -1px;
}

.stat-card__label {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-card {
  background: var(--green-dark);
  border-radius: 12px;
  padding: 22px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-card__icon { margin-top: 1px; flex-shrink: 0; }

.contact-card__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-card__address {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.contact-card__tel {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.contact-card__tel:hover { color: white; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--green-dark);
  padding: 48px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo {
  height: 30px;
  width: auto;
  opacity: 0.75;
  filter: brightness(0) invert(1);
}

.footer__name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
}

.footer__copy {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.35);
  font-family: 'Outfit', sans-serif;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__link {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer__link:hover { color: white; }

.footer__sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 13px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .ondas__layout {
    grid-template-columns: 1fr;
  }

  .sobre__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 680px) {
  .nav__inner { padding: 0 20px; }
  .nav__freq  { display: none; }

  .hero { padding: 96px 24px 56px; }

  .player-card { padding: 16px 20px; gap: 14px; }

  .ondas, .sobre { padding: 64px 24px; }

  .footer { padding: 40px 24px; }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .btn-live__label { display: none; }

  .sobre__stats { grid-template-columns: 1fr; }
}
