/* ==========================================================================
   1. DESIGN TOKENS & CONTEXTUAL THEMING (VARIABLES)
   ========================================================================== */
:root {
  /* Brand Core Palette */
  --primary: #0c2140;
  --primary-light: #163661;
  --accent: #f2304c;
  --accent-hover: #d92640;
  --whatsapp: #25d366;
  --whatsapp-hover: #20bd5c;

  /* Theme Defaults: Light Base */
  --bg-color: #ffffff;
  --bg-subtle: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-title: #0c2140;
  --text-body: #475569;
  --text-muted: #94a3b8;
  --icon-filter: none;

  /* Z-Index System */
  --z-base: 1;
  --z-elevated: 10;
  --z-dropdown: 1000;
  --z-sticky: 1020;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 50px;

  /* Shadows */
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.08);
  --shadow-accent: 0 10px 20px rgba(242, 48, 76, 0.25);
  --shadow-whatsapp: 0 8px 18px rgba(37, 211, 102, 0.3);

  --transition: 0.3s ease;
}

/* Context: Light Subtle Section */
.section-light {
  --bg-color: #f8fafc;
  --bg-subtle: #ffffff;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-title: #0c2140;
  --text-body: #475569;
  --text-muted: #64748b;
  --icon-filter: none;
}

/* Context: Dark Primary Section */
.section-dark {
  --bg-color: var(--primary);
  --bg-subtle: rgba(255, 255, 255, 0.05);
  --card-bg: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.12);
  --text-title: #ffffff;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --icon-filter: brightness(0) invert(1);
}

/* ==========================================================================
   2. RESET & BASE ELEMENTS
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-body);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--transition), color var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-title);
  font-weight: 700;
  line-height: 1.2;
}

p { color: var(--text-body); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Animación de carga para formularios */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   3. STRUCTURAL UTILITIES & ATOMS
   ========================================================================== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; background-color: var(--bg-color); color: var(--text-body); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); transition: background-color var(--transition), color var(--transition); }
.section-compacta { padding: 50px 0; background-color: var(--bg-color); color: var(--text-body); }
.text-center { text-align: center; }

.sub-title {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 12px;
}

.badge-cabecera {
  display: inline-block;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }

/* --------------------------------------------------------------------------
   BOTONES UNIFICADOS (Principio DRY)
   -------------------------------------------------------------------------- */
