/* ============================================================
   VELTRANO S.A. — Empresa Industrial
   Paleta: bg #f5f0e8 (crema), navy #1b2a4a, gold #c4973e
   ============================================================ */

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

:root {
  --navy: #1b2a4a;
  --navy-deep: #0f1e38;
  --gold: #c4973e;
  --gold-light: #e8be75;
  --bg: #f5f0e8;
  --bg-section: #eee8d8;
  --white: #ffffff;
  --gray: #6b7280;
  --text: #2c3344;
  --border: #d4c9b0;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__mark {
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: white;
  letter-spacing: 2px;
}

.logo__sa {
  font-family: var(--font-head);
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 3px;
  margin-top: 2px;
}

.logo__divider {
  width: 1px;
  height: 32px;
  background: rgba(196,151,62,0.4);
}

.logo__tagline {
  font-family: var(--font-head);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2.5px;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 0;
  flex: 1;
}

.nav__links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  padding: 8px 16px;
  text-transform: uppercase;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  display: block;
}

.nav__links a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-left: auto;
}

.nav__contact svg { opacity: 0.8; }

.nav__contact a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.nav__contact a:hover { opacity: 0.7; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  overflow: hidden;
}

.stats-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 10px 32px;
  flex-wrap: wrap;
}

.stats-bar__dot {
  opacity: 0.5;
  font-size: 1rem;
}

/* ============================================================
   SECTION LABELS & TITLES
   ============================================================ */
.section-label {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-label--light { color: var(--gold-light); }
.section-label--light::before { background: var(--gold-light); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-title--white { color: white; }

.section-sub {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 48px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  object-position: center center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,42,74,0.88);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
  width: 100%;
}

.hero__since {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 4px;
  font-weight: 600;
}

.hero__line {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
  max-width: 700px;
}

.hero__accent { color: var(--gold); }

.hero__sub {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 32px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
  border: 2px solid var(--gold);
  cursor: pointer;
}

.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); border-color: var(--gold-light); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: white;
  padding: 14px 32px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 2px;
  border: 2px solid rgba(255,255,255,0.35);
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.hero__stats {
  display: flex;
  gap: 0;
  align-items: center;
  border-top: 1px solid rgba(196,151,62,0.2);
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 24px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  padding-right: 0;
}

.stat__num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.stat__label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
}

.hero__stat-div {
  width: 1px;
  height: 40px;
  background: rgba(196,151,62,0.25);
}

/* ============================================================
   HISTORIA / TIMELINE VERTICAL
   ============================================================ */
.historia {
  padding: 96px 0;
  background: var(--bg);
}

.timeline {
  position: relative;
  padding: 48px 0 24px 80px;
  max-width: 720px;
  margin: 0 auto;
}

.timeline__line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
}

.timeline__item {
  position: relative;
  margin-bottom: 48px;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.timeline__item:last-child { margin-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: -68px;
  top: 24px;
  width: 18px;
  height: 18px;
  background: var(--navy);
  border: 3px solid var(--gold);
  border-radius: 50%;
  z-index: 2;
  transition: transform 0.2s;
}

.timeline__item:hover .timeline__dot { transform: scale(1.3); }

.timeline__dot--current {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(196,151,62,0.2);
}

.timeline__year-label {
  position: absolute;
  left: -68px;
  top: 44px;
  font-family: var(--font-head);
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
  transform: translateX(-50%);
  text-align: center;
  width: 40px;
  margin-left: 9px;
}

.timeline__year-label--current { color: var(--gold-light); }

.timeline__card {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  padding: 28px 32px;
  border-radius: 0 4px 4px 0;
  width: 100%;
  box-shadow: 0 4px 16px rgba(27,42,74,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.timeline__card:hover {
  transform: translateX(6px);
  box-shadow: 0 12px 32px rgba(27,42,74,0.12);
}

.timeline__card--current {
  border-left-color: var(--gold);
  background: linear-gradient(135deg, var(--navy) 0%, #2a3f6e 100%);
}

.timeline__card.timeline__card--current h3,
.timeline__card.timeline__card--current p { color: white; }

.timeline__card--current .timeline__year { color: var(--gold-light); }

.timeline__year {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}

.timeline__card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.timeline__card p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
}

/* ============================================================
   PRODUCTOS
   ============================================================ */
.productos {
  padding: 96px 0;
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.productos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.producto-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.producto-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(27,42,74,0.14);
  border-color: var(--gold);
}

.producto-card__img {
  height: 200px;
  overflow: hidden;
  background: var(--bg-section);
}

.producto-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.producto-card:hover .producto-card__img img {
  transform: scale(1.06);
}

.producto-card__body {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.producto-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}

.producto-card p {
  font-size: 0.84rem;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 16px;
}

.producto-card__specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex: 1;
}

.producto-card__specs li {
  font-size: 0.78rem;
  color: var(--navy);
  font-weight: 500;
  padding-left: 14px;
  position: relative;
}

.producto-card__specs li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
}

.btn-catalog {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  padding: 10px 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 2px;
  border: 2px solid var(--navy);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
  align-self: flex-start;
}

.btn-catalog:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* ============================================================
   INSTALACIONES
   ============================================================ */
.instalaciones {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.instalaciones__bg {
  position: absolute;
  inset: 0;
}

.instalaciones__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,30,56,0.95) 0%, rgba(15,30,56,0.55) 60%, rgba(15,30,56,0.2) 100%);
}

