@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;800&display=swap');

:root {
  --sky-glow: rgba(14, 165, 233, 0.3);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: radial-gradient(circle at top right, #1e293b, #0f172a);
  min-height: 100vh;
  color: white;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pulse-ring {
  box-shadow: 0 0 0 0 var(--sky-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--sky-glow);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(14, 165, 233, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
  }
}

/* Slider */
.swiper {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}
.swiper-wrapper,
.swiper-slide {
  height: 100%;
}
.swiper-slide img {
  height: 100%;
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

input[type='range'] {
  height: 6px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #0ea5e9;
  border-radius: 50%;
  cursor: pointer;
}

/* Resalta cards que el JS marque */
.active-day {
  border-left: 4px solid #0ea5e9 !important;
  background: rgba(14, 165, 233, 0.1) !important;
}

/* ==============================
   TEMA DIA / NOCHE (Radio Emmanuel)
   Noche = default (como está hoy)
   Día = data-theme="day"
============================== */

:root[data-theme='day'] body {
  background: #f4f7fb !important;
  color: #0f172a !important;
}

/* Glass en día */
:root[data-theme='day'] .glass {
  background: rgba(15, 23, 42, 0.06) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1) !important;
}

/* Ajustes de textos Tailwind comunes usados en tu HTML */
:root[data-theme='day'] .text-white {
  color: #0f172a !important;
}
:root[data-theme='day'] .text-slate-200 {
  color: #0f172a !important;
}
:root[data-theme='day'] .text-slate-400 {
  color: rgba(15, 23, 42, 0.7) !important;
}
:root[data-theme='day'] .text-slate-500 {
  color: rgba(15, 23, 42, 0.55) !important;
}

/* Inputs/textarea en sección Peticiones */
:root[data-theme='day'] input,
:root[data-theme='day'] textarea {
  color: #0f172a !important;
  background: rgba(15, 23, 42, 0.05) !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}
:root[data-theme='day'] input::placeholder,
:root[data-theme='day'] textarea::placeholder {
  color: rgba(15, 23, 42, 0.55) !important;
}


/* =========================
   FORM STATUS UI
========================= */
#formStatus {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background-color 0.35s ease;
}

#formStatus.show {
  display: block !important;
  opacity: 1;
  transform: translateY(0) scale(1);
}

#formStatus.status-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(34, 197, 94, 0.08));
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.14);
}

#formStatus.status-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(244, 63, 94, 0.08));
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  box-shadow: 0 16px 34px rgba(239, 68, 68, 0.14);
}

#formStatus.status-loading {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.14);
}

.form-status-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form-status-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
}

#formStatus.status-success .form-status-icon {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

#formStatus.status-error .form-status-icon {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

#formStatus.status-loading .form-status-icon {
  background: rgba(14, 165, 233, 0.18);
  color: #7dd3fc;
}

.form-status-title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.form-status-text {
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.96;
}

.form-status-pulse {
  animation: formPulse 1.2s ease-in-out infinite;
}

@keyframes formPulse {
  0%,
  100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* =========================
   TEMA DÍA REFINADO
========================= */
:root[data-theme='day'] body {
  background: radial-gradient(circle at top right, #f8fbff, #eaf1f8 48%, #dfe8f2) !important;
  color: #0f172a !important;
}

:root[data-theme='day'] .glass {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.1) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

:root[data-theme='day'] .text-white,
:root[data-theme='day'] .text-slate-200 {
  color: #0f172a !important;
}
:root[data-theme='day'] .text-slate-400 {
  color: rgba(15, 23, 42, 0.68) !important;
}
:root[data-theme='day'] .text-slate-500 {
  color: rgba(15, 23, 42, 0.56) !important;
}

:root[data-theme='day'] .border-white\/10,
:root[data-theme='day'] .border-white\/5 {
  border-color: rgba(148, 163, 184, 0.22) !important;
}

:root[data-theme='day'] .bg-white\/5 {
  background: rgba(15, 23, 42, 0.04) !important;
}

:root[data-theme='day'] input,
:root[data-theme='day'] textarea {
  color: #0f172a !important;
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(148, 163, 184, 0.32) !important;
}
:root[data-theme='day'] input::placeholder,
:root[data-theme='day'] textarea::placeholder {
  color: rgba(51, 65, 85, 0.58) !important;
}
:root[data-theme='day'] input:focus,
:root[data-theme='day'] textarea:focus {
  border-color: rgba(14, 165, 233, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

:root[data-theme='day'] .active-day {
  background: rgba(14, 165, 233, 0.08) !important;
}

:root[data-theme='day'] .swiper-slide h3 {
  color: #ffffff !important;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

:root[data-theme='day'] .swiper-slide p {
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

:root[data-theme='day'] #formStatus.status-success {
  color: #065f46;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.06));
  border-color: rgba(16, 185, 129, 0.28);
}
:root[data-theme='day'] #formStatus.status-error {
  color: #7f1d1d;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(220, 38, 38, 0.06));
  border-color: rgba(239, 68, 68, 0.26);
}
:root[data-theme='day'] #formStatus.status-loading {
  color: #0c4a6e;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(2, 132, 199, 0.06));
  border-color: rgba(14, 165, 233, 0.28);
}

:root[data-theme='day'] #themeToggle,
:root[data-theme='day'] #langToggle {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(148, 163, 184, 0.28);
  color: #0f172a;
}

:root[data-theme='day'] #themeToggle:hover,
:root[data-theme='day'] #langToggle:hover {
  background: rgba(255, 255, 255, 0.96);
}


/* Social buttons + language flags */
.social-btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  color: #cbd5e1;
  font-size: 1.25rem;
  transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}