.btn, .btn-outline, .btn-outline-dark, .btn-main, .btn-nav, .btn-dl, .btn-whatsapp-mega {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn { background: var(--accent); color: #fff; padding: 15px 30px; font-size: 15px; }
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-accent); color: #fff; }

.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; padding: 14px 28px; }
.btn-outline:hover { background: #fff; color: var(--primary); box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2); }

.btn-outline-dark { background: transparent; border: 2px solid var(--text-title); color: var(--text-title); padding: 14px 28px; }
.btn-outline-dark:hover { background: var(--text-title); color: var(--bg-color); }

.btn-main { background: var(--whatsapp); color: #fff; padding: 16px 32px; font-size: 16px; box-shadow: var(--shadow-whatsapp); }
.btn-main:hover { background: var(--whatsapp-hover); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(37, 211, 102, 0.4); color: #fff; }

.btn-nav { background: var(--primary); color: #fff !important; padding: 10px 20px; font-weight: 600; }
.btn-nav:hover { background: var(--primary-light); }

.btn-dl { background: transparent; border: 2px solid var(--text-title); color: var(--text-title); padding: 10px 20px; font-size: 14px; margin-top: 15px; }
.btn-dl:hover { background: var(--text-title); color: var(--bg-color); }

.btn-whatsapp-mega { background-color: var(--whatsapp); color: #fff !important; font-size: 12.5px; padding: 12px 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-whatsapp); margin-top: 10px; }
.btn-whatsapp-mega:hover { background-color: var(--whatsapp-hover); transform: translateY(-2px); color: #fff !important; }
.btn-whatsapp-mega i { color: #fff !important; }

/* ==========================================================================
   4. HEADER, NAVBAR & MEGA MENU UNIFICADO
   ========================================================================== */
.top-bar { background: var(--primary); color: #cbd5e1; font-size: 13px; padding: 8px 0; }
.top-bar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; align-items: center; }
.top-bar-contact { display: flex; gap: 20px; align-items: center; }
.top-bar a:hover { color: var(--accent); }
.social-icons a { margin-left: 10px; font-size: 16px; }

.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

.navbar-inner { display: flex; justify-content: space-between; align-items: center; position: relative; }
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--primary); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.menu-toggle { display: none; background: none; border: none; font-size: 28px; color: var(--primary); cursor: pointer; }

/* Dropdown y Mega Menú Directo */
.dropdown { display: inline-flex; align-items: center; height: 100%; }
.dropbtn { display: inline-flex; align-items: center; gap: 6px; padding: 15px 0; color: var(--text-title); font-weight: 600; font-size: 15px; cursor: pointer; }
.dropdown:hover .dropbtn { color: var(--accent); }

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 24px;
  z-index: var(--z-dropdown);
  box-sizing: border-box;
}

/* Puente invisible para mantener el hover */
.dropdown-content::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

.mega-menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mega-item h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--primary); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.mega-item a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius-sm); color: var(--text-body); font-size: 13px; font-weight: 500; }
.mega-item a i { color: var(--accent); font-size: 15px; flex-shrink: 0; }
.mega-item a:hover { background: var(--bg-subtle); color: var(--primary); }

.mega-callout { background: var(--bg-subtle); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }

/* ==========================================================================
   5. HERO COMPONENTS
   ========================================================================== */
.hero-swiper { width: 100%; height: 80vh; min-height: 550px; background: var(--primary); }
.hero-slide { position: relative; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(12, 33, 64, 0.85), rgba(12, 33, 64, 0.45)); }
.hero-content { position: relative; z-index: var(--z-elevated); color: #fff; max-width: 800px; padding: 0 20px; text-align: center; }
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); color: #fff; margin-bottom: 20px; }
.hero-content p { font-size: clamp(1rem, 2vw, 1.25rem); margin-bottom: 30px; color: var(--bg-subtle); }

.swiper-button-next, .swiper-button-prev { color: #fff !important; background: rgba(255, 255, 255, 0.15); width: 50px !important; height: 50px !important; border-radius: 50%; backdrop-filter: blur(4px); transition: var(--transition); }
.swiper-button-next:hover, .swiper-button-prev:hover { background: var(--accent); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 18px !important; font-weight: bold; }
.swiper-pagination-bullet-active { background: var(--accent) !important; }
.clients-swiper .swiper-wrapper {height: auto;}

/* Product & Page Heroes */
.product-hero { background-color: var(--bg-color); padding: 60px 0; border-bottom: 1px solid var(--border-color); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; }
.hero-text h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
.hero-text p { font-size: 1.1rem; margin-bottom: 30px; }

.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.tag { background: rgba(12, 33, 64, 0.08); color: var(--primary); font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 6px; }
.tag.highlight { background: rgba(242, 48, 76, 0.1); color: var(--accent); }
.hero-img-wrap img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }

.page-hero { position: relative; padding: 100px 0; background-color: var(--primary); background-size: cover; background-position: center; text-align: center; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: rgba(12, 33, 64, 0.85); }
.page-hero .container { position: relative; z-index: var(--z-elevated); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 10px; }
.breadcrumb { color: #cbd5e1; font-size: 14px; font-weight: 500; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--accent); }

/* ==========================================================================
   6. MODULE CARDS & COMPONENTS
   ========================================================================== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature-box { display: flex; gap: 15px; align-items: flex-start; }
.feature-icon { font-size: 28px; color: var(--accent); background: rgba(242, 48, 76, 0.1); padding: 12px; border-radius: var(--radius-md); flex-shrink: 0; }
.feature-box h5 { font-size: 17px; margin-bottom: 4px; }

.srv-card { background: var(--card-bg); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--border-color); }
.srv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.srv-img { height: 200px; background-size: cover; background-position: center; }
.srv-body { padding: 25px; text-align: center; }
.srv-body i { font-size: 36px; color: var(--accent); margin-bottom: 15px; }

.port-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 320px; display: block; }
.port-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.port-item:hover .port-img { transform: scale(1.06); }
.port-content { position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(12, 33, 64, 0.95)); padding: 40px 20px 20px; color: #fff; }
.port-content h3 { color: #fff; font-size: 1.25rem; }

.blog-card { background: var(--card-bg); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-color); transition: var(--transition); }
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-img { height: 220px; background-size: cover; background-position: center; }
.blog-body { padding: 25px; }
.blog-date { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.blog-body h3 { font-size: 18px; margin-bottom: 12px; }

.about-list { margin: 20px 0 30px; }
.about-list li { margin-bottom: 12px; display: flex; gap: 10px; align-items: center; font-weight: 500; }
.about-list i { color: var(--accent); font-size: 20px; }
.about-images { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; position: relative; }
.about-images img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }
.badge-box { background: var(--primary); color: #fff; padding: 20px; border-radius: var(--radius-md); position: absolute; bottom: -20px; right: -20px; max-width: 220px; box-shadow: var(--shadow-lg); }
.badge-box.alt { top: -20px; left: -20px; bottom: auto; right: auto; background: var(--accent); }
.badge-title { font-size: 24px; font-weight: 800; margin-bottom: 5px; color: #fff; }

.mv-card { background: var(--card-bg); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: var(--transition); height: 100%; }
.mv-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.mv-card i { font-size: 40px; color: var(--accent); margin-bottom: 20px; display: inline-block; background: rgba(242, 48, 76, 0.1); padding: 15px; border-radius: 12px; }
.mv-card h3 { font-size: 22px; margin-bottom: 15px; }

.value-card { display: flex; gap: 20px; align-items: flex-start; background: var(--card-bg); padding: 30px; border-radius: var(--radius-md); border: 1px solid var(--border-color); transition: var(--transition); }
.value-card:hover { box-shadow: var(--shadow-md); }
.value-icon { font-size: 28px; color: var(--accent); background: var(--bg-subtle); width: 55px; height: 55px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.value-card h3 { font-size: 18px; margin-bottom: 6px; }
.value-card p { font-size: 14px; }

.integral-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; margin-top: 50px; }
.integral-card { padding: 40px 30px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); text-align: center; transition: var(--transition); background: var(--card-bg); }
.integral-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.integral-icon { font-size: 42px; color: var(--accent); margin-bottom: 20px; display: inline-block; }
.integral-card h3 { font-size: 20px; margin-bottom: 10px; }
.integral-card p { font-size: 14px; }

.sol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.sol-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 320px; cursor: pointer; }
.sol-bg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.sol-card:hover .sol-bg { transform: scale(1.08); }
.sol-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 33, 64, 0.95) 15%, rgba(12, 33, 64, 0.2) 85%); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; }
.sol-title { font-size: 1.35rem; margin-bottom: 8px; color: #fff; transition: transform var(--transition), color var(--transition); }
.sol-desc { font-size: 0.95rem; color: #cbd5e1; opacity: 0; max-height: 0; overflow: hidden; transition: all 0.4s ease; transform: translateY(15px); }
.sol-card:hover .sol-title { transform: translateY(-4px); color: var(--accent); }
.sol-card:hover .sol-desc { opacity: 1; max-height: 100px; transform: translateY(0); }

.highlight-banner { background: var(--primary); color: #fff; padding: 60px 0; text-align: center; }
.highlight-banner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 900px; margin: 0 auto; font-weight: 400; line-height: 1.4; }
.highlight-banner strong { font-weight: 800; color: var(--accent); }

/* Carrusel y Logos de Clientes */
.clients-section { padding: 50px 0 60px; overflow: hidden; }
.clients-swiper { width: 100%; padding: 20px 0 45px !important; }
.client-slide { display: flex; align-items: center; justify-content: center; height: 80px; cursor: grab; user-select: none; }
.client-slide:active { cursor: grabbing; }
.client-slide img { max-width: 150px; max-height: 55px; width: auto; height: auto; object-fit: contain; filter: grayscale(100%); opacity: 0.65; transition: opacity 0.5s ease, filter 0.5s ease, transform 0.3s ease; }
.client-slide:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }
.clients-pagination .swiper-pagination-bullet { width: 8px; height: 8px; background: var(--border-color); opacity: 0.8; margin: 0 5px !important; transition: all 0.3s ease; }
.clients-pagination .swiper-pagination-bullet-active { background: var(--accent); width: 24px; border-radius: var(--radius-pill); opacity: 1; }

.clients-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 30px; align-items: center; justify-items: center; opacity: 0.6; margin-top: 30px; }
.clients-grid img { max-height: 60px; filter: grayscale(100%); transition: var(--transition); }
.clients-grid img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.08); }

