/*
  ════════════════════════════════════════════════════════
  Ferretería Industrial — styles.css
  Arquitectura: variables → reset → base → layout →
                components → sections → utilities → responsive
  Metodología: BEM-like. Mobile-first.
  ════════════════════════════════════════════════════════

  ÍNDICE:
  1.  Variables / Design Tokens  ← EDITAR COLORES AQUÍ
  2.  Reset & Base
  3.  Tipografía
  4.  Layout (container, grid)
  5.  Accesibilidad (skip link, focus)
  6.  Animaciones & Scroll Reveal
  7.  Botones
  8.  Header & Nav
  9.  Hero
  10. Nosotros
  11. Productos
  12. Galería
  13. Contacto & Formulario
  14. Footer
  15. WhatsApp Float
  16. Responsive (≥640, ≥1024, ≥1280)
  ════════════════════════════════════════════════════════
*/


/* ════════════════════════════════════════════════════════
   1. VARIABLES / DESIGN TOKENS
   EDITAR AQUÍ para cambiar la paleta completa del sitio
   ════════════════════════════════════════════════════════ */
:root {
  /* Paleta — Industrial Precision */
  --white:          #ffffff;
  --off-white:      #f6f6f4;       /* Fondo alterno de secciones */
  --gray-50:        #f0f0ed;
  --gray-100:       #e2e2de;
  --gray-300:       #b0b0a8;
  --gray-500:       #727268;
  --gray-700:       #3d3d38;
  --charcoal:       #1e1e1b;       /* Near-black cálido */
  --navy:           #1a2640;       /* Azul marino profundo */
  --steel:          #2e4a6e;       /* Azul acero medio */
  --steel-light:    #3d6b9e;       /* Azul acero claro */
  --accent:         #e8a820;       /* Amarillo industrial — solo acento */
  --accent-dark:    #c48c10;       /* Hover del acento */
  --danger:         #d94444;       /* Errores de formulario */
  --success:        #2ea86e;       /* Feedback positivo */

  /* Tipografía */
  --font-display:   'Barlow Condensed', sans-serif;
  --font-body:      'DM Sans', sans-serif;

  /* Escala tipográfica (fluid) */
  --fs-xs:          0.75rem;
  --fs-sm:          0.875rem;
  --fs-base:        1rem;
  --fs-md:          1.125rem;
  --fs-lg:          1.375rem;
  --fs-xl:          1.75rem;
  --fs-2xl:         2.25rem;
  --fs-3xl:         3rem;
  --fs-4xl:         4rem;

  /* Espaciado base × 4 */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --max-width:       1200px;
  --container-px:    var(--sp-6);
  --nav-height:      72px;

  /* Bordes & sombras */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --border:      1px solid var(--gray-100);
  --shadow-sm:   0 1px 4px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.14);

  /* Transiciones */
  --ease-fast:   150ms ease;
  --ease-base:   250ms ease;
  --ease-slow:   400ms cubic-bezier(0.16, 1, 0.3, 1);
}


/* ════════════════════════════════════════════════════════
   2. RESET & BASE
   ════════════════════════════════════════════════════════ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease-fast);
}

ul, ol { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, textarea, select { font-family: inherit; }

address { font-style: normal; }

::selection {
  background-color: var(--accent);
  color: var(--navy);
}


/* ════════════════════════════════════════════════════════
   3. TIPOGRAFÍA
   ════════════════════════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }

p { color: var(--gray-500); line-height: 1.75; }

strong { color: var(--charcoal); font-weight: 600; }


/* ════════════════════════════════════════════════════════
   4. LAYOUT
   ════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* Separadores visuales entre secciones */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: var(--sp-4);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-label--light { color: var(--gray-300); }
.section-label--light::before { background: var(--accent); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: var(--sp-4);
  line-height: 1.1;
}

.section-title--light { color: var(--white); }

.section-desc {
  font-size: var(--fs-md);
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.75;
}

.section-header {
  margin-bottom: var(--sp-12);
}


/* ════════════════════════════════════════════════════════
   5. ACCESIBILIDAD
   ════════════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: 9999;
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  padding: var(--sp-3) var(--sp-6);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--ease-fast);
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ════════════════════════════════════════════════════════
   6. ANIMACIONES & SCROLL REVEAL
   ════════════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-slow), transform 0.65s var(--ease-slow);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger para items en grid */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.1s; }
