/* ==========================================================================
   PORTAL VERDE Y BLANCO MINIMALISTA — SISTEMA DE DISEÑO ELEGANTE
   ========================================================================== */

:root {
  --green-primary: #10b981;       /* Esmeralda Vibrante */
  --green-hover: #059669;
  --green-light: #34d399;
  --green-subtle: rgba(16, 185, 129, 0.12);
  --green-border: rgba(16, 185, 129, 0.3);
  
  --gold-accent: #f59e0b;        /* Toque dorado elegante */
  --gold-light: #fbbf24;
  --gold-subtle: rgba(245, 158, 11, 0.12);

  --bg-page: #070d18;
  --bg-card: #0f172a;
  --bg-input: #1e293b;
  --bg-subtle: #1e293b;

  --text-dark: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #ffffff;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #10b981;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 12px 25px rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-page: #070d18;
  --bg-card: #0f172a;
  --bg-input: #1e293b;
  --bg-subtle: #1e293b;
  --text-dark: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --green-subtle: rgba(16, 185, 129, 0.12);
  --green-border: rgba(16, 185, 129, 0.3);
}

/* Base */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1420px;
  width: 96%;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Minimal Green Header */
.minimal-navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  width: 100%;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  gap: 1rem;
}

.brand-minimal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-dark);
  flex-shrink: 0;
}

.brand-badge-icon {
  width: 42px;
  height: 42px;
  background: var(--green-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-title-wrap h1 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
  color: var(--text-dark);
  white-space: nowrap;
}

.brand-title-wrap h1 span {
  color: var(--green-primary);
}

.brand-title-wrap p {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Navegación con los 10 botones principales */
.nav-menu-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-btn-link:hover, .nav-btn-link.active {
  color: var(--green-primary);
  background: var(--green-subtle);
}

.nav-actions-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-donate-flow {
  background: linear-gradient(135deg, #10b981, #047857);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-donate-flow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.35);
}

/* BOTONES ESTILO ELEGANTE Y MINIMALISTA (IGUAL A RECIBIR DEVOCIONAL) */
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-dark);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tool-btn:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
  background: var(--green-subtle);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.12);
}

.tool-btn i {
  color: var(--green-primary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.tool-btn:hover i {
  transform: scale(1.08);
}

.btn-icon-minimal {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon-minimal:hover {
  color: var(--green-primary);
  border-color: var(--green-primary);
  background: var(--green-subtle);
}

/* ==========================================================================
   3 BLOQUES ADSENSE OFICIALES (MINIMALISTAS Y ADAPTABLES)
   ========================================================================== */
.adsense-minimal-container {
  margin: 1.75rem 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.adsense-minimal-card {
  width: 100%;
  max-width: 970px;
  min-height: 90px;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  position: relative;
}

.adsense-badge-text {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
  display: block;
}

/* Grilla de Módulos Rápidos en Inicio */
.quick-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.quick-hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.quick-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green-border);
}

.card-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--green-subtle);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: var(--transition);
}

.quick-hub-card:hover .card-icon-circle {
  background: var(--green-primary);
  color: #ffffff;
}

.quick-hub-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-dark);
}

.quick-hub-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  flex-grow: 1;
}

.card-action-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--green-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

/* Modales */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-box-minimal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  max-width: 580px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--text-dark);
}

/* BOTONES DE TRANSMISIÓN ELEGANTES & ARMONIOSOS */
.btn-stream-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-stream-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.btn-stream-action:active {
  transform: translateY(0);
}

/* 1. Activar Audio (Verde Esmeralda Sutil) */
.btn-stream-audio {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(4, 120, 87, 0.18));
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--green-primary);
}
.btn-stream-audio:hover {
  background: linear-gradient(135deg, var(--green-primary), #065f46);
  border-color: var(--green-primary);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(4, 120, 87, 0.25);
}

/* 2. Chromecast (Azul Celeste Cristal) */
.btn-stream-cast {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(2, 132, 199, 0.16));
  border-color: rgba(14, 165, 233, 0.35);
  color: #0284c7;
}
.btn-stream-cast:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.25);
}

/* 3. AirPlay (Grafito / Pizarra Elegante) */
.btn-stream-airplay {
  background: linear-gradient(135deg, rgba(71, 85, 105, 0.08), rgba(15, 23, 42, 0.12));
  border-color: rgba(100, 116, 139, 0.28);
  color: #334155;
}
.btn-stream-airplay:hover {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
}

/* 4. Fullscreen (Icon Button Redondo) */
.btn-stream-fullscreen {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-stream-fullscreen:hover {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.2);
}

/* 5. Bluetooth (Azul Real / Glow) */
.btn-stream-bluetooth {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(29, 78, 216, 0.18));
  border-color: rgba(37, 99, 235, 0.35);
  color: #2563eb;
}
.btn-stream-bluetooth:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

/* Responsive */
@media (max-width: 1024px) {
  .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 992px) {
  .nav-menu-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}


