/**
 * RTM Pantallas LED - Main Stylesheet
 * Estilos compartidos para todo el sitio
 */

/* ============================================
   CSS RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
  line-height: 1.5;
  background: #fff;
}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Header/Nav Colors */
  --nav-bg: #141416;
  --nav-text: #dfe6ee;
  --nav-text-dim: #aab3bf;
  --accent: #e84a45;
  --accent-hover: #cf3d39;
  --active-underline: #8ea2b5;
  --shadow: rgba(0,0,0,.25);
  
  /* General Colors */
  --container: 1200px;
  --container-mobile: 100%;
  --ink: #2b2b2b;
  --muted: #6b7280;
  --border: #d3d6da;
  --field-bg: #fff;
  --cta: #59631f;
  --cta-hover: #495119;
  
  /* Footer Colors */
  --footer-bg: #141516;
  --footer-ink: #f2f3f5;
  --footer-muted: #cfd4dc;
  
  /* About Section Colors */
  --bg-dark: #0f1420;
  --ink-about: #e8eef6;
  --ink-soft: #cbd5e1;
  --label: #aeb7c5;
  --divider: rgba(255,255,255,.12);
  --bullet: #dfe6ef;
  
  /* Services Section Colors */
  --bg-light: #f3f4fa;
  --text-dark: #333333;
  --accent-dark: #1b1e18;
  --accent-arrow: #ffffff;
  
  /* Product System Colors */
  --product-card-bg: #ffffff;
  --product-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --product-card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.15);
  --product-card-radius: 12px;
  --env-indoor: #3498db;
  --env-outdoor: #e67e22;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   HEADER STYLES
   ============================================ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  box-shadow: 0 2px 14px var(--shadow);
  overflow: visible;
}

.header-container {
  position: relative;
  z-index: 10;
  background: var(--nav-bg);
  padding-top: 20px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  overflow: visible;
}

nav.navbar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1000;
  width: 100%;
  min-height: 70px;
  flex-wrap: nowrap;
}

/* Brand/Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 180px;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: 300px;
  height: 60px;
  object-fit: contain;
}

/* Navigation Center */
.nav-center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  padding-right: 40px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.menu a {
  text-decoration: none;
  color: var(--nav-text);
  font-weight: 500;
  letter-spacing: .2px;
  opacity: .95;
  transition: opacity .2s ease, color .2s ease;
}

.menu a.active {
  position: relative;
  color: var(--nav-text);
}

.menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--active-underline);
  border-radius: 2px;
}

.menu a:hover {
  opacity: 1;
}

/* CTA Button */
.cta-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* ============================================
   MOBILE MENU (Burger)
   ============================================ */
.burger-wrap {
  display: none;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
  z-index: 1001;
}

.burger {
  width: 26px;
  height: 20px;
  position: relative;
}

.burger span,
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--nav-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger span { top: 10px; }
.burger::before { top: 0; }
.burger::after { bottom: 0; }

#nav-toggle { display: none; }

/* Drawer Menu */
.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 350px;
  height: 100vh;
  background: var(--nav-bg);
  z-index: 999;
  padding: 90px 30px 30px;
  transition: right 0.35s ease;
  overflow-y: auto;
  box-shadow: -5px 0 30px rgba(0,0,0,0.3);
}

#nav-toggle:checked ~ .drawer {
  right: 0;
}

#nav-toggle:checked ~ .burger-wrap .burger span {
  opacity: 0;
}

#nav-toggle:checked ~ .burger-wrap .burger::before {
  transform: rotate(45deg) translate(5px, 6px);
}

#nav-toggle:checked ~ .burger-wrap .burger::after {
  transform: rotate(-45deg) translate(6px, -7px);
}

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

.drawer ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer ul li a {
  display: block;
  padding: 18px 0;
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.drawer ul li a:hover {
  color: var(--accent);
}

/* ============================================
   FOOTER STYLES
   ============================================ */
footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 60px 20px 30px;
}

.footer-container {
  max-width: var(--container);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--footer-ink);
}

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

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

.footer-col ul li a {
  color: var(--footer-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--footer-muted);
  font-size: 0.9rem;
}

/* ============================================
   FLOATING ACTION BUTTONS
   ============================================ */
.floating-buttons {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-whatsapp {
  background: #25D366;
}

.btn-email {
  background: var(--accent);
}

/* ============================================
   RESPONSIVE HEADER
   ============================================ */
@media (max-width: 1200px) {
  .header-container {
    padding-top: 18px;
  }
  nav.navbar {
    padding: 16px 20px;
    min-height: 70px;
  }
  .brand img {
    width: 250px;
    height: 50px;
  }
}

@media (max-width: 1024px) {
  .header-container {
    padding-top: 16px;
  }
  nav.navbar {
    padding: 14px 20px;
    min-height: 65px;
  }
  .brand img {
    width: 220px;
    height: 45px;
  }
}

@media (max-width: 1000px) {
  .nav-center {
    display: none;
  }
  
  .burger-wrap {
    display: flex;
    z-index: 1001;
    flex: 0 0 auto;
    order: 3;
    padding: 10px;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 950px) {
  .header-container {
    padding-top: 14px;
  }
  nav.navbar {
    padding: 12px 20px;
    min-height: 60px;
  }
  .brand img {
    width: 200px;
    height: 40px;
  }
  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  .header-container {
    padding-top: 12px;
  }
  nav.navbar {
    padding: 10px 15px;
    min-height: 60px;
    align-items: center;
    gap: 10px;
  }
  nav.navbar .brand {
    min-width: auto;
    flex: 1;
    justify-content: flex-start;
    order: 1;
  }
  .brand img {
    width: 180px;
    height: 36px;
  }
  .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 600px) {
  nav.navbar {
    padding: 10px;
    min-height: 55px;
  }
  .brand img {
    width: 150px;
    height: 30px;
  }
  .cta-wrapper .btn {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
  .floating-buttons {
    right: 15px;
    bottom: 15px;
  }
  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