.social-btn:hover {
  transform: translateY(-2px) scale(1.06);
}

.social-btn.facebook-btn:hover {
  color: #fff;
  background: #1877f2;
  box-shadow: 0 10px 24px rgba(24,119,242,0.35);
}

.social-btn.instagram-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  box-shadow: 0 10px 24px rgba(221,42,123,0.28);
}

.lang-toggle-btn {
  min-width: 44px;
  line-height: 1;
  font-size: 1.1rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .social-btn {
    width: 52px;
    height: 52px;
    font-size: 1.35rem;
  }

  .lang-toggle-btn {
    min-width: 42px;
    font-size: 1rem !important;
  }
}


/* Responsive hero slider */
@media (max-width: 1023px) {
  main#inicio {
    gap: 1.5rem;
  }

  .mySwiper .swiper-slide h3 {
    font-size: 1.5rem;
    line-height: 1.15;
  }
}

@media (max-width: 767px) {
  .mySwiper .swiper-slide h3 {
    font-size: 1.25rem;
  }

  .mySwiper .absolute.bottom-8.left-8.right-8 {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}

/* Footer social buttons */
footer .social-btn {
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
}

footer .social-btn i {
  pointer-events: none;
}

/* Language button with flag styling */
.lang-toggle-btn {
  min-width: 46px;
  height: 36px;
  padding: 0.25rem 0.55rem !important;
  border-radius: 9999px !important;
  background: rgba(255,255,255,0.08);
}

.lang-toggle-btn:hover {
  transform: translateY(-1px);
}


/* App install button states */
#appBtn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.22);
  background: linear-gradient(135deg, #0369a1, #0ea5e9);
}

#appBtn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0) 15%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0) 85%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}

#appBtn:hover::before {
  transform: translateX(120%);
}

#appBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.28);
}

#appBtn.is-installable {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
}

#appBtn.is-installed {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

#appBtn .app-btn-icon {
  margin-right: 0;
  font-size: 1.05rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(255,255,255,0.2));
}

#appBtn .app-btn-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

#appBtnText {
  letter-spacing: .02em;
}

#appBtnSubtext {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  opacity: 0.82;
  margin-top: 0.14rem;
}

.pwa-toast {
  position: fixed;
  left: 50%;
  bottom: 5.8rem;
  transform: translateX(-50%) translateY(12px);
  width: min(92vw, 420px);
  z-index: 80;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(6, 12, 23, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  color: #e2e8f0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.pwa-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pwa-toast-title {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.pwa-toast-text {
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(226,232,240,0.88);
}

@media (max-width: 768px) {
  .pwa-toast {
    bottom: 6.3rem;
  }

  #appBtnSubtext {
    display: none !important;
  }
}


@media (max-width: 768px) {
  #appBtn {
    min-height: 44px;
    gap: 0.55rem;
    padding-inline: 0.85rem;
  }

  #appBtn .app-btn-icon {
    font-size: 1rem;
  }

  #appBtnSubtext {
    font-size: 0.58rem;
  }
}


