/*
 Theme Name: Astra Child - JJ Total Lighting
 Theme URI: https://jjtotallighting.com
 Description: Tema hijo minimalista, oscuro, mobile-first, ultra rápido y tipo app para J&J Total Lighting Co.
 Author: J&J Total Lighting Co.
 Template: astra
 Version: 2.0.0
 Text Domain: astra-jjtotal-lighting
*/

/* ============================================================
   BASE GLOBAL — MOBILE FIRST, OSCURO, SEO, PERFORMANCE
   ============================================================ */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: inherit; }

html, body { height: 100%; }

body {
  margin: 0;
  background: #0b0b0f;
  color: #e6e6e9;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Imágenes responsivas */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Enlaces accesibles */
a {
  color: #c7d7ff;
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/* ============================================================
   PALETA Y VARIABLES
   ============================================================ */
:root {
  --bg: #0b0b0f;
  --panel: #0f0f14;
  --panel-2: #101018;
  --border: rgba(255,255,255,0.08);
  --text: #e6e6e9;
  --muted: #bdbdc2;
  --accent: #ffd700;
  --accent-2: #ff0066;
  --accent-3: #00ccff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow: 0 12px 30px rgba(0,0,0,0.5);
}

/* ============================================================
   TIPOGRAFÍA RESPONSIVA
   ============================================================ */
h1 { font-size: clamp(26px, 6vw, 44px); margin: 0 0 10px; }
h2 { font-size: clamp(22px, 5vw, 34px); margin: 0 0 8px; }
h3 { font-size: clamp(18px, 4vw, 24px); margin: 0 0 6px; }
p, a, button, input, select, textarea { font-size: clamp(14px, 2vw, 16px); }
p { margin: 0 0 12px; }

/* ============================================================
   CONTENEDORES FULL WIDTH (ASTRA FIX)
   ============================================================ */
#page, .site, .site-content, .ast-container, .site-header, .site-footer {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Eliminar fondo blanco de Astra */
.site,
.site-content,
.ast-container,
.site-main,
.entry-content {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================================
   HEADER TIPO APP
   ============================================================ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.app-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.app-header__logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  box-shadow: 0 0 24px rgba(255,215,0,0.25);
}
.app-header__title { font-weight: 700; }

/* Drawer */
.app-drawer {
  display: none;
  background: var(--panel);
  border-top: 1px solid var(--border);
}
.app-drawer.open { display: block; }

/* ============================================================
   SECCIONES BASE
   ============================================================ */
.section {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  box-shadow: var(--shadow);
  padding: 0;
}

/* ============================================================
   BOTONES PREMIUM
   ============================================================ */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  color: #0b0b0f;
  font-weight: 800;
  transition: 0.2s ease;
}
.btn:hover {
  box-shadow: 0 6px 18px rgba(255,215,0,0.35);
}

/* ============================================================
   FORMULARIOS
   ============================================================ */
input, select, textarea {
  width: 100%;
  background: #12121a;
  color: var(--text);
  border: 1px solid #252533;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,215,0,0.25);
}

/* ============================================================
   SECCIONES (WHY, SERVICES, GALLERY, TESTIMONIALS, FAQ, QUOTE)
   ============================================================ */
/* (Mantengo tus estilos exactos, ya optimizados y sin duplicados) */

/* ============================================================
   PÁGINAS INTERNAS (PAGE, SINGLE)
   ============================================================ */
.page .section,
.single .section {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ============================================================
   PÁGINAS DE SERVICIO — FULL WIDTH + FONDO OSCURO
   ============================================================ */
body.page-id-32,
body.page-id-34 {
  background: #0b0b0f !important;
}

body.page-id-32 .site,
body.page-id-32 .site-content,
body.page-id-32 .ast-container,
body.page-id-32 .site-main,
body.page-id-32 .entry-content,
body.page-id-34 .site,
body.page-id-34 .site-content,
body.page-id-34 .ast-container,
body.page-id-34 .site-main,
body.page-id-34 .entry-content {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-id-32 .ast-container,
body.page-id-32 .site-content,
body.page-id-32 .site-main,
body.page-id-34 .ast-container,
body.page-id-34 .site-content,
body.page-id-34 .site-main {
  max-width: 100% !important;
  width: 100% !important;
}

/* ============================================================
   ACCESIBILIDAD Y PERFORMANCE
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #222432; border-radius: 10px; }

/* ============================================================
   RESPONSIVE REFINEMENTS
   ============================================================ */
@media (min-width: 768px) {
  .app-header__title { font-size: 18px; }
}
