/* Sexy Love Radio - estilos base */
:root {
  --brand-primary: #f83a5a;
  --brand-accent: #ffab57;
  --bg-0: #0c0a0a;
  --bg-1: #171212;
  --bg-2: #211a1a;
  --text-0: #f6f1f5;
  --text-1: #c9bdd1;
  --text-muted: #8a7d94;
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(circle at 20% 0%, #331515 0%, var(--bg-0) 55%);
  color: var(--text-0);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 12px; }
.gradient-text {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-primary), #b80f3d);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 18px rgba(232,17,75,0.35);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232,17,75,0.45); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-0);
  box-shadow: none;
}
.btn-small { padding: 8px 18px; font-size: 14px; }
.link-subtle { color: var(--text-1); font-size: 14px; margin-left: 14px; }
.link-subtle:hover { color: var(--text-0); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,7,16,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 24px; flex-wrap: nowrap;
}
.mobile-auth { display: none; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; white-space: nowrap; }
.logo-icon { height: 44px; width: auto; display: block; }
.logo-full { height: 100px; width: auto; display: block; }
.logo-text { font-size: 18px; }
.logo-tagline { display: block; font-size: 10px; font-weight: 500; color: var(--brand-accent); letter-spacing: .03em; margin-top: -2px; }
@media (max-width: 500px) { .logo-tagline { display: none; } }
.main-nav { display: flex; gap: 13px; align-items: center; flex: 1; justify-content: center; }
.main-nav a { color: var(--text-1); font-size: 13px; font-weight: 500; padding: 6px 2px; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--text-0); border-color: var(--brand-accent); }
.btn-nav-highlight {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  color: #1b0710 !important; border-radius: 999px; padding: 8px 18px !important; border-bottom: none !important;
  font-weight: 700;
}
.header-actions { display: flex; align-items: center; }
.user-menu { display: flex; align-items: center; }
.user-name { font-size: 14px; color: var(--text-1); margin-right: 6px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-0); font-size: 22px; cursor: pointer; }

/* Live bar / player */
.live-bar { background: var(--bg-1); border-bottom: 1px solid var(--border); }
.live-bar-inner { display: flex; align-items: center; gap: 12px; height: 46px; font-size: 14px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3860; box-shadow: 0 0 0 rgba(255,56,96,0.6); animation: pulse 1.6s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,56,96,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255,56,96,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,56,96,0); }
}
.live-text { color: var(--brand-accent); font-weight: 700; letter-spacing: .5px; font-size: 12px; }
#liveProgramName { color: var(--text-1); flex: 1; }
.play-btn {
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)); color: #1b0710; font-weight: 700;
}
#volumeSlider { width: 90px; accent-color: var(--brand-primary); }

/* Hero */
.hero { padding: 90px 0 70px; text-align: center; }
.hero h1 { font-size: 44px; max-width: 760px; margin: 0 auto 18px; }
.hero p { color: var(--text-1); max-width: 560px; margin: 0 auto 30px; font-size: 18px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Cards / grid */
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title p { color: var(--text-1); }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,171,87,0.35); box-shadow: 0 16px 40px rgba(0,0,0,0.45); }
.card h3 { margin-bottom: 8px; }

/* Carrusel de publicidad */
.ad-carousel { position: relative; width: 100%; padding-top: 40%; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); }
.ad-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.ad-slide.active { opacity: 1; pointer-events: auto; }
.ad-slide img, .ad-slide a { display: block; width: 100%; height: 100%; object-fit: contain; }
.ad-carousel-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.ad-carousel-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,0.4); cursor: pointer; padding: 0; }
.ad-carousel-dots button.active { background: var(--brand-accent); }
@media (max-width: 720px) { .ad-carousel { padding-top: 50%; } }

/* Floating badges - acentos flotantes al estilo tarjetas modernas */
.floating-badge {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: rgba(23,18,18,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  font-size: 13px;
}
.floating-badge .icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
}
.floating-badge strong { display: block; color: var(--text-0); font-size: 13px; }
.floating-badge span { color: var(--text-muted); font-size: 12px; }
@media (max-width: 900px) { .floating-badge { display: none; } }
.card .meta { color: var(--brand-accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.card p { color: var(--text-1); font-size: 15px; }

.badge-premium {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent)); color: #1b0710;
  padding: 3px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle;
}