.instalaciones__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px;
  width: 100%;
}

.instalaciones__content p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 40px;
}

.instalaciones__stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.inst-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inst-stat strong {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.inst-stat span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
}

/* ============================================================
   CALIDAD
   ============================================================ */
.calidad {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 96px 0;
}

.calidad__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.calidad__text p {
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.calidad__img-wrap {
  height: 220px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid rgba(196,151,62,0.2);
}

.calidad__checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.calidad__check {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.check-mark {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.calidad__certs h3 {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.certs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cert-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(196,151,62,0.2);
  border-radius: 4px;
  padding: 20px 16px;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.cert-badge:hover {
  background: rgba(196,151,62,0.1);
  border-color: rgba(196,151,62,0.5);
  transform: translateY(-3px);
}

.cert-badge__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
  background: var(--navy);
  border: 2px solid var(--gold);
  border-radius: 4px;
  padding: 12px;
  gap: 2px;
}

.cert-badge__logo span {
  font-family: var(--font-head);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
}

.cert-badge__logo strong {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 800;
}

.cert-badge__logo--sil { border-color: #64b5f6; }
.cert-badge__logo--sil strong { color: #64b5f6; }
.cert-badge__logo--ce { flex-direction: row; }
.ce-mark {
  font-family: var(--font-head);
  font-size: 1.6rem !important;
  font-weight: 800;
  color: #42a5f5 !important;
  letter-spacing: -2px !important;
}

.cert-badge__logo--iso strong { font-size: 0.95rem; }

.cert-badge p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonios {
  padding: 96px 0;
  background: var(--bg-section);
  border-top: 1px solid var(--border);
}

.testimonios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.testimonio-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  padding: 36px 28px 28px;
  border-radius: 0 0 4px 4px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s;
  quotes: none;
}

.testimonio-card:hover {
  box-shadow: 0 12px 40px rgba(27,42,74,0.1);
  transform: translateY(-4px);
}

.testimonio-card__quote {
  font-size: 5rem;
  line-height: 0.7;
  color: var(--gold);
  opacity: 0.15;
  font-family: Georgia, serif;
  position: absolute;
  top: 20px;
  left: 24px;
  pointer-events: none;
}

.testimonio-card p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonio-card footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.testimonio-card footer strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.testimonio-card footer span {
  font-size: 0.78rem;
  color: var(--gray);
}

/* ============================================================
   PRESENCIA
   ============================================================ */
.presencia {
  padding: 96px 0;
  background: var(--bg);
}

.presencia__layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: stretch;
}

.presencia__map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: flex;
}

.world-map { width: 100%; height: auto; }

.presencia__regions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.region-card {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  border-radius: 0 4px 4px 0;
  transition: box-shadow 0.2s, transform 0.2s;
}

.region-card:hover {
  box-shadow: 0 4px 16px rgba(27,42,74,0.1);
  transform: translateX(4px);
}

.region-card h4 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.region-card p {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 10px;
}

.region-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(196,151,62,0.1);
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto {
  padding: 96px 0;
  background: var(--bg-section);
  border-top: 1px solid var(--border);
}

.contacto__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contacto__info p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 36px;
  font-size: 0.95rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--navy);
}

