/**
 * J&J Total Lighting Co.
 * HEADER + DRAWER + FOOTER – Final Production Build
 * Mobile First, Desktop Perfect, Premium UI
 */

/* ----------------------------------------------------
 * Variables
 * ---------------------------------------------------- */
:root {
  --header-bg: rgba(13,15,20,0.85);
  --header-height-mobile: 46px;
  --header-height-desktop: 48px;

  --text-color: #ffffff;
  --color-text-white: #ffffff;
  --color-text-light: #cfd8e3;
  --color-text-dim: #9fb2c7;
  --color-text-dark: #0d0f14;

  --g1: #5cc5ff;
  --g2: #7a5cff;
  --g3: #00e3a2;
  --g4: #ffd66b;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --container-max: 1200px;
}

/* ----------------------------------------------------
 * Global base
 * ---------------------------------------------------- */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #0d0f14;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ----------------------------------------------------
 * HEADER
 * ---------------------------------------------------- */
.pl-header {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height-mobile);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 1024px) {
  .pl-header {
    height: var(--header-height-desktop) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

.pl-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  gap: 20px;
}

@media (min-width: 1024px) {
  .pl-container {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
}

/* Logo */
.pl-logo-group {
  display: flex;
  align-items: left;
  flex-shrink: 0;
}

.pl-brand {
  font-weight: 800;
  font-size: 0.6rem;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ----------------------------------------------------
 * MENÚ DESKTOP
 * ---------------------------------------------------- */
.pl-nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .pl-nav-desktop {
    display: flex !important;
    flex: 1 !important;
    justify-content: center !important;
  }

  .pl-menu-desktop {
    display: flex !important;
    list-style: none !important;
    gap: 32px;
    margin: 0;
    padding: 0;
  }

  .pl-menu-desktop li a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: 0.3s ease;
  }

  .pl-menu-desktop li a:hover {
    color: var(--g1);
  }
}

/* ----------------------------------------------------
 * ACTIONS
 * ---------------------------------------------------- */
.pl-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Teléfono solo desktop */
.pl-phone-desk {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  display: none;
}

@media (min-width: 1024px) {
  .pl-phone-desk {
    display: flex;
    align-items: center;
    gap: 6px;
  }
}

/* FREE QUOTE */
.pl-quote-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.78rem;
  text-decoration: none;
  transition: 0.3s;
  white-space: nowrap;
}

.pl-quote-pill:hover {
  background: #fff;
  color: #000;
}

/* Hamburguesa solo móvil */
.pl-menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 5px;
}

@media (min-width: 1024px) {
  .pl-menu-toggle {
    display: none !important;
  }
}

/* ----------------------------------------------------
 * DRAWER (MOBILE MENU)
 * ---------------------------------------------------- */
.pl-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #0d0f14;
  z-index: 2000;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 40px 20px;
  overflow-y: auto;
}

.pl-drawer.is-open {
  right: 0;
}

.pl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1500;
  display: none;
  backdrop-filter: blur(4px);
}

.pl-overlay.active {
  display: block;
}

.pl-drawer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pl-drawer-list li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ----------------------------------------------------
 * FOOTER
 * ---------------------------------------------------- */
.pl-footer {
  position: relative;
  background:
    radial-gradient(1200px 600px at 50% 0%,
      rgba(92,197,255,0.15) 0%,
      rgba(122,92,255,0.12) 30%,
      rgba(0,227,162,0.10) 60%,
      rgba(13,15,20,1) 100%);
  color: var(--color-text-light);
  padding: 40px 20px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.pl-content-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 8px;
}

.pl-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 16px 0 24px;
}

@media (min-width: 768px) {
  .pl-footer-grid {
    grid-template-columns: 1.2fr .8fr .8fr;
  }
}

.pl-footer-block {
  display: grid;
  gap: 8px;
}

.pl-footer-heading {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--color-text-white);
  font-weight: 800;
}

.pl-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.pl-footer-links a {
  color: var(--color-text-light);
  font-weight: 600;
}

.pl-footer-links a:hover {
  color: var(--g1);
}

.pl-footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pl-footer-social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  color: var(--color-text-white);
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.pl-footer-social a:hover {
  transform: translateY(-1px);
  border-color: var(--g1);
  color: var(--g1);
}

.pl-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0 4px;
  color: var(--color-text-dim);
  font-size: .95rem;
  text-align: center;
}

/* ----------------------------------------------------
 * ✅ FIX — HEADER MÓVIL ULTRA COMPACTO + FOOTER CENTRADO
 * ---------------------------------------------------- */
@media (max-width: 1023px) {

  /* ✅ Header ultra compacto */
  .pl-header {
    height: 44px !important;
  }

  .pl-container {
    padding: 0 10px !important;
    gap: 6px !important;
  }

  /* ✅ Nombre ultra compacto */
  .pl-brand {
    font-size: 0.55rem !important;
    letter-spacing: 0.22px !important;
  }

  /* ✅ FREE QUOTE ultra compacto */
  .pl-quote-pill {
    padding: 3px 10px !important;
    font-size: 0.6rem !important;
    border-radius: 26px !important;
  }

  /* ✅ Icono de llamada */
  .pl-phone-mobile {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1rem !important;
    color: #fff !important;
  }

  .pl-phone-desk {
    display: none !important;
  }

  /* ✅ Acciones compactas */
  .pl-actions {
    gap: 6px !important;
  }

  .pl-menu-toggle {
    font-size: 1.05rem !important;
    padding: 2px !important;
  }

  /* ✅ Footer centrado */
  .pl-footer,
  .pl-footer-grid,
  .pl-footer-block,
  .pl-footer-links,
  .pl-footer-social {
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .pl-footer-social {
    justify-content: center !important;
  }
}
/* ✅ Imagen del logo */
.pl-logo-img {
  height: 28px;
  width: auto;
  margin-right: 10px;
  flex-shrink: 0;
}

/* ✅ Texto de marca junto al logo */
.pl-brand {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}

.pl-brand-text {
  display: inline-block;
}
@media (max-width: 1023px) {
  .pl-logo-img {
    height: 22px !important;
    margin-right: 6px !important;
  }

  .pl-brand-text {
    font-size: 0.85rem !important;
  }
}