.fade-in:nth-child(5) { transition-delay: 0.15s; }
.fade-in:nth-child(6) { transition-delay: 0.2s; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Reduce motion — accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}


/* ════════════════════════════════════════════════════════
   7. BOTONES
   ════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background-color var(--ease-fast),
    color var(--ease-fast),
    border-color var(--ease-fast),
    transform var(--ease-fast),
    box-shadow var(--ease-fast);
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primario — amarillo sobre navy */
.btn--primary {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(232,168,32,.35);
}

/* Outline — para uso sobre hero oscuro */
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

/* Ghost — sobre fondo blanco */
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-100);
}
.btn--ghost:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Full width */
.btn--full { width: 100%; }


/* ════════════════════════════════════════════════════════
   8. HEADER & NAV
   ════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease-base), background-color var(--ease-base), box-shadow var(--ease-base);
}

.site-header.scrolled {
  background: rgba(255,255,255,.97);
  border-bottom-color: var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--charcoal);
  flex-shrink: 0;
}

.logo__text strong { color: var(--navy); font-weight: 800; }

.logo--footer .logo__text { color: var(--gray-300); }
.logo--footer .logo__text strong { color: var(--); }

/* Nav links */
.nav { margin-left: auto; }

.nav__list {
  display: none;
  gap: var(--sp-1);
  align-items: center;
}

.nav__link {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  transition: color var(--ease-fast), background-color var(--ease-fast);
  position: relative;
}

.nav__link:hover { color: var(--navy); background-color: var(--gray-50); }

.nav__link.is-active { color: var(--navy); }

.nav__link.is-active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: var(--sp-3);
  right: var(--sp-3);
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* CTA en nav */
.nav__link--cta {
  background: var(--navy);
  color: var(--white);
  padding: var(--sp-2) var(--sp-5);
}

.nav__link--cta:hover {
  background: var(--steel);
  color: var(--white);
}

.nav__link--cta.is-active::after { display: none; }

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
  transition: background-color var(--ease-fast);
  cursor: pointer;
}

.nav-toggle:hover { background: var(--gray-50); }

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform var(--ease-base), opacity var(--ease-base);
  transform-origin: center;
}

/* Hamburger → X */
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.nav.is-open .nav__list {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--white);
  padding: var(--sp-6) var(--sp-6) var(--sp-8);
  border-top: var(--border);
  box-shadow: var(--shadow-lg);
  gap: var(--sp-1);
  align-items: stretch;
}

.nav.is-open .nav__link {
  font-size: var(--fs-md);
  padding: var(--sp-4) var(--sp-4);
  border-bottom: 1px solid var(--gray-50);
}

.nav.is-open .nav__link--cta { text-align: center; margin-top: var(--sp-2); }


/* ════════════════════════════════════════════════════════
   9. HERO
   ════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--sp-20);
  padding-top: calc(var(--nav-height) + var(--sp-12));
  overflow: hidden;
}

/* Imagen de fondo */
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  /* Fallback si no hay imagen: gradiente industrial */
  background-color: var(--navy);
  background-image: linear-gradient(135deg, var(--navy) 0%, var(--charcoal) 100%);
  transform: scale(1.03);
  transition: transform 8s ease;
}

/* Overlay degradado para legibilidad del texto */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26, 38, 64, 0.88) 0%,
    rgba(26, 38, 64, 0.65) 55%,
    rgba(30, 30, 27, 0.3) 100%
  );
}

/* Líneas decorativas industriales */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.03) 0,
      rgba(255,255,255,.03) 1px,
      transparent 1px,
      transparent 60px
    );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.hero__title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  color: var(--white);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
}

.hero__title--accent { color: var(--accent); }

.hero__subtitle {
  font-size: var(--fs-md);
  color: rgba(255,255,255,.75);
  max-width: 440px;
  margin-bottom: var(--sp-8);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* Stats */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  padding: var(--sp-6) var(--sp-8);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  width: fit-content;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1;
  color: var(--white);
}

.hero__stat-plus {
  color: var(--accent);
  font-size: 0.75em;
}

.hero__stat-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

/* Separador vertical entre stats */
.hero__stat + .hero__stat {
  padding-left: var(--sp-6);
  border-left: 1px solid rgba(255,255,255,.15);
}


