/* ============================================================
   FORDERSUR — Hoja de estilos principal
   Paleta derivada del logo: azul industrial, naranja y maderas.
   Enfoque: corporativo, industrial, mucho espacio en blanco.
   ============================================================ */

/* ---------- Tokens de diseño ---------- */
:root {
  --navy-900: #061B44;
  --navy-800: #08265A;
  --navy:     #0C3B84;
  --navy-600: #12489E;

  --orange:     #F4691A;
  --orange-600: #DA5A10;
  --orange-300: #F9A86B;

  --wood-l:  #E7B27E;
  --wood:    #C88C4F;
  --wood-d:  #9A6531;
  --wood-dd: #6E4423;

  --wa:      #25D366;
  --wa-dark: #128C7E;

  --bone:  #FAF7F1;
  --cream: #F2ECE1;
  --paper: #FFFFFF;

  --ink:   #16202E;
  --slate: #56637A;
  --line:  #E7E1D6;

  --shadow-sm: 0 2px 8px rgba(16,32,46,.06);
  --shadow-md: 0 12px 34px rgba(16,32,46,.10);
  --shadow-lg: 0 24px 60px rgba(8,38,90,.18);

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;

  --ff-display: "Archivo", system-ui, sans-serif;
  --ff-body: "Barlow", system-ui, sans-serif;

  --header-h: 84px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* Accesibilidad */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.08; color: var(--ink); }

.section__title {
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.75rem);
  letter-spacing: -.01em;
}
.txt-orange { color: var(--orange); }
.txt-navy { color: var(--navy); }

/* Eyebrow con "listones" de pallet — elemento de firma */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .82rem; color: var(--navy);
  margin-bottom: 18px;
}
.eyebrow--light { color: #cfe0ff; }
.slats { display: inline-flex; flex-direction: column; gap: 3px; }
.slats i {
  display: block; height: 3px; border-radius: 2px; background: var(--orange);
}
.slats i:nth-child(1) { width: 22px; }
.slats i:nth-child(2) { width: 16px; }
.slats i:nth-child(3) { width: 22px; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff-display); font-weight: 700; font-size: .98rem;
  letter-spacing: .01em;
  padding: 14px 26px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 8px 20px rgba(8,38,90,.18);
  text-align: center; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(8,38,90,.26); }
.btn:active { transform: translateY(0); }

.btn--orange { --btn-bg: var(--orange); box-shadow: 0 8px 20px rgba(244,105,26,.30); }
.btn--orange:hover { background: var(--orange-600); box-shadow: 0 14px 30px rgba(244,105,26,.38); }
.btn--navy { --btn-bg: var(--navy); }
.btn--navy:hover { background: var(--navy-600); }
.btn--wa { --btn-bg: var(--wa); box-shadow: 0 8px 20px rgba(37,211,102,.30); }
.btn--wa:hover { background: var(--wa-dark); }

.btn--lg { padding: 17px 32px; font-size: 1.05rem; border-radius: 14px; }
.btn--sm { padding: 11px 18px; font-size: .86rem; border-radius: 10px; }
.btn--block { width: 100%; }