/* ==========================================================================
   7. TECHNICAL SPECS, NORMATIVES & CERTIFICATIONS
   ========================================================================== */
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.spec-item { display: flex; gap: 20px; margin-bottom: 30px; }
.spec-icon { background: rgba(242, 48, 76, 0.1); color: var(--accent); width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.spec-text h4 { font-size: 19px; margin-bottom: 6px; }

.spec-box { background: var(--card-bg); padding: 35px 25px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); text-align: center; transition: var(--transition); }
.spec-box:hover { transform: translateY(-4px); border-color: var(--accent); }
.spec-box i { font-size: 40px; color: var(--accent); margin-bottom: 15px; display: block; }
.spec-box h3 { font-size: 20px; margin-bottom: 10px; }
.spec-box p { font-size: 14px; }

.compare-card { background: var(--card-bg); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--border-color); }
.compare-card.basic { border-top: 5px solid var(--primary); }
.compare-card.premium { border-top: 5px solid var(--accent); transform: translateY(-10px); box-shadow: 0 15px 35px rgba(242, 48, 76, 0.12); }
.compare-header { padding-bottom: 20px; border-bottom: 1px solid var(--border-color); margin-bottom: 25px; }
.compare-list li { margin-bottom: 15px; display: flex; gap: 12px; align-items: flex-start; color: var(--text-body); font-weight: 500; font-size: 15px; }
.compare-list i { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.compare-list .ti-check.primary { color: var(--primary); }
.compare-list .ti-check.accent { color: var(--accent); }
.compare-list .ti-alert-circle { color: #f59e0b; }

.downloads-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }
.download-card { background: var(--card-bg); border: 1px solid var(--border-color); padding: 35px 30px; border-radius: var(--radius-lg); display: flex; align-items: flex-start; gap: 20px; transition: var(--transition); box-shadow: var(--shadow-sm); }
.download-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dl-icon { font-size: 40px; color: var(--accent); flex-shrink: 0; }

.uni-box { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 50px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; box-shadow: var(--shadow-sm); }
.uni-logos { display: flex; gap: 30px; justify-content: center; align-items: center; flex-wrap: wrap; }
.uni-logos img { height: 80px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08)); transition: var(--transition); }
.uni-logos img:hover { transform: scale(1.06); }