/* ════════════════════════════════════════════════════════
   10. NOSOTROS
   ════════════════════════════════════════════════════════ */
.about {
  padding-block: var(--sp-24);
  background: var(--white);
}

.about__grid {
  display: grid;
  gap: var(--sp-12);
  align-items: center;
}

.about__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.about__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  /* Fallback color si no hay imagen */
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
  min-height: 220px;
}

/* Badge sobre la imagen */
.about__badge {
  position: absolute;
  bottom: -20px;
  right: -16px;
  background: var(--navy);
  color: var(--white);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--white);
}

.about__badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.about__badge-text {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-top: var(--sp-1);
  line-height: 1.4;
}

.about__lead {
  font-size: var(--fs-md);
  color: var(--gray-700);
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: var(--sp-4);
}

.about__body {
  color: var(--gray-500);
  margin-bottom: var(--sp-8);
}

/* Pillars / valores */
.about__pillars {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.about__pillar {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--gray-500);
  line-height: 1.6;
}

.about__pillar strong { color: var(--charcoal); }

.about__pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(232,168,32,.1);
  color: var(--accent-dark);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.about__pillar-icon svg {
  width: 18px;
  height: 18px;
}


/* ════════════════════════════════════════════════════════
   11. PRODUCTOS
   ════════════════════════════════════════════════════════ */
.products {
  padding-block: var(--sp-24);
  background: var(--off-white);
}

.products__grid {
  display: grid;
  gap: var(--sp-6);
}

.product-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease-base), box-shadow var(--ease-base), border-color var(--ease-base);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

.product-card__img-wrap {
  position: relative;
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-slow);
  /* Fallback */
  background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
}

.product-card:hover .product-card__img { transform: scale(1.04); }

/* Tag sobre la imagen */
.product-card__tag {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  background: var(--accent);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-sm);
}

.product-card__tag--alt {
  background: var(--navy);
  color: var(--white);
}

.product-card__body {
  padding: var(--sp-6) var(--sp-6) var(--sp-8);
}

.product-card__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: var(--sp-2);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.product-card__desc {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  margin-bottom: var(--sp-5);
  line-height: 1.65;
}

.product-card__list {
  margin-bottom: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.product-card__list li {
  font-size: var(--fs-sm);
  color: var(--gray-700);
  padding-left: var(--sp-5);
  position: relative;
}

.product-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}


/* ════════════════════════════════════════════════════════
   12. GALERÍA
   ════════════════════════════════════════════════════════ */
.gallery {
  padding-block: var(--sp-24);
  background: var(--white);
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

.gallery__item {
  overflow: hidden;
  border-radius: var(--radius-md);
  margin: 0;
  background: var(--gray-100);
  /* fallback si no hay imagen */
  min-height: 220px;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 220px;
  transition: transform 0.5s var(--ease-slow), filter 0.3s ease;
}

.gallery__item:hover .gallery__img {
  transform: scale(1.04);
  filter: brightness(1.04);
}


/* ════════════════════════════════════════════════════════
   13. CONTACTO & FORMULARIO
   ════════════════════════════════════════════════════════ */
.contact {
  padding-block: var(--sp-24);
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

/* Textura de fondo sutil */
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.025) 0,
      rgba(255,255,255,.025) 1px,
      transparent 1px,
      transparent 48px
    );
  pointer-events: none;
}

.contact__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-12);
}

/* Info / datos de contacto */
.contact__intro {
  color: rgba(255,255,255,.65);
  margin-bottom: var(--sp-10);
  max-width: 400px;
  line-height: 1.75;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  color: var(--accent);
  flex-shrink: 0;
}

.contact__icon svg { width: 18px; height: 18px; }

.contact__item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact__item strong {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.contact__item span,
.contact__item a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.6);
}

.contact__link:hover { color: var(--accent); }

/* Formulario */
.contact__form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-lg);
}

.contact-form__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 2px solid var(--accent);
}

.form-row {
  display: grid;
  gap: var(--sp-4);
}

.form-group { margin-bottom: var(--sp-5); }

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.01em;
}

.form-required { color: var(--danger); }

.form-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--fs-base);
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
  appearance: none;
}

.form-input::placeholder { color: var(--gray-300); }

.form-input:hover { border-color: var(--gray-300); }

