/* =========================================================
   FORTEX · Página de inicio
   Convertido desde Elementor (elementor-843) a HTML/CSS/JS
   ========================================================= */

:root {
  --orange: #F07E1E;
  --orange-alt: #F3841E;
  --navy: #152A4E;
  --navy-title: #17345F;
  --navy-deep: #12243D;
  --dark: #141F2E;
  --light: #F4F6F8;
  --white: #FFFFFF;
  --text: #000000;
  --whatsapp: #25D366;
  --font: 'Montserrat', sans-serif;
  --radius: 4px;
  --shadow: 0 0 10px rgba(0, 0, 0, .1);
  --header-h: 92px;
}

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

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

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.container { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 30px; }
.navy { color: var(--navy); }
.orange { color: var(--orange); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transition: background-color .3s, color .3s, transform .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.btn--orange { background: var(--orange); color: var(--white); }
.btn--orange:hover { background: var(--navy-deep); }
.btn--white { background: var(--white); color: var(--orange); }
.btn--white:hover { background: var(--navy-deep); color: var(--white); }
.btn--white i { font-size: 21px; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--orange); }
.btn--lg { padding: 13px 30px; font-size: 16px; }
.btn--sm { padding: 12px 26px; font-size: 15px; }

/* ---------- Separadores ---------- */
.divider { display: block; background: var(--orange); }
.divider--hero { width: 70px; height: 4px; margin: 14px 0 18px; }
.divider--footer { width: 18%; height: 2px; margin: 12px 0 18px; }

/* =========================================================
   CABECERA
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--orange);
  padding: 18px 0;
  transition: padding .3s, box-shadow .3s;
}
.header.is-scrolled { padding: 10px 0; box-shadow: 0 4px 18px rgba(0, 0, 0, .08); }

.header__inner { display: flex; align-items: center; gap: 24px; }

.header__logo { flex: 0 0 16.2%; display: flex; align-items: center; }
.header__logo .logo-img { width: auto; height: 64px; }

/* Logo de texto: se muestra si falta img/logo-fortex.jpg (ver js) */
.logo-text {
  display: none;
  font-family: var(--font);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 1px;
  color: var(--navy);
  line-height: 1;
}
.logo-text span { color: var(--orange); }
.no-logo .logo-text { display: inline-block; }
.no-logo .logo-img { display: none; }
.nav__mobile-logo { height: 61px; width: auto; }

.nav { flex: 1 1 auto; }
.nav__list { display: flex; justify-content: center; align-items: center; gap: 6px; }
.nav__list > li { position: relative; }
.nav__list > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  transition: color .3s;
}
.nav__list > li > a i { font-size: 13px; color: var(--orange); transition: transform .3s; }
.nav__list a:hover,
.nav__list a.active { color: var(--orange); }

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  padding: 10px 0;
  background: var(--white);
  border-top: 3px solid var(--orange);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.sub-menu a {
  display: block;
  padding: 9px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  transition: color .3s, padding-left .3s;
}
.sub-menu a:hover { color: var(--orange); padding-left: 26px; }
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.has-sub:hover > a i { transform: rotate(180deg); }

.nav__mobile-head { display: none; }

.header__cta { flex: 0 0 auto; }

.social { display: flex; gap: 8px; flex: 0 0 auto; }
.social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--navy-deep);
  font-size: 17px;
  transition: color .3s, transform .3s;
}
.social a:hover { color: var(--orange); transform: translateY(-3px); }

.nav-toggle { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 6px; padding: 8px; }
.nav-toggle span { display: block; height: 3px; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-close { font-size: 22px; color: var(--navy); width: 40px; height: 40px; }
.nav-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transition: .3s; z-index: 150; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background:
    linear-gradient(90deg, rgba(10, 26, 54, .55) 0%, rgba(10, 26, 54, .25) 45%, rgba(10, 26, 54, 0) 65%),
    var(--white) url('../img/banner-seccional2.jpg') no-repeat center right / cover;
  padding: 70px 0;
}
.hero__inner { display: flex; }
.hero__content { width: 54%; }

.hero__title { font-weight: 800; font-size: 54px; line-height: 1.2; }
.hero__line { display: block; color: var(--white); }
.hero__line--orange { color: var(--orange); margin-top: -4px; }