.grid-certificaciones-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-top: 3rem; align-items: center; }
.badge-certificado { min-width: 180px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.img-sello { height: 60px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 1rem; filter: var(--icon-filter); }
.titulo-sello { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; text-transform: uppercase; }
.texto-sello { color: var(--text-muted); font-size: 0.875rem; }

.grid-normativas-compacto { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.caja-norma-compacta { background: var(--bg-subtle); border-radius: var(--radius-md); padding: 1.5rem; border: 1px solid var(--border-color); }
.titulo-caja-norma { font-size: 1.2rem; font-weight: 800; margin-bottom: 1.25rem; }
.lista-badges { display: flex; flex-direction: column; gap: 0.4rem; }
.item-norma { display: flex; align-items: center; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border-color); }
.item-norma:last-child { border-bottom: none; }
.badge-rojo { background-color: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: var(--radius-sm); white-space: nowrap; min-width: 100px; text-align: center; }
.texto-norma { font-size: 0.85rem; line-height: 1.3; }

/* ==========================================================================
   8. FORMS & FAQ
   ========================================================================== */
.form-card { background: var(--card-bg); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-title); font-size: 14px; }
.form-input { width: 100%; padding: 14px; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-family: inherit; font-size: 15px; background-color: var(--bg-color); color: var(--text-body); transition: var(--transition); }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242, 48, 76, 0.12); outline: none; }

.info-box { padding: 30px; background: var(--bg-subtle); border-radius: var(--radius-lg); }
.info-row { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; font-size: 15px; }
.info-row i { color: var(--accent); font-size: 20px; }

.faq-container { max-width: 850px; margin: 40px auto 0; }
details { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); margin-bottom: 15px; transition: var(--transition); overflow: hidden; }
details[open] { border-color: var(--text-title); box-shadow: var(--shadow-sm); }
summary { font-weight: 700; color: var(--text-title); cursor: pointer; padding: 20px 25px; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.4rem; color: var(--accent); transition: transform var(--transition); }
details[open] summary::after { content: '−'; }
.faq-content { padding: 0 25px 25px; color: var(--text-body); font-size: 1rem; border-top: 1px solid var(--border-color); margin-top: 5px; padding-top: 20px; }

/* ==========================================================================
   9. DUAL CTA & FOOTER
   ========================================================================== */