.contact-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-head);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-item span,
.contact-link {
  font-size: 0.875rem;
  color: var(--gray);
  display: block;
}

.contact-link {
  text-decoration: none;
  color: var(--gold);
  transition: opacity 0.2s;
}

.contact-link:hover { opacity: 0.75; }

/* FORM */
.contacto__form {
  background: white;
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  padding: 40px;
  border-radius: 0 0 4px 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-row .form-group { margin-bottom: 20px; }

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.5px;
  font-family: var(--font-head);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: white;
}

.form-group input.input--error,
.form-group textarea.input--error { border-color: #e53935; background: #fff8f8; }

.form-group input.input--ok,
.form-group textarea.input--ok { border-color: #43a047; }

.form-group textarea { resize: vertical; }

.form-error {
  font-size: 0.72rem;
  color: #e53935;
  min-height: 16px;
  display: block;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border: 2px solid var(--gold);
  cursor: pointer;
  font-family: var(--font-head);
}

.form-success {
  background: #e8f5e9;
  border: 1px solid #43a047;
  color: #1b5e20;
  font-size: 0.875rem;
  padding: 14px 20px;
  border-radius: 2px;
  margin-top: 16px;
}

.form-disclaimer {
  font-size: 0.72rem;
  color: var(--gray);
  margin-top: 12px;
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.55);
  padding: 64px 0 0;
  border-top: 3px solid var(--gold);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: white;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.footer__logo span { color: var(--gold); }

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 16px;
}

.footer__contact-quick {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__contact-quick a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.footer__contact-quick a:hover { opacity: 0.75; }

.footer__cols { display: flex; gap: 48px; }

.footer__col h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: white;
  font-size: 0.82rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer__col a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--gold); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .productos__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonios__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links { display: none; flex-direction: column; }
  .nav__links--open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    border-top: 1px solid rgba(196,151,62,0.2);
    padding: 16px 0;
    z-index: 99;
  }
  .nav__links--open a {
    padding: 12px 32px;
    border-bottom: none;
  }
  .nav__contact { display: none; }
  .logo__divider, .logo__tagline { display: none; }
  .nav__hamburger { display: flex; margin-left: auto; }

  .stats-bar__inner { gap: 12px; font-size: 0.72rem; }

  .hero__stats { gap: 16px; }
  .hero__stat-div { display: none; }
  .hero__ctas { flex-direction: column; }

  .timeline { padding-left: 60px; }
  .timeline__dot { left: -50px; }
  .timeline__year-label { left: -50px; }
  .timeline__card { padding: 20px; }

  .productos__grid { grid-template-columns: 1fr 1fr; }
  .calidad__inner { grid-template-columns: 1fr; gap: 48px; }
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonios__grid { grid-template-columns: 1fr; }
  .presencia__layout { grid-template-columns: 1fr; }
  .contacto__inner { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__cols { flex-wrap: wrap; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 8px; }

  .instalaciones__stats { gap: 24px; }
}

@media (max-width: 480px) {
  .productos__grid { grid-template-columns: 1fr; }
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: 2.4rem; }
}

/* ============================================================
   RESPONSIVE FIXES — MOBILE & TABLET (appended)
   ============================================================ */

/* Global overflow & image safety */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

/* ===== TABLET (≤1024px) ===== */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .nav__inner { padding: 0 20px; gap: 20px; }
  .nav__links a { padding: 8px 10px; font-size: 0.75rem; }
  .hero__content { padding: 64px 24px; }
  .instalaciones__content { padding: 56px 24px; }
  .calidad__inner { gap: 48px; }
  .contacto__inner { gap: 48px; }
  .presencia__layout { gap: 40px; }
  .footer__top { gap: 48px; }
  .footer__cols { gap: 32px; flex-wrap: wrap; }
}