.hero__text { color: var(--white); font-size: 16px; font-weight: 500; max-width: 640px; }

.hero__features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0; }
.hero__features li { display: flex; align-items: center; gap: 12px; color: var(--white); font-size: 14px; font-weight: 700; line-height: 1.3; }
.hero__features i { font-size: 32px; flex: 0 0 auto; }

.hero__buttons { display: flex; flex-wrap: wrap; gap: 20px; }

/* =========================================================
   TÍTULOS DE SECCIÓN
   ========================================================= */
.section-head { text-align: center; padding: 0 20px; margin-bottom: 30px; }
.kicker { font-size: 23px; font-weight: 700; color: var(--orange); line-height: 1.3; }
.big-title { font-size: 37px; font-weight: 800; color: var(--navy-deep); line-height: 1.25; }
.big-title--orange { color: var(--orange); }
.big-title--light { font-weight: 600; color: var(--navy); }
.big-title--light.big-title--orange { color: var(--orange); }

/* =========================================================
   PRODUCTOS
   ========================================================= */
.products { padding: 40px 0 60px; }
.products__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1518px;
  margin: 0 auto;
  padding: 0 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0, 0, 0, .15); }
.card__img { aspect-ratio: 3 / 2; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__img img { transform: scale(1.07); }

.card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
  padding: 0 18px 26px;
}
.card__title {
  position: relative;
  margin-top: -27px;
  margin-bottom: 15px;
  padding: 12px 22px 6px;
  background: var(--white);
  border-radius: 13px 13px 0 0;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
}
.card__title .navy { color: var(--navy-title); }
.card__title .orange { color: var(--orange-alt); }
.card__text { font-size: 16px; font-weight: 500; line-height: 1.5; margin-bottom: 20px; flex: 1; }

/* =========================================================
   CTA (secciones oscuras)
   ========================================================= */
.cta { background: var(--dark); padding: 50px 0; color: var(--white); }
.cta__inner { display: grid; grid-template-columns: 39.6fr 24.6fr 52.8fr; gap: 30px; align-items: center; max-width: 1569px; }
.cta--alt .cta__inner { grid-template-columns: 44fr 25.4fr 47.7fr; align-items: stretch; }

.cta__title { font-size: 30px; font-weight: 800; line-height: 1.25; margin-bottom: 16px; color: var(--white); }
.cta__title--sm { font-size: 26px; }
.cta__text p { font-size: 15px; margin-bottom: 12px; }
.cta__text strong { font-weight: 600; }
.cta--alt .cta__text { align-self: center; }

.cta__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.cta__contact--center { align-items: center; justify-content: center; }

.wa-box { display: flex; align-items: center; gap: 15px; color: var(--white); }
.wa-box i { font-size: 50px; color: var(--whatsapp); transition: color .3s, transform .3s; }
.wa-box:hover i { color: var(--white); transform: scale(1.08); }
.wa-box__label { display: block; font-size: 17px; font-weight: 700; line-height: 1.2; }
.wa-box__number { display: block; font-size: 21px; font-weight: 700; line-height: 1.3; }
.wa-box--center { flex-direction: column; text-align: center; gap: 12px; }

.cta__img img { width: 100%; border-radius: 6px; }

.cta__bg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-radius: 6px;
  background: url('../img/fortex-web2.jpg') no-repeat top center / cover;
}

/* =========================================================
   VENTAJAS
   ========================================================= */
.benefits { background: var(--light); padding: 9px 0 60px; }
.benefits__title { text-align: center; font-size: 26px; font-weight: 800; line-height: 1.3; margin: 30px 0 30px; }
.benefits__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; max-width: 1524px; margin: 0 auto; }
.benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 25px 12px;
  border-radius: 6px;
  background: var(--light);
  transition: background-color .3s, box-shadow .3s, transform .3s;
}
.benefit:hover { background: var(--white); box-shadow: var(--shadow); transform: translateY(-4px); }
.benefit i { font-size: 34px; color: var(--orange); }
.benefit h3 { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.35; }

/* =========================================================
   PROYECTOS · CARRUSEL
   ========================================================= */