.dual-cta { display: grid; grid-template-columns: 1fr 1fr; }
.cta-box { padding: 90px 40px; text-align: center; color: #fff; background-size: cover; background-position: center; position: relative; }
.cta-box::before { content: ''; position: absolute; inset: 0; background: rgba(12, 33, 64, 0.9); z-index: var(--z-base); transition: var(--transition); }
.cta-box.red::before { background: rgba(242, 48, 76, 0.9); }
.cta-box:hover::before { opacity: 0.82; }
.cta-content { position: relative; z-index: var(--z-elevated); max-width: 450px; margin: 0 auto; }
.cta-content h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 15px; }
.cta-content p { margin-bottom: 30px; font-size: 1.05rem; color: var(--bg-subtle); }

.footer { background: var(--primary); color: #94a3b8; padding: 70px 0 20px; border-top: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 50px; }
.footer h4 { color: #fff; font-size: 18px; margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.libro-reclamaciones { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.05); padding: 10px 20px; border-radius: var(--radius-md); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; transition: var(--transition); width: max-content; }
.libro-reclamaciones:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.libro-icon { font-size: 22px; color: var(--accent); }

/* ==========================================================================
   10. MÓDULO DE VALLAS & CONFIGURADOR INTERACTIVO
   ========================================================================== */
.hero-vallas-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; }
.hero-vallas-grid .hero-img-wrap img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; transition: opacity 0.4s ease; }
.hero-vallas-grid .hero-img-wrap img.fade { opacity: 0; }
.hero-color-dots { display: flex; gap: 8px; margin-top: 14px; }
.hero-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid transparent; opacity: 0.45; cursor: pointer; transition: opacity var(--transition), transform var(--transition); padding: 0; }
.hero-dot.active { opacity: 1; transform: scale(1.3); border-color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }

.calidad-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.calidad-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 35px 30px; transition: var(--transition); }
.calidad-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.calidad-card .spec-icon { background: rgba(242, 48, 76, 0.1); color: var(--accent); width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px; }
.calidad-card h3 { font-size: 18px; margin-bottom: 10px; }
.calidad-card p { font-size: 14px; line-height: 1.7; }

.mat-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; margin-top: 50px; }
.mat-detail-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 30px 25px; display: flex; gap: 18px; align-items: flex-start; transition: var(--transition); }
.mat-detail-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.mat-detail-card .mat-icon { background: rgba(12, 33, 64, 0.08); color: var(--primary); width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.mat-detail-card h4 { font-size: 16px; margin-bottom: 8px; }
.mat-detail-card p { font-size: 13px; line-height: 1.65; }

.conf-wrap { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; background: var(--card-bg); box-shadow: var(--shadow-md); }
.conf-left { padding: 35px; border-right: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 28px; }
.conf-right { padding: 35px; background: var(--bg-subtle); display: flex; flex-direction: column; gap: 24px; }
.conf-img-box { background: var(--bg-subtle); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; height: 220px; overflow: hidden; border: 1px solid var(--border-color); }
.conf-img-box img { max-width: 90%; max-height: 90%; object-fit: contain; transition: opacity 0.25s ease; }
.conf-img-box img.fade { opacity: 0; }

.conf-color-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-body); margin-top: 10px; font-weight: 600; }
.conf-color-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.conf-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; display: block; }

