/* ==========================================================================
   FAICO COMERCIALIZADORA — Hoja de estilos principal
   Paleta: #FFC107 (amarillo) · #1F2937 (grafito) · #DC2626 (rojo)
   Tipografías: Montserrat (titulares) · Inter (cuerpo)
   ========================================================================== */

/* -------- Reset y variables -------- */
:root {
  --primary: #FFC107;
  --primary-dark: #E0A800;
  --secondary: #1F2937;
  --secondary-light: #374151;
  --accent: #DC2626;
  --accent-dark: #B91C1C;
  --gray: #6B7280;
  --gray-light: #9CA3AF;
  --bg-light: #F9FAFB;
  --bg-white: #FFFFFF;
  --border: #E5E7EB;

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1200px;
  --radius: 6px;
  --radius-lg: 12px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.14);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--secondary);
  background: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dark); }

/* -------- Tipografía -------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  display: inline-block;
}

.section-title {
  margin-bottom: 1rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin-top: 1rem;
}
.section-title.center { text-align: center; }
.section-title.center::after { margin-left: auto; margin-right: auto; }

.lead {
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 640px;
  margin-bottom: 2rem;
}
.lead.center { margin-left: auto; margin-right: auto; text-align: center; }

/* -------- Utilidades -------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}
.section-sm { padding: 3rem 0; }
.section-dark {
  background: var(--secondary);
  color: var(--bg-light);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: #fff;
}
.section-dark .lead { color: var(--gray-light); }
.section-light { background: var(--bg-light); }

/* -------- Botones -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.875rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--secondary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--secondary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--secondary);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

/* -------- Topbar -------- */
.topbar {
  background: var(--secondary);
  color: var(--bg-light);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar a {
  color: var(--bg-light);
  margin-right: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.topbar a:hover { color: var(--primary); }
.topbar .social a { margin-right: 0.75rem; margin-left: 0; }

/* -------- Header / Navbar -------- */
.header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--secondary);
}
.logo img { height: 54px; width: auto; }
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
}
.logo-text small {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gray);
  text-transform: uppercase;
  margin-top: 2px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.menu a {
  color: var(--secondary);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  position: relative;
  padding: 0.5rem 0;
}
.menu a:hover { color: var(--accent); }
.menu a.active::after,
.menu a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.menu .has-submenu { position: relative; }
.menu .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}
.menu .has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.menu .submenu a {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.menu .submenu a:last-child { border-bottom: none; }
.menu .submenu a::after { display: none; }
.menu .submenu a:hover {
  background: var(--bg-light);
  color: var(--accent);
  padding-left: 1.5rem;
}

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--secondary);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* -------- Footer -------- */
.footer {
  background: var(--secondary);
  color: var(--bg-light);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer h4 {
  color: var(--primary);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer p, .footer a, .footer li {
  color: var(--gray-light);
  font-size: 0.9375rem;
}
.footer a:hover { color: var(--primary); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer .slogan {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--primary);
  margin-top: 1rem;
  font-size: 1.125rem;
}
.footer .social-row { margin-top: 1.25rem; display: flex; gap: 0.75rem; }
.footer .social-row a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: var(--transition);
}
.footer .social-row a:hover {
  background: var(--primary);
  color: var(--secondary);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-light);
}
.footer-bottom a { color: var(--gray-light); margin: 0 0.5rem; }

/* -------- Botón WhatsApp flotante -------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 90;
  transition: var(--transition);
  animation: pulse 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
}
@keyframes pulse {
  0% { box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* -------- HERO -------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--secondary);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-maquinaria.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31,41,55,0.85) 0%, rgba(31,41,55,0.7) 60%, rgba(31,41,55,0.3) 100%);
  z-index: 2;
}
.hero .container {
  position: relative;
  z-index: 3;
  padding: 6rem 1.5rem;
}
.hero-content { max-width: 780px; }
.hero .eyebrow { color: var(--primary); }
.hero h1 {
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero h1 span { color: var(--primary); }
.hero-lead {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  max-width: 780px;
}
.hero-stat .num {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.375rem;
}

/* -------- Barra de sectores -------- */
.sectors {
  background: var(--bg-light);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.sectors-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.sector-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sector-item svg { color: var(--primary); flex-shrink: 0; }

/* -------- Grid de servicios -------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,193,7,0.05) 100%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--accent);
}
.service-card:hover::before { opacity: 1; }
.service-card .icon {
  width: 56px;
  height: 56px;
  background: var(--bg-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.service-card:hover .icon {
  background: var(--primary);
  color: var(--secondary);
}
.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}
.service-card p {
  color: var(--gray);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}
.service-card .link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.service-card .link::after {
  content: '→';
  transition: var(--transition);
}
.service-card:hover .link::after { transform: translateX(4px); }

/* -------- ¿Por qué Faico? -------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.why-item {
  text-align: center;
  padding: 2rem 1rem;
}
.why-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.why-item:hover .why-icon {
  transform: rotateY(360deg);
  background: var(--accent);
  color: #fff;
}
.why-item h3 { margin-bottom: 0.75rem; }
.why-item p { color: rgba(255,255,255,0.75); }

/* -------- Bloque destacado humanitario -------- */
.highlight-block {
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.highlight-image {
  background-size: cover;
  background-position: center;
  min-height: 420px;
}
.highlight-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.highlight-content .eyebrow { color: var(--accent); }
.highlight-content h2 { margin-bottom: 1rem; }
.highlight-content ul {
  list-style: none;
  margin: 1.5rem 0;
}
.highlight-content ul li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.75rem;
  color: var(--gray);
}
.highlight-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
  width: 24px;
  height: 24px;
  background: rgba(255,193,7,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

/* -------- CTA final -------- */
.cta-final {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,193,7,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-final .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.cta-final h2 { color: #fff; margin-bottom: 1rem; }
.cta-final p { color: rgba(255,255,255,0.8); }
.cta-form {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.cta-form h3 { margin-bottom: 1.5rem; color: var(--secondary); }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--secondary);
  margin-bottom: 0.375rem;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--secondary);
  transition: var(--transition);
  background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,193,7,0.2);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* -------- Responsive -------- */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .highlight-block { grid-template-columns: 1fr; }
  .cta-final .container { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .topbar { display: none; }
  .menu-toggle { display: block; }
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
    overflow-y: auto;
  }
  .menu.open { right: 0; }
  .menu li { width: 100%; border-bottom: 1px solid var(--border); }
  .menu a { display: block; padding: 1rem 0; width: 100%; }
  .menu .submenu {
    position: static;
    box-shadow: none;
    border-top: 0;
    padding: 0 0 0 1rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--bg-light);
  }
  .menu .submenu a { padding: 0.75rem 0.5rem; }
  .nav-cta .btn { display: none; }
  .nav-cta .menu-toggle { display: block; }

  .hero { min-height: 75vh; }
  .hero .container { padding: 4rem 1.5rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2.5rem; padding-top: 1.5rem; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; }
  .highlight-content { padding: 2rem 1.5rem; }
  .cta-form { padding: 1.75rem; }
}

