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

:root {
  --navy:       #1C2B3A;
  --teal:       #3D8FAD;
  --teal-dark:  #2E7A96;
  --orange:     #00AAE4;
  --orange-dark:#0090C2;
  --light:      #F4F6F8;
  --gray:       #6B7280;
  --border:     #DDE1E7;
  --white:      #FFFFFF;
  --font:       'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 5%;
  justify-content: space-between;
}

.navbar__logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.navbar__logo img { height: 52px; width: auto; }
.navbar__brand { font-size: .95rem; font-weight: 700; color: var(--dark); line-height: 1.2; }

.navbar__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.navbar__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy);
  transition: color .2s;
}
.navbar__links a:hover { color: var(--orange); }

.navbar__cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: .5rem 1.2rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background .2s !important;
}
.navbar__cta:hover { background: var(--orange-dark) !important; color: var(--white) !important; }

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s;
}

/* ===== HERO ===== */
.hero {
  margin-top: 68px;
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../imagenes/hero-bobinas-01.webp');
  background-size: cover;
  background-position: center;
  opacity: .37;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 5rem 5%;
  max-width: 760px;
}

.hero__badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 2.2rem;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: 7px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
}
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn--outline:hover { border-color: var(--white); }

/* ===== STATS BAR ===== */
.stats {
  background: var(--orange);
  padding: 1.4rem 5%;
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stats__item {
  text-align: center;
  color: var(--white);
}

.stats__num {
  font-size: 1.9rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.stats__label {
  font-size: .8rem;
  font-weight: 500;
  opacity: .9;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ===== SECTION COMMON ===== */
section { padding: 5rem 5%; }

.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .6rem;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 1024px;
  margin-bottom: 3rem;
}

/* ===== DIFERENCIALES ===== */
.difs {
  background: var(--light);
}

.difs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.dif-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.dif-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); transform: translateY(-2px); }

.dif-card__icon {
  width: 52px;
  height: 52px;
  background: #E8F4F8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
}

.dif-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--navy);
}

.dif-card p {
  font-size: .95rem;
  color: var(--gray);
  line-height: 1.55;
}

/* ===== PRODUCTOS ===== */
.productos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.prod-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  transition: border-color .2s;
  position: relative;
  overflow: hidden;
}
.prod-card:hover { border-color: var(--orange); }

.prod-card__img-wrap {
  margin: -1.8rem -1.8rem 1.2rem;
  background: var(--light);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: .8rem;
  transition: transform .3s ease;
}
.prod-card:hover .prod-card__img { transform: scale(1.04); }

.prod-card__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal);
  background: #E8F4F8;
  padding: .2rem .7rem;
  border-radius: 4px;
  margin-bottom: .8rem;
}

.prod-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.prod-card p {
  font-size: .9rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.prod-card__gramajes {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--light);
  padding: .4rem .8rem;
  border-radius: 6px;
  display: inline-block;
}

.prod-card__calidad-badges {
  display: flex;
  gap: .5rem;
  margin-top: .6rem;
}

.badge {
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 20px;
  display: inline-block;
}

.badge--primera {
  background: #d1fae5;
  color: #065f46;
}

.badge--segunda {
  background: #fef3c7;
  color: #92400e;
}

.calidad-info {
  background: var(--light);
  padding: .9rem 1.2rem;
  border-radius: 8px;
  font-size: .9rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.prod-card__ficha {
  display: block;
  margin-top: .9rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--teal);
  transition: color .2s;
}
.prod-card__ficha:hover { color: var(--orange); }

/* ===== COBERTURA ===== */
.cobertura {
  background: var(--navy);
  color: var(--white);
}

.cobertura .section-title { color: var(--white); }
.cobertura .section-lead { color: rgba(255,255,255,.7); }

.cobertura__zonas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.zona-item {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}

.zona-item span:first-child {
  font-size: 1.4rem;
}

.zona-item strong {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  color: var(--white);
}

.zona-item small {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
}

/* ===== PROCESO ===== */
.proceso__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  counter-reset: steps;
  margin-top: 2rem;
}

.step {
  padding: 2rem 1.5rem 2rem 2rem;
  position: relative;
  border-right: 1px solid var(--border);
}
.step:last-child { border-right: none; }

.step__num {
  font-size: 3rem;
  font-weight: 900;
  color: #4b4b5b;
  line-height: 1;
  margin-bottom: .5rem;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.step p {
  font-size: .88rem;
  color: var(--gray);
}

/* ===== CONTACTO ===== */
.contacto {
  background: var(--light);
}

.contacto__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contacto__info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contacto__items {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-bottom: 2rem;
}

.contacto__item {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
}

.contacto__item-icon {
  width: 38px;
  height: 38px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contacto__item-text strong {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.contacto__item-text span {
  font-size: .9rem;
  color: var(--gray);
}

.btn--wa {
  background: #25D366;
  color: var(--white);
  font-size: 1rem;
  padding: .9rem 2rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  transition: background .2s, transform .2s;
}
.btn--wa:hover { background: #1da851; transform: translateY(-1px); }

/* FORM */
.contacto__form {
  background: var(--white);
  border-radius: 14px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.04);
}

.contacto__form h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: .95rem;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
}

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

.form-group textarea { resize: vertical; min-height: 90px; }

.btn--submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  padding: .85rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background .2s;
  margin-top: .4rem;
}
.btn--submit:hover { background: #253D54; }

/* ===== INSTALACIONES ===== */
.instalaciones__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-top: 2rem;
}

.inst-foto--wide {
  grid-column: 1 / -1;
}

.inst-foto {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.inst-foto--wide {
  aspect-ratio: 21/9;
}

.inst-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.inst-foto:hover img { transform: scale(1.03); }

.inst-foto__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: white;
  font-size: .85rem;
  font-weight: 600;
  padding: 1.5rem 1rem .7rem;
}

@media (max-width: 600px) {
  .instalaciones__grid { grid-template-columns: 1fr; }
  .inst-foto--wide { grid-column: 1; aspect-ratio: 4/3; }
  .inst-foto { aspect-ratio: 4/3; }
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 2.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer img { height: 42px; width: auto; opacity: .85; }

footer p { font-size: .85rem; }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); }

.wa-float svg { width: 30px; height: 30px; fill: white; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar__links { display: none; flex-direction: column; }
  .navbar__links.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 5%;
    gap: 1rem;
  }
  .navbar__hamburger { display: flex; }

  .hero { min-height: 75vh; }
  .hero__content { padding: 3rem 5%; }

  .stats { gap: 2rem; }

  .contacto__inner { grid-template-columns: 1fr; gap: 2rem; }

  .proceso__steps { grid-template-columns: 1fr 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--border); }
  .step:nth-child(odd) { border-right: 1px solid var(--border); }
  .step:last-child, .step:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  footer { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .proceso__steps { grid-template-columns: 1fr; }
  .step { border-right: none !important; }
}