.conf-model-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.conf-model-btn { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 14px; cursor: pointer; background: var(--card-bg); text-align: left; transition: var(--transition); }
.conf-model-btn:hover { background: var(--bg-subtle); }
.conf-model-btn.active { border-color: var(--primary); border-width: 2px; background: var(--card-bg); }
.conf-model-btn .mname { font-size: 14px; font-weight: 700; color: var(--text-title); }
.conf-model-btn .mdim { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.conf-model-btn .mspecs { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.conf-model-btn .mspecs span { font-size: 11px; color: var(--text-body); background: var(--bg-subtle); border-radius: var(--radius-pill); padding: 2px 8px; border: 1px solid var(--border-color); }

.conf-swatch-row { display: flex; gap: 10px; flex-wrap: wrap; }
.conf-swatch { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; outline: none; transition: transform 0.15s ease, border-color 0.15s ease; flex-shrink: 0; }
.conf-swatch:hover { transform: scale(1.15); }
.conf-swatch.active { border-color: var(--primary); transform: scale(1.1); }

.conf-mat-list { display: flex; flex-direction: column; gap: 8px; }
.conf-mat-btn { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 10px 14px; cursor: pointer; background: var(--card-bg); text-align: left; font-size: 13px; font-weight: 600; color: var(--text-body); transition: var(--transition); display: flex; align-items: center; gap: 10px; }
.conf-mat-btn:hover { background: var(--bg-subtle); color: var(--text-title); }
.conf-mat-btn.active { border-color: var(--accent); border-width: 2px; color: var(--accent); background: rgba(242, 48, 76, 0.03); }
.conf-mat-btn i { font-size: 16px; color: var(--accent); flex-shrink: 0; }
.conf-mat-info { font-size: 13px; color: var(--text-body); margin-top: 10px; line-height: 1.55; padding: 12px 14px; background: var(--card-bg); border-radius: var(--radius-md); border: 1px solid var(--border-color); border-left: 3px solid var(--accent); }

.conf-qty-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.conf-qty-btn { width: 36px; height: 36px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--card-bg); cursor: pointer; font-size: 18px; color: var(--text-body); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition); }
.conf-qty-btn:hover { background: var(--bg-subtle); color: var(--text-title); border-color: var(--text-title); }
.conf-qty-input { width: 72px; height: 36px; text-align: center; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-size: 15px; font-weight: 700; color: var(--text-title); background: var(--card-bg); outline: none; font-family: inherit; transition: border-color var(--transition); }
.conf-qty-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 48, 76, 0.1); }

.conf-resumen { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.conf-res-row { display: flex; justify-content: space-between; align-items: flex-start; font-size: 13px; }
.conf-res-row .lbl { color: var(--text-muted); flex-shrink: 0; }
.conf-res-row .val { font-weight: 600; color: var(--text-title); text-align: right; max-width: 58%; }
.conf-res-divider { border: none; border-top: 1px solid var(--border-color); margin: 2px 0; }
.conf-res-total .lbl { font-size: 14px; font-weight: 700; color: var(--text-title); }
.conf-res-total .val { font-size: 15px; font-weight: 800; color: var(--accent); }
.conf-tip { font-size: 12px; color: var(--text-muted); text-align: center; line-height: 1.5; }

/* ==========================================================================
   11. PÁGINAS LEGALES & RECLAMACIONES
   ========================================================================== */
.legal-wrap { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 2.5rem; }
.legal-section h2 { font-size: 1.25rem; font-weight: 700; color: var(--text-title); margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--accent); display: inline-block; }
.legal-section p, .legal-section li { font-size: 15px; line-height: 1.8; color: var(--text-body); }
.legal-section ul { list-style: disc; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.5rem; }
.legal-section strong { color: var(--text-title); }
.legal-highlight { background: var(--bg-subtle); border: 1px solid var(--border-color); border-left: 4px solid var(--accent); border-radius: var(--radius-md); padding: 18px 22px; font-size: 14px; color: var(--text-body); line-height: 1.7; margin-top: 0.75rem; }

.rights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 1rem; }
.right-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start; transition: var(--transition); }
.right-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.right-card i { font-size: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.right-card h4 { font-size: 14px; font-weight: 700; color: var(--text-title); margin-bottom: 4px; }
.right-card p { font-size: 13px; line-height: 1.6; }

.legal-contact-box { background: var(--primary); border-radius: var(--radius-lg); padding: 35px 40px; color: #cbd5e1; }
.legal-contact-box h3 { color: #fff; margin-bottom: 12px; font-size: 1.15rem; }
.legal-contact-box .info-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.legal-contact-box .info-row i { color: var(--accent); font-size: 18px; }
.legal-contact-box a { color: #cbd5e1; }
.legal-contact-box a:hover { color: var(--accent); }
.legal-date { text-align: center; font-size: 13px; color: var(--text-muted); padding-top: 1rem; border-top: 1px solid var(--border-color); }

.reclamaciones-wrap { max-width: 900px; margin: 0 auto; border-top: 6px solid var(--primary); box-shadow: var(--shadow-lg); }
.reclamaciones-header { border-bottom: 2px solid var(--border-color); padding-bottom: 20px; margin-bottom: 30px; }
.reclamaciones-header-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 15px; }
.reclamaciones-header-top h1 { font-size: 1.6rem; color: var(--primary); margin: 0; text-transform: uppercase; }
.reclamaciones-badge { font-size: 13px; font-weight: 700; color: var(--text-title); background: var(--bg-subtle); padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); letter-spacing: 0.04em; }
.reclamaciones-proveedor { background: var(--bg-subtle); padding: 18px 20px; border-radius: var(--radius-md); border: 1px solid var(--border-color); font-size: 14px; color: var(--text-body); }
.reclamaciones-proveedor p { margin-bottom: 6px; }
.reclamaciones-proveedor p:last-child { margin-bottom: 0; }
.reclamaciones-section-title { background: var(--primary); color: #fff; padding: 12px 20px; font-size: 15px; font-weight: 700; border-radius: var(--radius-sm); margin: 30px 0 20px; letter-spacing: 0.02em; }
.reclamaciones-radio-group { display: flex; gap: 25px; margin-top: 10px; font-size: 15px; }
.reclamaciones-radio-box { display: flex; gap: 30px; margin-top: 10px; font-size: 15px; background: var(--bg-subtle); padding: 15px 20px; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.reclamaciones-radio-label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-title); }
.reclamaciones-legales { font-size: 12px; line-height: 1.6; color: var(--text-muted); margin: 25px 0; padding-top: 20px; border-top: 1px solid var(--border-color); }
.reclamaciones-legales-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 12px; }
.reclamaciones-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--text-body); cursor: pointer; }
.reclamaciones-consent input { margin-top: 3px; accent-color: var(--accent); }