.projects { padding: 60px 0; }
.carousel { position: relative; max-width: 1600px; margin: 0 auto; padding: 0 30px 40px; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; transition: transform .6s ease; will-change: transform; }
.carousel__slide { flex: 0 0 25%; padding: 0 5px; }
.carousel__slide a { display: block; height: 291px; overflow: hidden; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.carousel__slide a:hover img { transform: scale(1.06); }

.carousel__btn {
  position: absolute;
  top: calc(50% - 20px);
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--navy);
  box-shadow: var(--shadow);
  transition: background-color .3s, color .3s;
}
.carousel__btn:hover { background: var(--orange); color: var(--white); }
.carousel__btn--prev { left: 40px; }
.carousel__btn--next { right: 40px; }

.carousel__dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.carousel__dots button { width: 7px; height: 7px; border-radius: 50%; background: #C8CDD3; transition: background-color .3s, transform .3s; }
.carousel__dots button.is-active { background: var(--orange); transform: scale(1.3); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(0, 0, 0, .9);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 4px; }
.lightbox__close { position: absolute; top: 18px; right: 22px; font-size: 30px; color: var(--white); }

/* =========================================================
   ASESORÍA
   ========================================================= */
.advice { background: var(--light); padding: 60px 0; }
.advice__inner { display: grid; grid-template-columns: 53.5fr 46.5fr; gap: 50px; align-items: center; }
.advice__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--orange);
  font-size: 28px;
}
.advice__title { font-size: 30px; font-weight: 800; line-height: 1.25; margin-bottom: 18px; }
.advice__text p { font-size: 15px; font-weight: 500; text-align: justify; margin-bottom: 14px; }
.advice__img img { width: 100%; border-radius: 6px; }

/* =========================================================
   FRANJA DE CONFIANZA
   ========================================================= */
