:root {
  --primary: #6b4ca3;
  --secondary: #b79ce6;

  --bg-main: #faf6ff;
  --bg-card: #ffffff;

  --text-dark: #3f2f57;
  --text-soft: #5f4d7a;
  --border-soft: rgba(107,76,163,.15);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY + FONDO */
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  background:
    radial-gradient(circle at top, #f3e8ff, #ffffff 70%),
    url("../img/numeros-espejo.svg");
  background-size: cover, 420px;
  background-repeat: no-repeat, repeat;
}

/* HEADER */
.panel-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.panel-header-content {
  max-width: 1100px;
  margin: auto;
  padding: 16px 22px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.panel-brand {
  font-weight: 600;
  color: var(--primary);
}

.panel-nav a {
  margin-left: 18px;
  text-decoration: none;
  font-size: .95rem;
  color: var(--text-soft);
}

.panel-nav a:hover {
  color: var(--primary);
}

/* CONTENEDOR */
.panel-wrapper {
  max-width: 1000px;
  margin: 60px auto;
  padding: 40px 24px;
  background: rgba(255,255,255,.85);
  border-radius: 40px;
  box-shadow: 0 40px 90px rgba(107,76,163,.18);
}

/* MAIN */
.panel-main {
  max-width: 900px;
  margin: auto;
}

/* BIENVENIDA */
.panel-welcome {
  text-align: center;
  margin-bottom: 70px;
}

.panel-welcome h1 {
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.panel-welcome p {
  max-width: 640px;
  margin: auto;
  font-size: 1.1rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* SECCIONES */
.panel-section {
  margin-bottom: 80px;
  text-align: center;
}

.panel-section h2 {
  font-size: 1.9rem;
  margin-bottom: 18px;
}

.section-intro {
  max-width: 640px;
  margin: 0 auto 45px;
  font-size: 1.05rem;
  color: var(--text-soft);
}

/* PROCESO */
.days-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.days-grid li {
  list-style: none;
}

.day-item {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(107,76,163,.12);
  transition: transform .15s ease, box-shadow .15s ease;
}

.day-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(107,76,163,.18);
}

.day-item input {
  transform: scale(1.2);
  cursor: pointer;
}

.day-item input:checked + span {
  font-weight: 600;
  color: var(--primary);
}

/* VIDEOS - MODIFICADO PARA MEJOR TAMAÑO */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 60px; /* Más espacio entre videos */
  align-items: center;
}

.video-item {
  width: 100%;
  max-width: 850px; /* Tamaño ideal para lectura y visión en PC */
  margin: 0 auto;
}

.video-item h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--primary);
}

/* El truco para que el video sea responsivo y no se aplaste */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* Relación 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 26px; /* Bordes más suaves */
  box-shadow: 0 25px 60px rgba(107,76,163,0.3); /* Sombra más profunda */
  background: #000;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-item h3::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 12px auto 0;
  background: linear-gradient(to right, transparent, var(--secondary), transparent);
  border-radius: 10px;
}



/* MATERIAL */
.material-list {
  list-style: none;
  max-width: 520px;
  margin: auto;
  text-align: left;
}

.material-list a {
  text-decoration: none;
  font-size: 1.05rem;
  color: var(--primary);
}

/* MOBILE */
@media (max-width: 768px) {
  .panel-nav {
    display: none;
  }

  .panel-wrapper {
    padding: 30px 18px;
    margin: 40px 12px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.brand:hover .panel-brand {
  opacity: .85;
}

/* VISIBILIDAD */
.desktop-only { display: flex; }
.mobile-only { display: none; }

/* BOTÓN HAMBURGUESA */
.menu-toggle {
  font-size: 1.6rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
}

/* OVERLAY */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  z-index: 20;
}

/* MENU MOBILE */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 280px;
  background: #fff;
  box-shadow: -20px 0 50px rgba(0,0,0,.2);
  transform: translateX(100%);
  transition: .35s ease;
  z-index: 30;
  display: flex;
  flex-direction: column;
}

/* ACTIVO */
.mobile-menu.active {
  transform: translateX(0);
}
.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* HEADER MENU */
.mobile-menu-header {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-soft);
}

.mobile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.mobile-user {
  display: flex;
  flex-direction: column;
}

.mobile-name {
  font-weight: 600;
}

.mobile-email {
  font-size: .85rem;
  color: var(--text-soft);
}

/* LINKS */
.mobile-nav {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  padding: 14px 10px;
  text-decoration: none;
  color: var(--text-dark);
  border-radius: 12px;
}

.mobile-nav a:hover {
  background: var(--bg-main);
}

/* CHECKBOX TÁCTIL */
.days-grid li {
  cursor: pointer;
}

.days-grid li input {
  pointer-events: none;
}

/* MOBILE */
@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: block; }
}

/* ==================================================
   FOOTER PANEL
================================================== */
.panel-footer {
  margin-top: 120px;
  padding: 50px 20px 40px;
  text-align: center;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(250,246,255,.9)
  );
  border-top: 1px solid var(--border-soft);
}

.site-footer p {
  margin-bottom: 12px;
  font-size: .95rem;
  color: var(--text-soft);
}

.footer-brand {
  font-weight: 500;
}

.footer-contact a,
.footer-social a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.footer-contact a:hover,
.footer-social a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-separator {
  opacity: .4;
}

.footer-tagline {
  margin-top: 18px;
  font-style: italic;
  opacity: .75;
}

/* MOBILE */
@media (max-width: 768px) {
  .panel-footer {
    margin-top: 80px;
    padding: 40px 16px 30px;
  }

  .site-footer p {
    font-size: .9rem;
  }
}

/* USER MOBILE */
.mobile-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 16px;
  margin-bottom: 20px;

  border-bottom: 1px solid var(--border-soft);
}

.mobile-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(107,76,163,.25);
}

.mobile-user-email {
  font-size: .9rem;
  color: var(--text-soft);
  word-break: break-all;
}

.solo-por-hoy-img {
  max-width: 420px;
  width: 100%;
  border-radius: 26px;
  box-shadow: 0 25px 60px rgba(107,76,163,.25);
}

.video-separator-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px 0;
  text-align: center;
}

.solo-por-hoy-text {
  max-width: 520px;
  margin-bottom: 22px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.solo-por-hoy-text strong {
  display: block;
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.material-list {
  display: grid;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

.material-item {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  padding: 20px;
  border-radius: 20px;
  text-decoration: none !important;
  color: var(--text-dark) !important;
  box-shadow: 0 10px 25px rgba(107,76,163,0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--border-soft);
}

.material-item:hover {
  transform: translateX(10px);
  background: var(--primary);
  color: white !important;
}

.material-item i {
  font-size: 1.8rem;
  margin-right: 15px;
  color: var(--primary);
}

.material-item:hover i {
  color: white;
}

.material-item span {
  flex-grow: 1;
  font-weight: 500;
  text-align: left;
}

.material-item small {
  opacity: 0.6;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 1px;
}

.playlist-container {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  padding-top: 15px;
}

.btn-playlist {
  display: flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, #6b4ca3, #b79ce6);
  color: white !important;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(107,76,163,0.3);
  transition: transform 0.3s ease;
}

.btn-playlist:hover {
  transform: scale(1.05);
}

.btn-playlist i {
  font-size: 1.5rem;
}

.btn-playlist strong {
  display: block;
  font-size: 1rem;
}

.btn-playlist span {
  font-size: 0.8rem;
  opacity: 0.9;
}