/* Song request CTA + modal */
.song-request-cta { position: relative; overflow: hidden; }
.song-request-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(14,165,233,0.16), transparent 42%); pointer-events: none; }
.song-request-kicker { color: #38bdf8; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0.6rem; }
.song-request-btn { position: relative; z-index: 1; min-height: 52px; padding: 0.95rem 1.35rem; border-radius: 1rem; border: 1px solid rgba(56,189,248,0.35); background: linear-gradient(135deg, rgba(2,132,199,0.92), rgba(14,165,233,0.92)); color: #fff; font-size: 0.82rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; box-shadow: 0 16px 32px rgba(2,132,199,0.22); transition: transform .22s ease, box-shadow .22s ease, filter .22s ease; }
.song-request-btn:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 20px 34px rgba(2,132,199,0.28); }
.song-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.song-modal.hidden { display: none !important; }
.song-modal-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.song-modal-dialog { position: relative; z-index: 1; width: min(100%, 560px); max-height: min(92vh, 760px); overflow: auto; border-radius: 2rem; border: 1px solid rgba(255,255,255,0.12); background: linear-gradient(180deg, rgba(8,20,37,0.98), rgba(11,24,44,0.97)); box-shadow: 0 30px 80px rgba(0,0,0,0.42); padding: 1.35rem; }
.song-modal-close { position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.06); color: #e2e8f0; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.song-modal-close:hover { transform: scale(1.04); background: rgba(255,255,255,0.1); }
.song-modal-head { padding: 0.4rem 0 1rem; }
.song-modal-kicker { color: #38bdf8; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0.55rem; }
.song-modal-title { font-size: clamp(1.65rem, 4vw, 2.25rem); line-height: 1.05; font-style: italic; font-weight: 900; margin: 0 0 0.55rem; }
.song-modal-subtitle { color: rgba(226,232,240,0.76); line-height: 1.55; font-size: 0.95rem; }
.song-modal-form { display: flex; flex-direction: column; gap: 0.95rem; }
.song-modal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.95rem; }
.song-field { display: flex; flex-direction: column; gap: 0.45rem; }
.song-field span { font-size: 0.78rem; font-weight: 800; color: #cbd5e1; letter-spacing: 0.04em; }
.song-field input, .song-field textarea { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 1rem; padding: 0.95rem 1rem; color: #fff; resize: vertical; outline: none; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.song-field input:focus, .song-field textarea:focus { border-color: rgba(56,189,248,0.62); background: rgba(255,255,255,0.07); box-shadow: 0 0 0 4px rgba(14,165,233,0.13); }
.song-modal-actions { display: flex; justify-content: flex-end; gap: 0.8rem; padding-top: 0.3rem; }
.song-secondary-btn, .song-primary-btn { min-height: 48px; border-radius: 1rem; padding: 0.9rem 1.15rem; font-size: 0.78rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; cursor: pointer; transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, background .18s ease; }
.song-secondary-btn { background: rgba(255,255,255,0.06); color: #e2e8f0; border: 1px solid rgba(255,255,255,0.12); }
.song-primary-btn { color: #fff; border: 1px solid rgba(56,189,248,0.35); background: linear-gradient(135deg, #0284c7, #0ea5e9); box-shadow: 0 14px 28px rgba(2,132,199,0.22); }
.song-secondary-btn:hover, .song-primary-btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.song-request-status { border-radius: 1rem; border: 1px solid transparent; padding: 0.9rem 1rem; font-size: 0.92rem; line-height: 1.45; }
.song-request-status.hidden { display: none !important; }
.song-request-status.is-success { background: linear-gradient(135deg, rgba(16,185,129,0.14), rgba(34,197,94,0.08)); border-color: rgba(52,211,153,0.26); color: #a7f3d0; }
.song-request-status.is-error { background: linear-gradient(135deg, rgba(239,68,68,0.14), rgba(244,63,94,0.08)); border-color: rgba(248,113,113,0.28); color: #fecaca; }
.song-request-status.is-loading { background: linear-gradient(135deg, rgba(14,165,233,0.14), rgba(56,189,248,0.08)); border-color: rgba(56,189,248,0.28); color: #bae6fd; }
body.song-modal-open { overflow: hidden; }
#appBtn .app-btn-copy { flex-direction: row; align-items: center; }
#appBtnSubtext { display: none !important; }
:root[data-theme='day'] .song-modal-dialog { background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,248,252,0.98)); border-color: rgba(148,163,184,0.24); }
:root[data-theme='day'] .song-modal-close, :root[data-theme='day'] .song-secondary-btn { background: rgba(15,23,42,0.06); color: #0f172a; border-color: rgba(148,163,184,0.22); }
:root[data-theme='day'] .song-modal-subtitle, :root[data-theme='day'] .song-field span { color: rgba(15,23,42,0.72); }
:root[data-theme='day'] .song-field input, :root[data-theme='day'] .song-field textarea { background: rgba(15,23,42,0.05); border-color: rgba(148,163,184,0.22); color: #0f172a; }
:root[data-theme='day'] .song-request-cta::before { background: radial-gradient(circle at top right, rgba(14,165,233,0.12), transparent 42%); }
@media (max-width: 768px) { .song-modal-dialog { padding: 1.1rem; border-radius: 1.5rem; } .song-modal-grid { grid-template-columns: 1fr; } .song-modal-actions { flex-direction: column-reverse; } .song-secondary-btn, .song-primary-btn, .song-request-btn { width: 100%; } }