/* ---------- Encabezado / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(231,225,214,.7);
  transition: box-shadow .25s ease, background .25s ease, height .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand__logo { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; align-items: center; gap: 26px; }
.nav__link {
  font-family: var(--ff-display); font-weight: 600; font-size: .98rem;
  color: var(--ink); position: relative; padding: 6px 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2.5px; width: 0;
  background: var(--orange); transition: width .22s ease;
}
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: var(--navy); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff;
  padding: 14px 20px 14px 16px; border-radius: 50px;
  box-shadow: 0 12px 30px rgba(37,211,102,.45);
  font-family: var(--ff-display); font-weight: 700;
  animation: waPulse 2.6s ease-in-out infinite;
}
.wa-float:hover { background: var(--wa-dark); transform: translateY(-2px); }
.wa-float svg { flex-shrink: 0; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(37,211,102,.45); }
  50% { box-shadow: 0 12px 30px rgba(37,211,102,.45), 0 0 0 12px rgba(37,211,102,.10); }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section--bone { background: var(--bone); }
.section--navy { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #eaf1ff; }

.section__head { max-width: 720px; margin-bottom: 52px; }
.section__head--light .section__title { color: #fff; }
.section__lead { color: var(--slate); font-size: 1.12rem; margin-top: 12px; }
.section--navy .section__lead { color: #b9c9e6; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  padding-top: var(--header-h);
  color: #fff; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(100deg, rgba(5,20,52,.96) 0%, rgba(6,27,68,.9) 34%, rgba(6,27,68,.55) 60%, rgba(6,27,68,.28) 100%),
    url("../images/banners/hero-fondo.svg") center right/cover no-repeat,
    var(--navy-900);
}
.hero__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; width: 100%; }
.hero__content { max-width: 720px; }
.hero__title {
  font-weight: 900; color: #fff;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  letter-spacing: -.015em; margin: 6px 0 20px;
}
.hero__subtitle { font-size: clamp(1.1rem, 2vw, 1.4rem); color: #cfe0ff; max-width: 620px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__badge {
  flex-shrink: 0; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--orange), var(--orange-600));
  display: grid; place-content: center; text-align: center;
  box-shadow: 0 20px 50px rgba(244,105,26,.4);
  border: 6px solid rgba(255,255,255,.12);
  transform: rotate(-6deg);
}
.hero__badge-num { font-family: var(--ff-display); font-weight: 900; font-size: 3.4rem; color: #fff; line-height: 1; }
.hero__badge-label { font-family: var(--ff-display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: #fff; margin-top: 6px; }

/* ---------- Franja de confianza ---------- */
.trust { background: var(--navy); color: #fff; }
.trust__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  text-align: center; padding: 26px 0;
}
.trust__item { padding: 8px 10px; border-right: 1px solid rgba(255,255,255,.14); }
.trust__item:last-child { border-right: 0; }
.trust__item strong { display: block; font-family: var(--ff-display); font-weight: 900; font-size: 1.7rem; color: var(--orange-300); }
.trust__item span { font-size: .9rem; color: #c6d5f0; }

/* ---------- Nosotros ---------- */
.nosotros__media { position: relative; }
.nosotros__img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.nosotros__stamp {
  position: absolute; bottom: -22px; right: -14px;
  background: var(--orange); color: #fff; border-radius: 16px;
  padding: 14px 22px; text-align: center; font-family: var(--ff-display);
  font-weight: 700; line-height: 1.1; box-shadow: var(--shadow-md);
  transform: rotate(-4deg);
}
.nosotros__stamp strong { font-size: 1.6rem; display: block; }
.nosotros__text p { color: var(--slate); margin-bottom: 16px; }

.checklist { margin: 22px 0 28px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}
.section--navy .checklist li::before,
.cotizacion .checklist li::before { background-color: var(--orange); }

/* ---------- Tarjetas de productos ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__media {
  background: linear-gradient(160deg, #fff, var(--cream));
  padding: 26px; aspect-ratio: 4/3; display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
}
.card__media img { width: 82%; height: auto; }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.28rem; font-weight: 800; margin-bottom: 8px; }
.card__desc { color: var(--slate); font-size: .98rem; margin-bottom: 18px; flex: 1; }
.card .btn { margin-top: auto; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.service {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 22px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service__icon {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--navy), var(--navy-800)); color: #fff;
}
.service__icon svg { width: 30px; height: 30px; }
.service__title { font-size: 1.12rem; font-weight: 800; }
.service p { color: var(--slate); font-size: .92rem; margin-bottom: 6px; }
.service .btn { margin-top: auto; }

/* ---------- ¿Por qué elegirnos? ---------- */
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.reason {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 26px 22px;
  transition: background .2s ease, transform .2s ease;
}
.reason:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.reason__ico {
  font-family: var(--ff-display); font-weight: 900; font-size: 1.5rem;
  color: var(--orange-300); display: block; margin-bottom: 12px;
}
.reason h3 { font-size: 1.08rem; font-weight: 700; color: #fff; line-height: 1.25; }

/* ---------- Formulario de cotización ---------- */
.grid-2--form { align-items: start; }
.cotizacion__intro p { color: var(--slate); }
.cotizacion__form-wrap {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow-md);
}
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; grid-column: 1 / -1; }
.field--half { grid-column: auto; }
.field label { font-family: var(--ff-display); font-weight: 600; font-size: .9rem; color: var(--ink); }
.req { color: var(--orange); }
.field input, .field select, .field textarea {
  font-family: var(--ff-body); font-size: 1rem; color: var(--ink);
  background: var(--bone); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; transition: border-color .18s ease, background .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); background: #fff;
}
.field textarea { resize: vertical; min-height: 84px; }
.field.has-error input, .field.has-error select { border-color: #e03b3b; background: #fff5f5; }
.form__error { grid-column: 1 / -1; color: #d12b2b; font-weight: 600; font-size: .92rem; }
.form .btn--block { grid-column: 1 / -1; margin-top: 4px; }
.form__note { grid-column: 1 / -1; text-align: center; color: var(--slate); font-size: .86rem; }

/* ---------- Contacto ---------- */
.contacto__grid { align-items: stretch; }
.contact-list { display: grid; gap: 20px; margin-bottom: 28px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list__ico {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  background: var(--bone); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--navy);
}
.contact-list__ico svg { width: 22px; height: 22px; }
.contact-list a:hover { color: var(--orange); }
.contacto__map {
  border-radius: var(--radius-lg); overflow: hidden; min-height: 380px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.contacto__map iframe { width: 100%; height: 100%; min-height: 380px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #cdd9ef; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px;
  padding: 64px 0 44px;
}
.footer__logo-chip {
  display: inline-block; background: #fff; padding: 12px 16px; border-radius: 12px;
  margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.footer__logo-chip img { height: 42px; width: auto; }
.footer__brand p { max-width: 320px; font-size: .96rem; }
.footer__col h4 {
  color: #fff; font-size: 1.05rem; font-weight: 800; margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: .08em;
}
.footer__links { display: grid; gap: 11px; font-size: .96rem; }
.footer__links a:hover { color: var(--orange-300); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; transition: background .2s ease, transform .2s ease;
}
.footer__social a:hover { background: var(--orange); transform: translateY(-3px); }

.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer__bottom p { font-size: .9rem; color: #9fb2d6; }
.footer__credit a { color: var(--orange-300); font-weight: 700; }
.footer__credit a:hover { text-decoration: underline; }

/* ---------- Animaciones de aparición (scroll reveal) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .wa-float { animation: none; }
}