.trust { padding: 30px 0; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust__grid li { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 16px; font-weight: 800; color: var(--navy); }
.trust__grid i { font-size: 26px; color: var(--orange); }

/* =========================================================
   PIE DE PÁGINA
   ========================================================= */
.footer { background: var(--dark); color: var(--white); padding: 60px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 38.3fr 28fr 33.7fr; gap: 30px; max-width: 1416px; }
.footer__logo { width: 160px; border-radius: 2px; }
.logo-text--footer { color: var(--white); }
.footer__about p { font-size: 15px; max-width: 64%; }
.footer__title { font-size: 17px; font-weight: 700; }

.footer__links li + li { margin-top: 8px; }
.footer__links a { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; transition: color .3s, transform .3s; }
.footer__links i { color: var(--orange); font-size: 13px; }
.footer__links a:hover { color: var(--orange); transform: translateX(4px); }

.footer__contact li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.footer__contact li + li { margin-top: 11px; }
.footer__contact i { flex: 0 0 28px; font-size: 25px; color: var(--orange); text-align: center; line-height: 1; }
.footer__contact a:hover { color: var(--orange); }

/* =========================================================
   BOTONES FLOTANTES
   ========================================================= */
.wa-float {
  position: fixed;
  right: calc(22px + env(safe-area-inset-right, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  font-size: 32px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: transform .3s;
}
.wa-float:hover { transform: scale(1.08); }
.to-top {
  position: fixed;
  left: calc(22px + env(safe-area-inset-left, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #1E73BE;
  color: var(--white);
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s, background-color .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange); }

/* =========================================================
   PÁGINA CONTÁCTANOS
   ========================================================= */
.hero--contact { padding: 90px 0 110px; }
.hero__content--contact { width: 40%; padding-left: 9%; }
.hero__title--stack { font-size: 50px; line-height: 1.55; letter-spacing: -1px; }
.hero__title--stack .hero__line--orange { margin-top: 0; }
.divider--hero-lg { width: 50px; height: 3px; margin: 30px 0 34px; }
.hero--contact .hero__text { font-size: 15px; font-weight: 500; margin-bottom: 24px; }
.hero__text--justify { text-align: justify; }

.contact { padding: 60px 0; }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 40px 10px;
  background: var(--white);
  box-shadow: 0 0 10px rgba(0, 0, 0, .12);
}
.contact-card--form { padding: 16px 10px; }
.contact-card__title { font-size: 31px; font-weight: 800; line-height: 1.4; letter-spacing: -1px; }
.divider--card { width: 70px; height: 3px; margin: 12px 0 22px; }
.contact-card__intro { font-size: 15px; margin-bottom: 30px; }

.quote-list li { display: flex; align-items: center; gap: 18px; }
.quote-list li + li { margin-top: 22px; }
.quote-list i { flex: 0 0 34px; font-size: 32px; color: var(--orange); text-align: center; }
.quote-list span { font-size: 15px; font-weight: 700; color: var(--navy); letter-spacing: -.3px; }

.wa-box--dark { color: var(--navy-deep); }
.wa-box--dark:hover i { color: var(--navy-deep); }
.contact-card__logo { width: 145px; margin: 26px auto 26px; }
.contact-card__text { font-size: 15px; font-weight: 500; margin-bottom: 40px; }
.contact-card__place { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 500; color: #333; }
.contact-card__place i { font-size: 22px; color: var(--text); }

.quote-form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 500; color: #333; }
.field input,
.field textarea {
  width: 100%;
  padding: 9px 16px;
  font: 500 14px var(--font);
  color: #333;
  background: var(--white);
  border: 1px solid #D5D8DC;
  border-radius: 0;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: #8A9097; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240, 126, 30, .18); }
.field.has-error input { border-color: #D93025; }
.btn--pill { width: 100%; border-radius: 30px; padding: 13px 20px; margin-top: 2px; }
.form-status { font-size: 14px; font-weight: 600; min-height: 1em; }
.form-status.is-error { color: #D93025; }
.form-status.is-ok { color: #1E8E3E; }

.cta__title--spaced { line-height: 1.75; letter-spacing: -1px; }
.cta__strong { margin-top: 30px; }

.btn:focus-visible,
a:focus-visible,
button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* =========================================================
   PÁGINA PUERTAS SECCIONALES
   ========================================================= */
.hero__content--wide { width: 46%; }
.hero--contact .hero__text + .hero__text { margin-top: -4px; }

.split { padding: 70px 0; }
.split__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; max-width: 1300px; }
.split__text { padding-left: 9%; }
.split__title { font-size: 31px; font-weight: 800; line-height: 1.65; letter-spacing: -1px; margin-bottom: 14px; }
.split__text p { font-size: 15px; font-weight: 500; text-align: justify; margin-bottom: 22px; }
.split__img img { width: 100%; border-radius: 6px; }

.uses { padding: 60px 0 70px; }
.uses__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1560px; margin: 0 auto; padding: 0 30px; }
.use { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.use__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.use__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.use__num {
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 18px;
}
.use__num--orange { color: var(--orange); }
.use__title { font-size: 17px; font-weight: 700; line-height: 1.65; }
.use__text { min-width: 0; }
.use__text p { font-size: 15px; font-weight: 500; text-align: justify; line-height: 1.65; margin-bottom: 22px; }

.advice__title--spaced { line-height: 1.95; letter-spacing: -1px; }

@media (max-width: 1200px) {
  .uses__grid { grid-template-columns: 1fr; max-width: 900px; }
}
@media (max-width: 767px) {
  .hero__content--wide { width: 100%; }
  .split { padding: 50px 0; }
  .split__inner { grid-template-columns: 1fr; }
  .split__text { padding-left: 0; }
  .split__title { font-size: 26px; line-height: 1.4; }
  .uses { padding: 40px 0; }
  .uses__grid { padding: 0 16px; gap: 40px; }
  .use { grid-template-columns: 1fr; }
  .advice__title--spaced { line-height: 1.4; }
}

/* =========================================================
   PÁGINA PUERTAS CORREDIZAS
   ========================================================= */
.hero.hero--corredizas {
  background-image:
    linear-gradient(90deg, rgba(10, 26, 54, .55) 0%, rgba(10, 26, 54, .25) 45%, rgba(10, 26, 54, 0) 65%),
    url('../img/banner-corredizas.jpg');
}

.solution { padding: 40px 0 0; }
.solution__inner {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 20px;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 30px;
}
.solution__text { min-width: 0; padding-left: 10px; }
.solution__title { font-size: 27px; font-weight: 800; line-height: 1.6; }
.divider--solution { width: 128px; height: 2px; margin: 12px 0 22px; }
.solution__text p { font-size: 15px; font-weight: 500; text-align: justify; line-height: 1.75; color: #333; margin-bottom: 22px; }
.solution__img img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.solution__rule { max-width: 1540px; margin: 48px auto 0; border: 0; border-top: 1px solid #1d1d1d; }

.benefits__title--spaced { line-height: 1.75; }

@media (max-width: 1200px) {
  .solution__inner { grid-template-columns: 1fr 1fr; }
  .solution__text { grid-column: 1 / -1; padding-left: 0; }
}
@media (max-width: 767px) {
  .solution__inner { grid-template-columns: 1fr; padding: 0 16px; }
  .solution__title { font-size: 24px; line-height: 1.4; }
  .solution__rule { margin: 36px 16px 0; }
  .hero.hero--corredizas {
    background-image: linear-gradient(rgba(10, 26, 54, .72), rgba(10, 26, 54, .72)), url('../img/banner-corredizas.jpg');
  }
}

/* =========================================================
   PÁGINA PUERTAS LEVADIZAS
   ========================================================= */
.hero.hero--levadizas {
  background-image:
    linear-gradient(90deg, rgba(10, 26, 54, .55) 0%, rgba(10, 26, 54, .25) 45%, rgba(10, 26, 54, 0) 65%),
    url('../img/banner-levadizas.jpg');
}

.where { padding: 20px 0 30px; }
.where__title { margin-top: 0; }
.where__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; max-width: 1300px; margin: 0 auto; }
.where__grid li { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; color: #111; }
.where__grid i { font-size: 38px; color: var(--navy-deep); transition: color .3s, transform .3s; }
.where__grid li:hover i { color: var(--orange); transform: translateY(-4px); }

.split--tight { padding-top: 30px; }
.split--reverse .split__text { padding-left: 0; padding-right: 9%; }
.split--reverse .split__img { padding-left: 9%; }

@media (max-width: 1200px) {
  .where__grid { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .split--reverse .split__img { padding-left: 0; }
  .split--reverse .split__text { padding-right: 0; }
}
@media (max-width: 767px) {
  .where__grid { grid-template-columns: repeat(2, 1fr); }
  .where__grid li { font-size: 16px; }
  .hero.hero--levadizas {
    background-image: linear-gradient(rgba(10, 26, 54, .72), rgba(10, 26, 54, .72)), url('../img/banner-levadizas.jpg');
  }
}

/* =========================================================
   PÁGINA PUERTAS BATIENTES
   ========================================================= */
.hero.hero--batientes {
  background-image:
    linear-gradient(90deg, rgba(10, 26, 54, .55) 0%, rgba(10, 26, 54, .25) 45%, rgba(10, 26, 54, 0) 65%),
    url('../img/banner-puertas-batientes.jpg');
}
.split__text .split__lead { margin-bottom: 40px; }
.uses-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 16px; }
.uses-icons li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.uses-icons i { font-size: 30px; color: var(--orange); transition: transform .3s; }
.uses-icons li:hover i { transform: translateY(-4px); }

.perks { background: var(--light); padding: 20px 0 70px; }
.perks__title { margin-top: 20px; }
.perks__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; max-width: 1460px; margin: 0 auto; }
.perk {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 316px;
  padding: 30px 40px;
  text-align: center;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .08);
  transition: transform .3s, box-shadow .3s;
}
.perk.reveal.is-visible:hover,
.perk:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0, 0, 0, .12); }
.perk i { font-size: 34px; color: var(--orange); margin-bottom: 14px; }
.perk h3 { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 6px; }
.perk p { font-size: 15px; color: #333; line-height: 1.7; }

@media (max-width: 1200px) {
  .perks__grid { grid-template-columns: repeat(3, 1fr); }
  .perk { min-height: 240px; }
}
@media (max-width: 767px) {
  .perks__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .perk { min-height: 0; min-width: 0; padding: 24px 12px; }
  .perk h3 { font-size: 14px; overflow-wrap: anywhere; }
  .perk p { font-size: 14px; }
  .uses-icons { grid-template-columns: repeat(2, 1fr); }
  .hero.hero--batientes {
    background-image: linear-gradient(rgba(10, 26, 54, .72), rgba(10, 26, 54, .72)), url('../img/banner-puertas-batientes.jpg');
  }
}

/* =========================================================
   PÁGINA PUERTAS PRINCIPALES
   ========================================================= */
.hero.hero--principales {
  background-image:
    linear-gradient(90deg, rgba(10, 26, 54, .6) 0%, rgba(10, 26, 54, .3) 45%, rgba(10, 26, 54, 0) 65%),
    url('../img/banner-puerta-principal.jpg');
}
.hero__subtitle { margin-top: 10px; font-size: 26px; font-weight: 800; line-height: 1.45; letter-spacing: -1px; color: var(--white); }
.hero--principales .divider--hero-lg { margin-top: 26px; }
.divider--tight { margin-top: 0; }
.split__subtitle { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -.5px; margin: 36px 0 18px; }
.split__text p.muted { color: #555; font-weight: 400; text-align: left; }
.perks__grid--4 { grid-template-columns: repeat(4, 1fr); max-width: 1360px; }
.perks__grid--4 .perk { min-height: 290px; }

@media (max-width: 1200px) {
  .perks__grid--4 { grid-template-columns: repeat(2, 1fr); }
  .perks__grid--4 .perk { min-height: 220px; }
}
@media (max-width: 767px) {
  .hero__subtitle { font-size: 22px; }
  .perks__grid--4 .perk { min-height: 0; }
  .hero.hero--principales {
    background-image: linear-gradient(rgba(10, 26, 54, .72), rgba(10, 26, 54, .72)), url('../img/banner-puerta-principal.jpg');
  }
}

/* =========================================================
   PÁGINA PUERTAS SECCIONALES EN LA LIBERTAD (SEO local)
   ========================================================= */
.breadcrumb { margin-bottom: 22px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--orange); }
.breadcrumb a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--orange); }
.hero__title--local { font-size: 46px; line-height: 1.35; }
.hero--contact .hero__buttons { margin-top: 30px; }

.areas { background: var(--light); padding: 30px 0 70px; }
.areas__intro { max-width: 680px; margin: -10px auto 34px; text-align: center; font-size: 15px; font-weight: 500; color: #333; }
.areas__groups { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1200px; margin: 0 auto; }
.areas__group { min-width: 0; padding: 28px; background: var(--white); border-radius: 6px; box-shadow: 0 0 10px rgba(0, 0, 0, .08); }
.areas__group h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 18px; }
.areas__group h3 i { color: var(--orange); font-size: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 14px; border: 1px solid #DDE2E8; border-radius: 30px; font-size: 14px; font-weight: 600; color: var(--navy); background: var(--light); transition: border-color .3s, color .3s; }
.chips li:hover { border-color: var(--orange); color: var(--orange); }

.benefits--white { background: var(--white); }
.benefits--white .benefit { background: var(--white); }
.uses--light { background: var(--light); }

.steps { padding: 30px 0 70px; }
.steps__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1300px; margin: 0 auto; counter-reset: none; }
.step { position: relative; min-width: 0; padding: 30px 24px 26px; border-top: 3px solid var(--orange); background: var(--white); box-shadow: 0 0 10px rgba(0, 0, 0, .08); border-radius: 0 0 6px 6px; }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 18px; font-weight: 800; }
.step h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 15px; color: #333; line-height: 1.65; }

.faq { background: var(--light); padding: 30px 0 70px; }
.faq__inner { max-width: 960px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--white); border-radius: 6px; box-shadow: 0 0 10px rgba(0, 0, 0, .06); }
.faq__item summary {
  position: relative;
  padding: 18px 56px 18px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 600;
  color: var(--orange);
  transition: transform .3s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item summary:hover { color: var(--orange); }
.faq__item p { padding: 0 22px 20px; font-size: 15px; line-height: 1.7; color: #333; }
.faq__more { margin-top: 26px; text-align: center; font-size: 15px; }
.faq__more a { color: var(--orange); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1200px) {
  .steps__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .hero__title--local { font-size: 32px; }
  .areas__groups { grid-template-columns: 1fr; }
  .areas__group { padding: 22px 18px; }
  .steps__list { grid-template-columns: 1fr; }
  .faq__item summary { font-size: 15px; padding: 16px 48px 16px 18px; }
}

/* =========================================================
   ANIMACIONES DE ENTRADA
   ========================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.card.reveal.is-visible:hover { transform: translateY(-6px); }
.benefit.reveal.is-visible:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1366px) {
  .hero__title { font-size: 46px; }
  .hero__content { width: 60%; }
  .header__logo { flex-basis: auto; }
  .nav__list > li > a { padding: 10px 10px; font-size: 15px; }
}

@media (max-width: 1200px) {
  .products__grid { grid-template-columns: repeat(3, 1fr); }
  .benefits__grid { grid-template-columns: repeat(3, 1fr); }
  .hero__features { grid-template-columns: repeat(2, 1fr); }
  .carousel__slide { flex-basis: 33.333%; }
  .cta__inner,
  .cta--alt .cta__inner { grid-template-columns: 1fr 1fr; }
  .cta__img,
  .cta__bg { grid-column: 1 / -1; }
  .header__cta { display: none; }
}

/* Menú móvil (ElementsKit pasa a hamburguesa en tablet) */
@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  .header__inner { justify-content: space-between; }
  .nav-toggle { display: flex; order: 3; }
  .social { margin-left: auto; }
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 350px;
    max-width: 85vw;
    background: var(--white);
    z-index: 200;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .35s ease;
  }
  .nav.is-open { transform: none; }
  .nav.is-open ~ .nav-overlay,
  body.menu-open .nav-overlay { opacity: 1; visibility: visible; }
  .nav__mobile-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 15px 15px 17px; border-bottom: 1px solid #eee; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid #eee; }
  .nav__list > li > a { justify-content: space-between; padding: 14px 20px; }
  .sub-menu {
    position: static;
    width: auto;
    box-shadow: none;
    border-top: 0;
    padding: 0 0 8px 12px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .has-sub:hover > .sub-menu { display: none; }
  .has-sub.is-open > .sub-menu { display: block; }
  .has-sub:hover > a i { transform: none; }
  .has-sub.is-open > a i { transform: rotate(180deg); }
}

@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .header { padding: 12px 0; }
  .header__logo .logo-img { height: 52px; }

  .hero {
    padding: 50px 0;
    background-image: linear-gradient(rgba(10, 26, 54, .72), rgba(10, 26, 54, .72)), url('../img/banner-seccional2.jpg');
    background-position: center center;
  }
  .hero__content { width: 100%; }
  .hero__title { font-size: 34px; }
  .hero__text { font-size: 17px; }
  .hero__features li { font-size: 13px; }
  .hero__features i { font-size: 26px; }
  .hero__buttons .btn { flex: 1 1 100%; }

  .kicker { font-size: 19px; }
  .big-title { font-size: 28px; }
  .products__grid { grid-template-columns: 1fr; max-width: 480px; }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .benefit h3 { font-size: 15px; }

  .cta__inner,
  .cta--alt .cta__inner { grid-template-columns: 1fr; text-align: center; }
  .cta__contact { align-items: center; }
  .cta__title { font-size: 26px; }
  .cta__title--sm { font-size: 22px; }
  .hide-sm { display: none; }

  .carousel { padding: 0 16px 36px; }
  .carousel__slide { flex-basis: 100%; }
  .carousel__slide a { height: 260px; }
  .carousel__btn--prev { left: 24px; }
  .carousel__btn--next { right: 24px; }

  .advice__inner { grid-template-columns: 1fr; gap: 30px; }
  .advice__title { font-size: 26px; }

  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__grid li { justify-content: flex-start; font-size: 14px; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__about p { max-width: 100%; }
}

@media (min-width: 768px) and (max-width: 1200px) {
  .hero__content { width: 75%; }
  .hero__content--contact { width: 60%; padding-left: 0; }
  .hero__content--wide { width: 70%; }
  .split__text { padding-left: 0; }
}

@media (max-width: 1100px) {
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact-card--form { grid-column: 1 / -1; padding: 30px 24px; }
  .contact-card { padding: 40px 24px; }
}

@media (max-width: 767px) {
  .hero--contact { padding: 50px 0 60px; }
  .hero__content--contact { width: 100%; padding-left: 0; }
  .hero__title--stack { font-size: 40px; line-height: 1.35; }
  .contact { padding: 40px 0; }
  .contact__grid { grid-template-columns: 1fr; padding: 0 16px; }
  .contact-card__title { font-size: 27px; }
  .wa-float { width: 52px; height: 52px; font-size: 28px; }
}

@media (max-width: 420px) {
  .hero__title { font-size: 30px; }
  .hero__features { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
  .social { display: none; }
}