/* ==========================================================================
   12. CATALOGO UNIFICADO (SERVICIOS, PRODUCTOS Y SOLUCIONES)
   ========================================================================== */
.featured-card { background: var(--card-bg); border: 1px solid var(--border-color); border-left: 5px solid var(--accent); border-radius: var(--radius-lg); padding: 35px 30px; box-shadow: var(--shadow-md); transition: var(--transition); }
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; margin-top: 40px; }
.process-step { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 35px 25px; position: relative; transition: var(--transition); }
.process-step:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-number { position: absolute; top: 15px; right: 20px; font-size: 2.5rem; font-weight: 800; color: var(--border-color); line-height: 1; user-select: none; transition: var(--transition); }
.process-step:hover .step-number { color: rgba(242, 48, 76, 0.2); }
.process-step .spec-icon { margin-bottom: 20px; }
.process-step h4 { font-size: 1.15rem; margin-bottom: 10px; }
.process-step p { font-size: 14px; line-height: 1.6; }

.services-filter-bar { display: flex; gap: 10px; overflow-x: auto; padding: 5px 4px 15px 4px; margin-bottom: 35px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.services-filter-bar::-webkit-scrollbar { display: none; }
.filter-btn { background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-body); padding: 12px 20px; border-radius: var(--radius-pill); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; transition: var(--transition); box-shadow: var(--shadow-sm); }
.filter-btn:hover { background: var(--card-bg); border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 12px rgba(12, 33, 64, 0.25); }

/* Componente Unificado Catalog Grid 1:1 */
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 35px; }
.catalog-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.catalog-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.catalog-thumb { width: 100%; aspect-ratio: 1 / 1; position: relative; overflow: hidden; background-color: var(--bg-subtle); display: flex; align-items: center; justify-content: center; padding: 20px; }
.catalog-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.catalog-thumb.cover { padding: 0; }
.catalog-thumb.cover img { object-fit: cover; }
.catalog-card:hover .catalog-thumb img { transform: scale(1.06); }
.catalog-badge { position: absolute; top: 12px; right: 12px; background: rgba(12, 33, 64, 0.9); backdrop-filter: blur(4px); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); z-index: var(--z-elevated); }
.catalog-body { padding: 22px 20px; display: flex; flex-direction: column; flex-grow: 1; }
.catalog-body .catalog-icon { font-size: 26px; color: var(--accent); margin-bottom: 10px; display: inline-block; }
.catalog-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text-title); line-height: 1.3; }
.catalog-body p { font-size: 14px; line-height: 1.6; color: var(--text-body); margin-bottom: 18px; flex-grow: 1; }
.catalog-link { display: inline-flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 14px; background: var(--bg-subtle); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--primary); font-size: 14px; font-weight: 700; transition: var(--transition); }
.catalog-card:hover .catalog-link { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Vistas de tarjeta móvil y acciones */
.service-mobile-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 24px; }
.service-mobile-card:active { transform: scale(0.98); }
.service-card-img { height: 190px; width: 100%; object-fit: cover; }
.service-card-body { padding: 24px 20px; display: flex; flex-direction: column; flex-grow: 1; }
.service-card-body h3 { font-size: 20px; margin-bottom: 10px; color: var(--text-title); }
.service-card-body p { font-size: 14px; line-height: 1.6; margin-bottom: 20px; color: var(--text-body); flex-grow: 1; }
.service-actions { display: flex; gap: 10px; align-items: center; }

