/* ==========================================================================
   CUBILUX - DESIGN SYSTEM
   ========================================================================== */
:root {
  /* Colors - Industrial Branding */
  --c-primary: #1A242F;      /* Cubilux Deep Charcoal */
  --c-primary-light: #34495E;
  --c-primary-dark: #0F171E;
  
  --c-accent: #FBCB13;       /* Cubilux Gold/Yellow */
  --c-accent-dark: #D4AB0F;
  
  --c-dark: #121820;
  --c-gray-900: #111827;
  --c-gray-800: #1f2937;
  --c-gray-700: #374151;
  --c-gray-600: #4b5563;
  --c-gray-500: #6b7280;
  --c-gray-300: #d1d5db;
  --c-gray-100: #f3f4f6;
  --c-bg: #ffffff;
  --c-bg-light: #f8fafc;
  
  --whatsapp: #25D366;
  
  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Inter', sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 85px;
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--c-gray-700);
  background-color: var(--c-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--c-primary-dark);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 0.5em;
  letter-spacing: -0.5px;
}

a {
  text-decoration: none;
  color: var(--c-primary);
  transition: 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--c-accent);
  color: var(--c-primary-dark);
}

.btn-primary:hover {
  background-color: var(--c-primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}

.btn-outline:hover {
  background-color: var(--c-primary);
  color: #fff;
}

.btn-dark {
  background-color: var(--c-primary-dark);
  color: #fff;
}

.btn-dark:hover {
  background-color: var(--c-accent);
  color: var(--c-primary-dark);
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--c-bg-light); }
.bg-dark { background-color: var(--c-primary-dark); color: #fff; }

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--c-gray-600);
  max-width: 700px;
  margin-bottom: 3rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.topbar {
  background-color: var(--c-primary-dark);
  color: #fff;
  font-size: 0.85rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-contact a {
  color: #fff;
  margin-left: 20px;
  font-weight: 500;
}

.header {
  background-color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}


.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-weight: 600;
  color: var(--c-gray-800);
  font-size: 0.95rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--c-accent);
  transition: 0.3s;
}

.nav-link:hover {
  color: var(--c-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu-toggle .hamburger {
  width: 30px;
  height: 3px;
  background-color: var(--c-primary-dark);
  border-radius: 3px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--c-primary-dark);
  color: #fff;
  padding: 120px 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(15, 23, 30, 0.5), rgba(15, 23, 30, 0.8)), url('../img/hero-cerramientos-industriales-valencia.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 25px;
}

.hero h1 span {
  color: var(--c-accent);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--c-gray-300);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: #fff;
  border: 1px solid var(--c-gray-100);
  border-radius: 8px;
  overflow: hidden;
  transition: 0.4s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.service-img {
  height: 200px;
  background-color: var(--c-gray-100);
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-info {
  padding: 30px;
  flex-grow: 1;
}

.service-info h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.service-info p {
  color: var(--c-gray-600);
  margin-bottom: 20px;
}

.service-link {
  font-weight: 700;
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.service-link:hover {
  gap: 10px;
  color: var(--c-accent-dark);
}

/* ==========================================================================
   FAQ & LISTS
   ========================================================================== */
.faq-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--c-gray-100);
}

.faq-item h4 {
  margin-bottom: 10px;
  color: var(--c-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--c-primary-dark);
  color: var(--c-gray-300);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
}

.footer-logo {
  margin-bottom: 25px;
  display: block;
}

.footer-logo img {
  height: 60px;
  width: auto;
  background-color: #fff;
  padding: 8px;
  border-radius: 4px;
}

.footer-title {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 25px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--c-accent);
}

.footer-links li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  color: var(--c-gray-400);
  text-decoration: none;
  transition: 0.3s;
}

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

.whatsapp-btn-footer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  margin-top: 15px;
  transition: 0.3s;
}

.whatsapp-btn-footer:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
}

.footer-bottom {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  font-size: 0.85rem;
  color: var(--c-gray-500);
}

.footer-bottom a {
  color: var(--c-gray-400);
}

.footer-bottom a:hover {
  color: var(--c-accent);
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-caption {
  color: #fff;
  margin-top: 20px;
  font-weight: 600;
  font-size: 1.2rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 35px;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox-close:hover {
  color: var(--c-accent);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  user-select: none;
}

.lightbox-nav:hover {
  background: var(--c-accent);
  color: var(--c-primary-dark);
}

.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

@media (max-width: 1024px) {
  .lightbox-prev { left: 10px; background: rgba(0,0,0,0.5); }
  .lightbox-next { right: 10px; background: rgba(0,0,0,0.5); }
  .lightbox-close { right: 10px; top: -50px; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .header-inner { height: 70px; }
  .nav-menu { display: none; }
  .mobile-menu-toggle { display: flex; }
  .section-title { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