/* ===== MOBILE (≤768px) ===== */
@media (max-width: 768px) {
  /* Container & spacing */
  .container { padding: 0 18px; }
  .nav__inner { padding: 0 18px; gap: 12px; height: 64px; }
  .stats-bar__inner { padding: 8px 18px; }

  /* Section paddings reduced */
  .historia,
  .productos,
  .calidad,
  .testimonios,
  .presencia,
  .contacto { padding: 56px 0; }

  /* Section titles */
  .section-title { font-size: clamp(1.5rem, 6vw, 1.9rem); }
  .section-sub { font-size: 0.92rem; margin-bottom: 32px; }
  .section-label { font-size: 0.62rem; letter-spacing: 2px; }

  /* Nav logo */
  .nav__logo img { height: 44px !important; }
  .nav__links--open { top: 64px; }

  /* Stats bar */
  .stats-bar { font-size: 0.65rem; letter-spacing: 1px; }
  .stats-bar__dot { display: none; }
  .stats-bar__inner { gap: 10px; justify-content: center; }

  /* HERO */
  .hero { min-height: auto; padding: 32px 0; }
  .hero__content { padding: 56px 18px 48px; }
  .hero__since { gap: 10px; margin-bottom: 20px; font-size: 0.65rem; letter-spacing: 2.5px; }
  .hero__line { max-width: 30px; }
  .hero__title {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
  }
  .hero__sub { font-size: 0.95rem; margin-bottom: 28px; }
  .hero__ctas { gap: 12px; margin-bottom: 48px; flex-direction: column; }
  .hero__ctas .btn-primary,
  .hero__ctas .btn-outline {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 0.85rem;
  }
  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 24px;
  }
  .hero__stat-div { display: none; }
  .stat__num { font-size: 1.4rem; }
  .stat__label { font-size: 0.7rem; }

  /* TIMELINE */
  .timeline { padding: 32px 0 8px 48px; }
  .timeline__line { left: 14px; }
  .timeline__dot { left: -38px; top: 20px; width: 14px; height: 14px; }
  .timeline__year-label { left: -38px; top: 38px; font-size: 0.55rem; }
  .timeline__card { padding: 18px 18px; }
  .timeline__card h3 { font-size: 1rem; }
  .timeline__card p { font-size: 0.82rem; }
  .timeline__item { margin-bottom: 32px; }
  .timeline__card:hover { transform: none; }

  /* PRODUCTOS */
  .productos__grid { grid-template-columns: 1fr; gap: 20px; }
  .producto-card__img { height: 180px; }
  .producto-card__body { padding: 22px 20px 20px; }
  .producto-card h3 { font-size: 1rem; }
  .btn-catalog { width: 100%; text-align: center; padding: 12px 16px; }

  /* INSTALACIONES */
  .instalaciones { min-height: auto; }
  .instalaciones__content { padding: 48px 18px; }
  .instalaciones__content p { font-size: 0.92rem; margin-bottom: 28px; }
  .instalaciones__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .inst-stat strong { font-size: 1.3rem; }
  .inst-stat span { font-size: 0.72rem; }

  /* CALIDAD */
  .calidad__inner { grid-template-columns: 1fr; gap: 40px; }
  .calidad__text p { font-size: 0.9rem; }
  .calidad__img-wrap { height: 180px; }
  .calidad__check { font-size: 0.85rem; }
  .certs__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cert-badge { padding: 16px 12px; }
  .cert-badge__logo { padding: 10px; }
  .cert-badge__logo strong { font-size: 1.05rem; }
  .cert-badge p { font-size: 0.68rem; }

  /* TESTIMONIOS */
  .testimonios__grid { grid-template-columns: 1fr; gap: 18px; }
  .testimonio-card { padding: 28px 22px 22px; }
  .testimonio-card p { font-size: 0.88rem; }
  .testimonio-card__quote { font-size: 3.5rem; top: 12px; left: 18px; }

  /* PRESENCIA / MAPA */
  .presencia__layout { grid-template-columns: 1fr; gap: 28px; }
  .presencia__map {
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    height: auto;
  }
  .presencia__map img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  .region-card { padding: 16px 18px; }
  .region-card:hover { transform: none; }

  /* CONTACTO */
  .contacto__inner { grid-template-columns: 1fr; gap: 36px; }
  .contacto__form { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* prevents iOS zoom */
    padding: 12px 14px;
  }
  .btn-submit { padding: 14px; font-size: 0.88rem; }
  .contact-item { gap: 12px; }
  .contact-icon { width: 36px; height: 36px; }

  /* FOOTER */
  .footer { padding: 48px 0 0; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .footer__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer__brand p { max-width: 100%; }
  .footer__bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 16px 0;
  }
}

