/*
Theme Name: PDI Proyectos de Iluminación
Theme URI: https://proyectosdeiluminacion.com/
Author: Antigravity IDE
Author URI: https://google.com/
Description: Tema personalizado ultratrifásico para PDI Proyectos de Iluminación. Diseño oscuro y premium.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pdi-theme
*/

:root {
  --color-bg: #111110;
  --color-bg-secondary: #1a1a19;
  --color-text: #ffffff;
  --color-text-muted: #8a8a8a;
  --color-accent: #D4AF37; /* Gold */
  --color-accent-hover: #f76e03; /* Orange/Gold hover */
  
  --font-primary: 'Exo', sans-serif;
  --font-secondary: 'Poppins', sans-serif;

  --transition-speed: 0.3s;
}

html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-secondary);
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

/* Force override PageLayer's background injection */
body.pagelayer-body .site-main {
  background-color: transparent !important;
}

*, *::before, *::after {
  box-sizing: inherit;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-text);
  margin-top: 0;
}

/* Base utility classes */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 12px 24px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 0; /* Sharp corners for modern look */
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--color-accent);
  transition: width var(--transition-speed) ease;
  z-index: -1;
}

.btn-primary:hover {
  color: var(--color-bg);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover::before {
  width: 100%;
}

.btn-primary .icon-arrow {
  margin-left: 8px;
  transition: transform var(--transition-speed) ease;
}

.btn-primary:hover .icon-arrow {
  transform: translateX(6px);
}

/* =========================================
   FOOTER STYLES (PREMIUM & RESPONSIVE)
   ========================================= */
.site-footer {
    background-color: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 80px;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.3;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand {
    flex: 0 0 350px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 25px;
}

.footer-logo .custom-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.footer-logo .logo-text-pdi { 
    font-size: 64px; 
    line-height: 1; 
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.footer-logo .logo-text-sub { 
    font-size: 12px; 
    letter-spacing: 4px;
    color: var(--color-text);
}

.footer-desc {
    color: var(--color-text-muted);
    line-height: 1.8;
    font-size: 14px;
}

.footer-links {
    flex: 1;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    min-width: 150px;
}

.footer-col h4 {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
    padding: 0; margin: 0;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.footer-contact ul li svg {
    width: 18px; height: 18px;
    color: var(--color-accent);
    margin-right: 15px;
    flex-shrink: 0;
}

.social-icons {
    display: flex; gap: 15px; margin-top: 30px;
}

.social-icons a {
    color: var(--color-accent);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a svg { width: 18px; height: 18px; transition: transform 0.3s ease; }

.social-icons a:hover { 
    background-color: var(--color-accent); 
    color: #111; 
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}
.social-icons a:hover svg {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 25px 0;
    color: var(--color-text-muted);
    font-size: 12px;
}

.fb-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.fb-layout p { margin: 0; }

.fb-links a {
    color: var(--color-text-muted);
    margin-left: 25px;
    transition: color 0.3s ease;
}

.fb-links a:hover { color: var(--color-accent); }

@media(max-width: 1024px) {
    .footer-layout { flex-direction: column; gap: 50px; }
    .footer-brand { flex: 0 0 auto; }
}

@media(max-width: 768px) {
    .footer-links { flex-direction: column; gap: 40px; }
    .fb-layout { justify-content: center; text-align: center; }
    .fb-links a { margin: 0 10px; }
}

/* =========================================
   PAGELAYER OVERRIDES (CRITICAL FIX)
   ========================================= */
body.pagelayer-body h1, 
body.pagelayer-body #primary h1 {
    font-family: var(--font-primary) !important;
    color: var(--color-text) !important;
}

body.pagelayer-body h2, 
body.pagelayer-body #primary h2 {
    font-family: var(--font-primary) !important;
    color: var(--color-text) !important;
}

body.pagelayer-body h3, 
body.pagelayer-body #primary h3 {
    font-family: var(--font-primary) !important;
    color: var(--color-text) !important;
}

body.pagelayer-body p, 
body.pagelayer-body #primary p {
    font-family: var(--font-secondary) !important;
    color: var(--color-text-muted) !important;
}

body.pagelayer-body a, 
body.pagelayer-body #primary a {
    text-decoration: none !important;
}

/* =========================================
   PRODUCTOS DE ENERGÍA SECTION
   ========================================= */
.section-productos {
    padding: 100px 0;
    background-color: var(--color-bg);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.producto-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 50px 30px;
    border-radius: 4px;
    text-align: center;
    transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.producto-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.prod-icon {
    color: var(--color-accent);
    margin-bottom: 25px;
    transition: color var(--transition-speed) ease;
}

.producto-card:hover .prod-icon {
    color: #fff;
}
