/*
Theme Name: Publika2 Theme
Theme URI: https://publika2.com/
Author: Publika2
Author URI: https://publika2.com/
Description: Tema WordPress basado en las maquetas HTML de PUBLIKA2. Incluye header/footer independientes y assets CSS/JS externos.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: publika2
*/

/* Overrides */
.publika2-wa-icon{
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}
/* Dual logo día/noche (sin Tailwind) */
.publika2-logo--day { display: block; }
.publika2-logo--night { display: none; }

/* Cuando se activa modo oscuro */
html.dark .publika2-logo--day,
body.dark .publika2-logo--day { display: none; }

html.dark .publika2-logo--night,
body.dark .publika2-logo--night { display: block; }

/* Tamaño logo header */
header .publika2-logo { height: 14px !important; width: auto !important; }

/* Tamaño logo footer */
footer .publika2-logo { height: 14px !important; width: auto !important; }

/* ===== Mobile Drawer (Sidebar) ===== */
.mobile-overlay{
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.55); /* slate-950 */
  backdrop-filter: blur(2px);
  z-index: 60;
}

.mobile-drawer{
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(86vw, 340px);
  background: #ffffff;
  border-right: 1px solid rgba(148,163,184,.35);
  backdrop-filter: blur(10px);
  z-index: 70;

  transform: translateX(-105%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
}

html.dark .mobile-drawer,
body.dark .mobile-drawer{
  background: #0f172a; /* slate-900 */
  border-right-color: rgba(148,163,184,.18);
}

.mobile-drawer.is-open{
  transform: translateX(0);
}

.mobile-drawer__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(148,163,184,.25);
}

.mobile-drawer__brand{
  display: flex;
  align-items: center;
}

.mobile-drawer__close{
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 10px;
  color: #334155; /* slate-700 */
}

html.dark .mobile-drawer__close,
body.dark .mobile-drawer__close{
  color: #cbd5e1; /* slate-300 */
}

.mobile-drawer__nav{
  padding: 12px 14px;
  overflow: auto;
  flex: 1;
}

.mobile-drawer__list{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-drawer__list li a{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a; /* slate-900 */
  text-decoration: none;
}

html.dark .mobile-drawer__list li a,
body.dark .mobile-drawer__list li a{
  color: #e2e8f0; /* slate-200 */
}

.mobile-drawer__list li a:hover{
  background: rgba(2,6,23,.06);
}

html.dark .mobile-drawer__list li a:hover,
body.dark .mobile-drawer__list li a:hover{
  background: rgba(148,163,184,.12);
}

.mobile-drawer__footer{
  padding: 14px;
  border-top: 1px solid rgba(148,163,184,.25);
}

.mobile-drawer__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 999px;
  background: #f97316; /* naranja */
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}






/* Drawer: que el botón siempre se vea abajo */
.mobile-drawer{
  display: flex;
  flex-direction: column;
}

.mobile-drawer__nav{
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer__footer{
  position: sticky;
  bottom: 0;
  background: inherit;
}

