:root {
  --bg: #050814;
  --bg-soft: #0b1020;
  --bg-soft2: #111827;
  --accent: #4fd1c5;
  --text: #f9fafb;
  --muted: #9ca3af;
  --radius: 14px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: url('/menores/img/fondodigitomenoresreal.png') no-repeat center top fixed;
  background-size: cover;
  color: var(--text);
  min-height: 100vh;
}

/* TOPBAR */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 0 18px rgba(79, 209, 197, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.pill-safe {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--muted);
}

/* BOTONES */

.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-primary {
  background: linear-gradient(135deg, #4fd1c5, #63b3ed);
  color: #0b1120;
  font-weight: 600;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--muted);
}

/* HERO */

.hero {
  max-width: 1120px;
  margin: 1.75rem auto 1.5rem;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 1.75rem;
  align-items: center;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-kicker {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-title {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 0.6rem;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 32rem;
}

.hero-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-badges {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-right {
  background: radial-gradient(circle at top, rgba(79, 209, 197, 0.18), rgba(15, 23, 42, 0.96));
  border-radius: 20px;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: grid;
  gap: 0.75rem;
}

.hero-presenters {
  display: flex;
  gap: 0.75rem;
}

.presenter-card {
  flex: 1;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 14px;
  padding: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.8rem;
}

.presenter-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  margin-bottom: 0.4rem;
}

/* SECCIONES GENERALES */

.section {
  max-width: 1120px;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

.section-dark {
  background: rgba(15, 23, 42, 0.8);
  padding: 2rem 1.25rem;
  margin-top: 1rem;
}

.section-soft {
  background: rgba(15, 23, 42, 0.6);
  padding: 2rem 1.25rem;
  margin-top: 1rem;
}

.section-header {
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.section-header p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* BLOQUES */

.blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.block-card {
  background: var(--bg-soft2);
  border-radius: 14px;
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

/* VÍDEOS */

.section-inner {
  margin-top: 1.5rem;
}

.video-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.video-card {
  background: var(--bg-soft2);
  border-radius: 14px;
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.85rem;
}

.video-card video {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

/* CARDS GENERALES */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.9rem;
}

.card h3 {
  margin-bottom: 0.35rem;
}

.tips-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted);
}

.tips-list li::before {
  content: "• ";
  color: var(--accent);
}

/* FOOTER */

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(3, 7, 18, 0.96);
  padding: 0.9rem 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
}

/* BLOQUES OSCUROS */

.section-header,
.section-text,
.hero-box,
.block-header,
.text-box {
  background: rgba(0, 0, 0, 0.55);
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
}

/* BOTÓN FLOTANTE */

#dm-chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 200px;
  height: 200px;
  cursor: pointer;
  z-index: 9999;
}

#dm-chat-button img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* PANEL FLOTANTE */

#dm-chat-panel {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 380px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  z-index: 9999;

  /* Animación */
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#dm-chat-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* CABECERA DEL PANEL */

.dm-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.dm-avatar {
  width: 80px;
  height: 80px;
}

/* ENLACES DEL PANEL */

.dm-chat-body a {
  display: block;
  padding: 8px;
  margin: 5px 0;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: 0.2s;
}

.dm-chat-body a:hover {
  background: rgba(255,255,255,0.12);
}
.highlight-4patas {
  background: #fff7e6;
  border-left: 6px solid #ff9900;
  margin-top: 40px;
  padding: 30px;
  border-radius: 12px;
}

.new-tag {
  background: #ff9900;
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-left: 8px;
}
.highlight-4patas {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 30px;
  border-radius: 14px;
  margin-top: 40px;
  box-shadow: 0 0 25px rgba(255, 153, 0, 0.15);
}

.highlight-4patas h2 {
  color: #ff9900;
}

.highlight-4patas p {
  color: #ddd;
}

.new-tag {
  background: #ff9900;
  color: #000;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-left: 8px;
  font-weight: bold;
}
.dm-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Proporción 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.dm-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mantiene proporción sin deformar */
  border-radius: 12px;
}
/* Vídeos verticales 9:16 */
.dm-video-vertical {
  position: relative;
  width: 100%;
  padding-bottom: 177.77%; /* 16/9 = 1.7777 → 177.77% */
  height: 0;
  overflow: hidden;
  border-radius: 14px;
}

.dm-video-vertical video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mantiene proporción vertical sin deformar */
  border-radius: 14px;
}
.coloreable-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
  border-radius: 10px;
  object-fit: contain;
}
/* CONTENEDOR GENERAL */
.zona-jovenes-home {
  max-width: 900px; /* evita que ocupe toda la pantalla */
  margin: 0 auto 40px auto;
  padding: 25px;
  border: 2px solid #00ff88;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  overflow: hidden; /* elimina scroll horizontal */
}

/* LOGO */
.zona-jovenes-logo-wrap {
  width: 140px;
  margin: 0 auto 15px auto;
}

.zona-jovenes-logo {
  width: 100%;
  height: auto;
  display: block;
}

/* TEXTO */
.zona-jovenes-texto {
  color: white;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* BOTÓN */
.btn-zona-jovenes {
  display: inline-block;
  background: #00ff88;
  color: #000;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  transition: 0.2s;
}

.btn-zona-jovenes:hover {
  background: #00ffaa;
  transform: scale(1.05);
}
/* ENLACES JUVENILES CORPORATIVOS */
.bloque-card-joven a {
  color: #00ff88 !important;
  text-decoration: none !important;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 255, 136, 0.4);
  transition: 0.2s;
}

.bloque-card-joven a:hover {
  color: #ffffff !important;
  border-bottom: 1px solid #ffffff;
  text-shadow: 0 0 8px #00ff88;
}
/* ENLACES CORPORATIVOS GENERALES */
.section a,
.block-card a,
.video-card a,
.card a {
  color: #00ff88 !important;
  text-decoration: none !important;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 255, 136, 0.4);
  transition: 0.2s;
}

.section a:hover,
.block-card a:hover,
.video-card a:hover,
.card a:hover {
  color: #ffffff !important;
  border-bottom: 1px solid #ffffff;
  text-shadow: 0 0 8px #00ff88;
}
