/* =========================
   SIDEBAR IZQUIERDO (AISLADO)
   ========================= */

.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 260px;
  height: 100vh;
  background: #0b0b0b;
  color: #ffffff;
  z-index: 2000;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  left: 0;
}

/* Header del sidebar */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #222;
}

.sidebar-title {
  font-size: 16px;
  font-weight: bold;
}

.sidebar-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* Navegación */
.sidebar-nav {
  padding: 16px 18px;
  overflow-y: auto;
}

.sidebar-section {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin: 18px 0 8px;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin: 10px 0;
}

.sidebar-nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 14px;
}

.sidebar-nav a:hover {
  color: #ffcc00;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1900;
  display: none;
}

.overlay.show {
  display: block;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: #111;
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1300;
}

.sidebar.open {
  transform: translateX(0);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1200;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.menu-btn {
  font-size: 22px;
  cursor: pointer;
  margin-right: 12px;
}

/* CONTENEDOR */
.sidebar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: #111;
  color: #fff;
  z-index: 2000;
  padding: 16px;
  transition: left 0.25s ease;
  overflow-y: auto;
}

.sidebar.open {
  left: 0;
}

/* OVERLAY */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1500;
}

.overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* HEADER */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 20px;
  font-weight: 700;
}

.sidebar-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* LINKS */
.sidebar-nav {
  font-size: 16px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-link {
  display: block;
  padding: 10px 0;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.sidebar-link:hover {
  color: #facc15;
}

/* BOTÓN SUSCRIBETE */
.btn-suscribete {
  background: #facc15;
  color: #000;
  padding: 10px 14px;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
}

/* DIVISORES */
.sidebar-divider {
  height: 1px;
  background: #222;
  margin: 18px 0;
}

/* GRUPOS */
.sidebar-group-title {
  font-weight: 600;
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.plus {
  opacity: 0.7;
}

/* SUBLISTA */
.sidebar-sublist {
  list-style: none;
  padding-left: 12px;
  margin-top: 6px;
}

.sidebar-sublist li a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: #cbd5f5;
  text-decoration: none;
}

.sidebar-sublist li a:hover {
  color: #fff;
}

/* REDES */
.sidebar-section-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.sidebar-social {
  display: flex;
  gap: 12px;
}

.sidebar-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* NEWSLETTER */
.sidebar-newsletter p {
  font-size: 14px;
  margin-bottom: 8px;
}

.sidebar-newsletter input {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: none;
  margin-bottom: 8px;
}

.sidebar-newsletter button {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: none;
  background: #facc15;
  font-weight: 700;
  cursor: pointer;
}

.btn-suscribete {
  display: inline-block;
  margin: 12px 0;
  padding: 10px 18px;

  background: #facc15;      /* amarillo */
  color: #000 !important;   /* 🔑 letra negra */

  font-weight: 700;
  border-radius: 6px;       /* 🔑 más cuadrado */
  text-align: center;
  text-decoration: none;

  width: fit-content;
}

.link-title {
  color: #fff;
  text-decoration: none;
}

.link-title:hover {
  color: #facc15;
}

/* ===== TIPOGRAFÍA GLOBAL SIDEBAR ===== */
.sidebar {
  font-size: 16px;      /* 🔑 tamaño base */
  line-height: 1.4;
}

.sidebar a,
.sidebar span,
.sidebar div,
.sidebar li {
  font-size: inherit;
}

.sidebar .social-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.sidebar .social-icon:hover svg {
  opacity: 0.75;
}

.side-link {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
}

.side-link:hover {
  color: #facc15;
}

.sidebar .btn-suscribete {
  padding: 6px 14px;              /* 🔽 más pequeño */
  background: #facc15;
  color: #000000 !important;      /* 🔑 FORZADO */
  font-size: 14px;
  font-weight: 700;

  border-radius: 6px;
  text-align: center;
  text-decoration: none;

  display: inline-block;
}

.sidebar .newsletter input {
  width: 100%;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #444;
  margin-bottom: 6px;
}

.sidebar .newsletter button {
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 6px;
  background: #facc15;
  color: #000 !important;
  font-weight: 700;
}

/* 🔥 FORZAR que Redes sociales sea igual a Inicio */
.sidebar .side-link-title {
  display: block;
  padding: 10px 0;

  font-size: 16px;
  font-weight: 600;

  color: #ffffff !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
/* ICONOS REDES SOCIALES */
.sidebar .side-social-row svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
  color: #ffffff;
  opacity: 0.9;
}

.sidebar .side-social-row a:hover svg {
  opacity: 1;
}

/* NEWSLETTER SIDEBAR */
.sidebar .newsletter {
  margin-top: 12px;
}

.sidebar .newsletter input {
  width: 100%;
  padding: 6px 10px;
  font-size: 14px;

  border-radius: 6px;
  border: 1px solid #444;

  background: #111;
  color: #fff;
}

.sidebar .newsletter button {
  margin-top: 6px;

  padding: 6px 12px;
  font-size: 14px;

  border-radius: 6px;
  background: #facc15;
  color: #000 !important;
  font-weight: 700;

  width: auto; /* 🔑 evita que sea más pequeño que el input */
}

/* ===============================
   NEWSLETTER – SIDEBAR (FIX FINAL)
   =============================== */

.sidebar .newsletter {
  margin-top: 14px;
  padding-bottom: 25px; /* 👈 espacio inferior solicitado */
}

.sidebar .newsletter input {
  box-sizing: border-box;          /* 🔑 CLAVE */
  width: 100%;

  height: 34px;                    /* 🔑 fuerza misma altura visual */
  padding: 6px 10px;

  font-size: 14px;
  line-height: 1;

  border-radius: 6px;
  border: 1px solid #444;

  background: #111;
  color: #fff;
}

.sidebar .newsletter button {
  box-sizing: border-box;
  margin-top: 6px;

  height: 34px;                    /* 🔑 misma altura exacta */
  padding: 0 14px;

  font-size: 14px;
  line-height: 1;

  border-radius: 6px;
  background: #facc15;
  color: #000 !important;
  font-weight: 700;

  width: auto;
  cursor: pointer;
}

/* ===== ESPACIO FINAL DEL SIDEBAR ===== */
.sidebar {
  padding-bottom: 32px; /* 👈 espacio real contra el piso */
}

.sidebar input,
.sidebar button {
  box-sizing: border-box;
  height: 34px;
  line-height: 34px;   /* 🔑 ESTA ES LA CLAVE */
  font-size: 14px;
}

.sidebar input {
  padding: 0 10px;
}

.sidebar button {
  padding: 0 14px;
}

/* Espacio real al fondo del sidebar */
.sidebar-spacer {
  height: 28px;   /* ajusta: 24–40px */
  flex-shrink: 0;
}

/* ICONOS REDES — SIN CÍRCULO */
.side-social-row .social-icon {
  background: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
}

.side-social-row .social-icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  opacity: 0.9;
}

.side-social-row .social-icon:hover svg {
  opacity: 1;
}

/* =========================
   TIPOGRAFÍA UNIFICADA SIDEBAR
   ========================= */

.sidebar {
  font-size: 16px;
}

/* Links principales */
.sidebar a,
.sidebar .submenu-toggle,
.sidebar .side-title,
.sidebar .side-subtitle,
.sidebar .sidebar-section {
  font-size: 16px !important;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: #ffffff;
}

/* Submenús */
.sidebar .submenu a {
  font-size: 16px !important;
  font-weight: 400;
  opacity: 0.95;
}

/* Texto auxiliar (newsletter) */
.sidebar-newsletter p,
.sidebar-newsletter input,
.sidebar-newsletter button {
  font-size: 15px;
}

/* ===============================
   FIX DEFINITIVO ICONOS SIDEBAR
   =============================== */

/* Anular estilos heredados del footer */
.sidebar .social-icon {
  background: transparent !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* SVG limpios */
.sidebar .social-icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff !important;
  opacity: 0.9;
  display: block;
}

/* Hover elegante */
.sidebar .social-icon:hover svg {
  opacity: 1;
}

/* ===============================
   BOTÓN CERRAR SIDEBAR (X)
   =============================== */

.sidebar-close {
  font-size: 28px;          /* 🔥 mucho más grande */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  color: #ffffff;
  opacity: 0.85;

  background: transparent;
  border: none;
}

.sidebar-close:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ===============================
   ICONOS REDES SOCIALES — SIDEBAR
   =============================== */

/* contenedor */
.sidebar .side-social-row {
  gap: 18px;
}

/* enlace */
.sidebar .social-icon {
  background: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  opacity: 1 !important;
}

/* SVG REAL */
.sidebar .social-icon svg {
  width: 28px !important;      /* 🔥 MÁS GRANDES */
  height: 28px !important;
  fill: #ffffff !important;    /* 🔥 BLANCOS */
  color: #ffffff !important;
  opacity: 1 !important;
  display: block;
}

/* hover */
.sidebar .social-icon:hover svg {
  transform: scale(1.1);
}

/* ===============================
   BOTÓN CERRAR SIDEBAR — FIX FINAL
   =============================== */

#sidebar-close {
  font-size: 34px !important;   /* 🔥 GRANDE */
  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: absolute;
  top: 14px;
  right: 14px;

  cursor: pointer;
  color: #ffffff !important;
  background: none !important;
  border: none !important;
  opacity: 0.9;
}

#sidebar-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.sidebar-plan {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #e6c300; /* amarillo marca */
  letter-spacing: 0.05em;
}



/* Ocultar botón Suscríbete temporalmente */
.btn-suscribete {
    display: none !important;
}