.lock-overlay {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 20px; border: 1px dashed var(--border); border-radius: var(--radius);
  color: var(--text-1); background: rgba(255,255,255,0.02);
}

/* Forms */
.form-page { max-width: 420px; margin: 60px auto; }
.form-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--text-1); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text-0); font-size: 15px;
}
.field textarea { resize: vertical; }
.error-msg { background: rgba(232,17,75,0.15); border: 1px solid var(--brand-primary); color: #ffb7c8; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.success-msg { background: rgba(60,200,120,0.12); border: 1px solid #3cc878; color: #a9f0c4; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }

/* Chat */
.chat-wrap { max-width: 720px; margin: 40px auto; }
.chat-box {
  height: 420px; overflow-y: auto; background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.chat-msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; background: var(--bg-2); font-size: 14px; }
.chat-msg .who { font-size: 12px; color: var(--brand-accent); font-weight: 700; margin-bottom: 3px; }
.chat-msg.request { border: 1px solid var(--brand-accent); }
.chat-msg.locutor { background: linear-gradient(135deg, rgba(248,58,90,0.18), rgba(255,171,87,0.10)); border: 1px solid rgba(255,171,87,0.3); align-self: flex-start; }
.locutor-badge { display:inline-block; background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent)); color:#1b0710; font-size:10px; font-weight:800; text-transform:uppercase; padding:1px 7px; border-radius:999px; margin-left:4px; }
.chat-form { display: flex; gap: 10px; margin-top: 14px; }
.emoji-panel {
  position: absolute; bottom: 48px; right: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px;
  background: var(--bg-1); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px; box-shadow: var(--shadow); width: 280px;
}
.emoji-panel button {
  background: none; border: none; font-size: 20px; cursor: pointer; border-radius: 6px; padding: 4px;
}
.emoji-panel button:hover { background: var(--bg-2); }
.emoji-panel[hidden] { display: none !important; }
.chat-form input[type=text] { flex: 1; }
.chat-request-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-1); margin-top: 10px; }

/* Pricing */
.price-card { text-align: center; }
.price-card .price { font-size: 40px; font-weight: 800; margin: 10px 0; }
.price-card .price span { font-size: 15px; color: var(--text-muted); font-weight: 400; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0; text-align: left; color: var(--text-1); font-size: 14px; }
.price-card li { padding: 6px 0; border-bottom: 1px solid var(--border); }

/* Contenido enriquecido del Diario */
.post-content img { border-radius: 12px; margin: 16px 0; }
.post-content a { color: var(--brand-accent); text-decoration: underline; }
.post-content h1, .post-content h2, .post-content h3 { margin-top: 24px; }
.post-content blockquote { border-left: 3px solid var(--brand-primary); padding-left: 16px; color: var(--text-1); margin: 16px 0; }
.post-content ul, .post-content ol { padding-left: 24px; }

/* Galeria: lightbox */
.gallery-item img { transition: transform .2s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5,3,4,0.92); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 40px 20px;
}
.lightbox[hidden] { display: none !important; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.lightbox p { color: var(--text-1); font-size: 15px; margin: 0; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; background: none; border: none;
  color: var(--text-0); font-size: 36px; line-height: 1; cursor: pointer;
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 50px 0 20px; margin-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 8px; }
.footer-copy { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 40px; }
.footer-promo { text-align: center; margin-top: 24px; line-height: 1.5; }
.footer-promo a { color: var(--text-muted); font-weight: 400; font-size: 12px; }
.footer-promo a:hover { color: var(--text-1); text-decoration: underline; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1150px) {
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-1); flex-direction: column; padding: 16px; display: none; border-bottom: 1px solid var(--border); align-items: flex-start; gap: 4px; }
  .main-nav.open { display: flex; }
  .main-nav a { white-space: normal; padding: 8px 0; width: 100%; }
  .nav-toggle { display: block; flex-shrink: 0; }
  .header-actions { display: none; }
  .mobile-auth { display: flex; flex-direction: column; gap: 4px; width: 100%; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
  .mobile-auth a, .mobile-auth .user-name { padding: 6px 0; color: var(--text-1); }
  .logo-icon { height: 36px; }
  .logo-full { height: 64px; }
}
@media (max-width: 720px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .footer-inner { flex-direction: column; }
  .live-bar-inner { flex-wrap: wrap; height: auto; padding: 8px 20px; row-gap: 6px; }
  .live-text { display: none; }
  #liveProgramName { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #volumeSlider { width: 60px; }
}