.btn-service-detail {
  flex-grow: 1;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--primary);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  transition: var(--transition);
}
.btn-service-detail:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-service-wa {
  background: var(--whatsapp);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: var(--shadow-whatsapp);
  transition: var(--transition);
}
.btn-service-wa:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.05);
}

/* Tablas Responsivas */
.table-responsive { width: 100%; overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); background: var(--card-bg); margin-top: 40px; }
.services-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.services-table th { background: var(--primary); color: #fff; padding: 18px 20px; font-weight: 700; }
.services-table td { padding: 16px 20px; border-bottom: 1px solid var(--border-color); color: var(--text-body); }
.services-table tr:last-child td { border-bottom: none; }
.services-table tr:hover td { background: var(--bg-subtle); }
.check-icon { color: var(--accent); font-size: 20px; font-weight: bold; }

/* ==========================================================================
   13. RESPONSIVE BREAKPOINTS (MEDIA QUERIES CENTRALIZADAS)
   ========================================================================== */

/* 1024px: Tablets Horizontales & Laptops Pequeñas */
@media (max-width: 1024px) {
  .grid-2, .hero-grid, .specs-grid, .dual-cta, .uni-box { grid-template-columns: 1fr; }
  .uni-box { text-align: center; padding: 35px 25px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .compare-card.premium { transform: translateY(0); }
  .hero-vallas-grid, .conf-wrap { grid-template-columns: 1fr; }
  .conf-left { border-right: none; border-bottom: 1px solid var(--border-color); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 768px: Tablets Verticales & Móviles Grandes */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .top-bar { display: none; }
  .menu-toggle { display: block; }
  
  .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-color); flex-direction: column; padding: 25px; box-shadow: var(--shadow-lg); }
  .nav-links.active { display: flex; }
  
  /* Navbar Móvil Dropdown */
  .dropdown { width: 100%; display: block; }
  .dropbtn { width: 100%; justify-content: space-between; padding: 10px 0; }
  .dropdown-content { position: static; border: none; box-shadow: none; padding: 5px 0 15px 0; }
  .dropdown-content::before { display: none; }
  .mega-menu-grid { grid-template-columns: 1fr; gap: 15px; }
  
  .form-grid-2, .reclamaciones-legales-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-text, .hero-vallas-grid { text-align: center; }
  .tags, .hero-color-dots { justify-content: center; }
  .badge-box { position: static; margin-top: 20px; max-width: 100%; }
  
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .libro-reclamaciones { margin: 0 auto; }
  
  .reclamaciones-header-top { flex-direction: column; align-items: flex-start; }
}

/* 640px: Móviles Standard */
@media (max-width: 640px) {
  .catalog-grid { grid-template-columns: 1fr; }
}

/* >= 768px - 1024px: Layouts Específicos Desktop/Tablet */
@media (min-width: 768px) {
  .services-filter-bar { justify-content: center; overflow-x: visible; }
  .service-mobile-card { margin-bottom: 0; }
}

@media (min-width: 1024px) {
  #services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

/* Reducción de Movimiento de Sistema */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   VALORES CORPORATIVOS (GRID 3x2 SIMÉTRICO & DRY)
   ========================================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(242, 48, 76, 0.12);
  color: var(--accent);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.value-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-title);
  line-height: 1.3;
}

.value-content p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-body);
  margin: 0;
}

/* ==========================================================================
   BREAKPOINTS RESPONSIVOS
   ========================================================================== */
@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .value-card {
    padding: 22px 18px;
  }
}

/* Utilidades de texto */
.text-justify {
  text-align: justify;
  text-justify: inter-word;
}

.section-header-center {
  max-width: 700px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-subtitle {
  margin-top: 10px;
  color: var(--text-body);
}

.badge-desc {
  font-size: 13px;
  line-height: 1.3;
  margin: 0;
  color: #fff;
}

.image-wrapper {
  position: relative;
}

/* Fondos CTA centralizados */
.cta-bg-engineering {
  background-image: url('/assets/images/cta-fondoazul.jpg');
}

.cta-bg-careers {
  background-image: url('/assets/images/cta-fondorojo.jpg');
}

.about-text .h2 {
  margin-bottom: 10px!important;
}