.form-input:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(46,74,110,.12);
}

.form-input.is-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(217,68,68,.1);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.65;
}

.form-error {
  display: block;
  font-size: var(--fs-xs);
  color: var(--danger);
  margin-top: var(--sp-1);
  min-height: 1rem;
}

/* Submit button states */
#submitBtn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
}

.btn__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--navy);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Form feedback */
.form-feedback {
  margin-top: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.form-feedback.is-success {
  background: rgba(46,168,110,.1);
  border: 1px solid rgba(46,168,110,.3);
  color: var(--success);
}

.form-feedback.is-error {
  background: rgba(217,68,68,.08);
  border: 1px solid rgba(217,68,68,.25);
  color: var(--danger);
}


/* ════════════════════════════════════════════════════════
   14. FOOTER
   ════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--charcoal);
  color: var(--gray-300);
}

.footer__grid {
  display: grid;
  gap: var(--sp-10);
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-12);
}

.footer__brand {
  max-width: 300px;
}

.footer__tagline {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  margin-top: var(--sp-4);
  line-height: 1.65;
}

.footer__nav-title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--sp-4);
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__nav a {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  transition: color var(--ease-fast);
}

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

.footer__address {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__address p, .footer__address a {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  transition: color var(--ease-fast);
}

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

/* Bottom bar */
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-block: var(--sp-6);
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--gray-500);
}

/* Social icons */
.footer__social {
  display: flex;
  gap: var(--sp-3);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.06);
  color: var(--gray-500);
  border-radius: var(--radius-sm);
  transition: background-color var(--ease-fast), color var(--ease-fast);
}

.footer__social-link svg { width: 18px; height: 18px; }

.footer__social-link:hover {
  background: var(--accent);
  color: var(--navy);
}


/* ════════════════════════════════════════════════════════
   15. WHATSAPP FLOAT
   EDITAR número en script.js → CONFIG.WHATSAPP
   ════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: #25d366;
  color: white;
  padding: var(--sp-3) var(--sp-5) var(--sp-3) var(--sp-4);
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform var(--ease-fast), box-shadow var(--ease-fast);
  white-space: nowrap;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 28px rgba(37,211,102,.5);
  color: white;
}

.whatsapp-float__tooltip {
  font-size: var(--fs-xs);
}

@media (max-width: 480px) {
  .whatsapp-float { padding: var(--sp-3); border-radius: 50%; }
  .whatsapp-float__tooltip { display: none; }
}


/* ════════════════════════════════════════════════════════
   16. RESPONSIVE
   Mobile-first: base → ≥640px → ≥1024px → ≥1280px
   ════════════════════════════════════════════════════════ */

/* --- Tablet (≥640px) --- */
@media (min-width: 640px) {
  :root {
    --container-px: var(--sp-8);
  }

  .form-row { grid-template-columns: 1fr 1fr; }

  .products__grid { grid-template-columns: repeat(2, 1fr); }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .footer__grid { grid-template-columns: repeat(2, 1fr); }

  .hero__stats { gap: var(--sp-8); }
}

/* --- Desktop (≥1024px) --- */
@media (min-width: 1024px) {
  :root {
    --container-px: var(--sp-12);
    --nav-height: 80px;
  }

  /* Nav: mostrar links, ocultar hamburger */
  .nav-toggle { display: none; }
  .nav__list  { display: flex; }

  .hero {
    align-items: center;
    padding-bottom: 0;
  }

  .hero__content {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-16);
  }

  .hero__text { flex: 1; max-width: 600px; }
  .hero__stats { align-self: flex-end; }

  .about__grid { grid-template-columns: 1fr 1fr; }

  .products__grid { grid-template-columns: repeat(3, 1fr); }

  /* Galería masonry-like con grid areas */
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 280px 280px;
  }

  .gallery__item { min-height: 0; }
  .gallery__img  { min-height: 0; height: 100%; }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .contact__grid { grid-template-columns: 1fr 1fr; align-items: start; }

  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* --- Large Desktop (≥1280px) --- */
@media (min-width: 1280px) {
  :root {
    --container-px: var(--sp-16);
  }

  .hero__title { font-size: clamp(4rem, 6vw, 5.5rem); }
}

/* Sections scroll margin (fixed nav offset) */
section[id], header[id] {
  scroll-margin-top: var(--nav-height);
}