/* ===== EXTRA SMALL (≤480px) ===== */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .nav__inner { padding: 0 14px; gap: 8px; }
  .nav__logo img { height: 38px !important; }
  .nav__hamburger { width: 32px; height: 32px; }

  /* Stats bar mobile - apilar */
  .stats-bar { font-size: 0.6rem; letter-spacing: 0.5px; }
  .stats-bar__inner { gap: 6px 12px; flex-wrap: wrap; padding: 6px 12px; }

  /* HERO extra small */
  .hero__content { padding: 40px 14px 36px; }
  .hero__title { font-size: clamp(1.6rem, 9vw, 2.1rem); }
  .hero__sub { font-size: 0.88rem; }
  .hero__since { font-size: 0.6rem; letter-spacing: 2px; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat__num { font-size: 1.25rem; }

  /* Section titles smaller */
  .section-title { font-size: clamp(1.35rem, 6.5vw, 1.7rem); }
  .section-sub { font-size: 0.88rem; }

  /* Section padding tightened */
  .historia,
  .productos,
  .calidad,
  .testimonios,
  .presencia,
  .contacto { padding: 44px 0; }

  /* Timeline tighter */
  .timeline { padding: 24px 0 4px 40px; }
  .timeline__line { left: 12px; }
  .timeline__dot { left: -32px; width: 12px; height: 12px; }
  .timeline__year-label { left: -32px; font-size: 0.5rem; }
  .timeline__card { padding: 16px; }
  .timeline__card h3 { font-size: 0.95rem; }
  .timeline__card p { font-size: 0.78rem; }
  .timeline__year { font-size: 0.62rem; }

  /* Productos */
  .producto-card__img { height: 160px; }
  .producto-card__body { padding: 18px 16px 18px; }
  .producto-card p { font-size: 0.8rem; }
  .producto-card__specs li { font-size: 0.74rem; }

  /* Instalaciones stats: 1 col en muy chico */
  .instalaciones__content { padding: 36px 14px; }
  .instalaciones__stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .inst-stat strong { font-size: 1.15rem; }

  /* Calidad */
  .calidad__img-wrap { height: 150px; }
  .certs__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cert-badge { padding: 14px 10px; }
  .cert-badge__logo { padding: 8px; }
  .cert-badge__logo strong { font-size: 0.95rem; }
  .cert-badge p { font-size: 0.64rem; line-height: 1.35; }
  .ce-mark { font-size: 1.3rem !important; }

  /* Testimonios */
  .testimonio-card { padding: 24px 18px 20px; }
  .testimonio-card p { font-size: 0.84rem; }
  .testimonio-card__quote { font-size: 3rem; top: 8px; left: 14px; }

  /* Presencia / mapa */
  .region-card { padding: 14px 16px; }
  .region-card h4 { font-size: 0.85rem; }
  .region-card p { font-size: 0.76rem; }

  /* Contacto */
  .contacto__form { padding: 22px 16px; }
  .contact-item strong { font-size: 0.78rem; }
  .contact-item span,
  .contact-link { font-size: 0.82rem; word-break: break-word; }

  /* Botones full-width */
  .btn-primary,
  .btn-outline,
  .btn-catalog,
  .btn-submit {
    width: 100%;
    text-align: center;
    padding: 13px 18px;
    box-sizing: border-box;
  }

  /* Footer apilado totalmente */
  .footer { padding: 36px 0 0; }
  .footer__top { gap: 28px; padding-bottom: 24px; }
  .footer__cols { grid-template-columns: 1fr; gap: 20px; }
  .footer__logo { font-size: 1.2rem; letter-spacing: 2px; }
  .footer__bottom { font-size: 0.7rem; }
}

/* ===== Very small phones (≤360px) ===== */
@media (max-width: 360px) {
  .nav__logo img { height: 34px !important; }
  .hero__title { font-size: 1.5rem; }
  .hero__stats { grid-template-columns: 1fr; }
  .instalaciones__stats { grid-template-columns: 1fr; }
  .certs__grid { grid-template-columns: 1fr; }
}