/* -------- Page Hero (hero compacto para subpáginas) -------- */
.page-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,193,7,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 640px; font-size: 1.0625rem; }

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-head);
  font-weight: 600;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: rgba(255,255,255,0.6); }

/* -------- Two-column content -------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col.left-heavy { grid-template-columns: 1.3fr 1fr; }
.two-col img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
@media (max-width: 900px) {
  .two-col, .two-col.left-heavy { grid-template-columns: 1fr; gap: 2rem; }
}

/* -------- Timeline -------- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0.75rem;
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  top: 0.3rem; left: -2.25rem;
  width: 16px; height: 16px;
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--primary);
}
.timeline-year {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.timeline-item h4 { margin-bottom: 0.5rem; }
.timeline-item p { color: var(--gray); margin: 0; }

/* -------- Stats bar -------- */
.stats-bar {
  background: var(--primary);
  color: var(--secondary);
  padding: 3rem 0;
}
.stats-bar .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stats-bar .stat-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stats-bar .stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
@media (max-width: 768px) {
  .stats-bar .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* -------- Product list -------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.product-item {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}
.product-item:hover {
  border-left-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.product-item-icon {
  width: 32px; height: 32px;
  background: rgba(255,193,7,0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.product-item h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.product-item p {
  font-size: 0.8125rem;
  color: var(--gray);
  margin: 0;
}

/* -------- Spec Table -------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
}
.spec-table th,
.spec-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.spec-table th {
  background: var(--secondary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:hover td { background: var(--bg-light); }
.spec-table .feature { font-weight: 600; color: var(--secondary); width: 40%; }

/* -------- Gallery (proyectos) -------- */
.gallery-filters {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--secondary);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31,41,55,0.95) 0%, rgba(31,41,55,0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #fff;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay h4 { color: #fff; margin-bottom: 0.25rem; }
.gallery-item-overlay p { font-size: 0.8125rem; color: rgba(255,255,255,0.85); margin: 0; }
.gallery-tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* -------- Contact Layout -------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
}
.contact-info {
  background: var(--secondary);
  color: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}
.contact-info h3 { color: var(--primary); margin-bottom: 1.5rem; }
.contact-info ul { list-style: none; }
.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info li:last-child { margin-bottom: 0; }
.contact-info .contact-icon {
  width: 44px; height: 44px;
  background: rgba(255,193,7,0.15);
  color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info .contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-light);
  margin-bottom: 0.25rem;
}
.contact-info .contact-value {
  color: #fff;
  font-size: 1rem;
}
.contact-info .contact-value a { color: #fff; }
.contact-info .contact-value a:hover { color: var(--primary); }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* -------- Legal content -------- */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}
.legal-content h2 {
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-content h3 { margin: 1.5rem 0 0.75rem; color: var(--accent); font-size: 1.125rem; }
.legal-content p, .legal-content ul { margin-bottom: 1rem; color: var(--gray); }
.legal-content ul { padding-left: 1.5rem; }
.legal-content ul li { margin-bottom: 0.5rem; }
.legal-content strong { color: var(--secondary); }

/* -------- Categorías overview -------- */
.category-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.category-card-image {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
}
.category-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.category-card h3 { margin-bottom: 0.75rem; }
.category-card p {
  color: var(--gray);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  flex: 1;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* -------- Certifications bar -------- */
.certs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.cert-badge {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--secondary);
  transition: var(--transition);
}
.cert-badge:hover {
  border-color: var(--primary);
  background: var(--bg-light);
  transform: translateY(-2px);
}
.cert-badge small {
  display: block;
  font-size: 0.6875rem;
  color: var(--gray);
  font-weight: 500;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* -------- Animaciones de entrada -------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
