:root {
  --primary: #173d8f;
  --primary-dark: #102b63;
  --accent: #d62828;
  --accent-dark: #ad1f1f;
  --bg: #f5f7fb;
  --text: #162033;
  --muted: #5b6577;
  --white: #ffffff;
  --border: #e4e8f0;
  --shadow: 0 16px 45px rgba(16, 43, 99, .12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

svg {
  display: block;
}

.container {
  width: min(var(--max), 92%);
  margin-left: auto;
  margin-right: auto;
}

/* ===== HEADER ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-strip {
  background: rgba(16, 43, 99, .72);
  color: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(12px);
}

.header-strip__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: .9rem;
}

.header-strip__item-group,
.header-strip__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-strip__item-group {
  gap: 18px;
  flex-wrap: wrap;
}

.header-strip__icon {
  font-size: .9rem;
  line-height: 1;
}

.header-strip__phone {
  font-weight: 700;
}

.topbar {
  background: rgba(255, 255, 255, .10);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  transition: .25s ease;
}

.topbar.scrolled {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(22, 32, 51, .08);
  box-shadow: 0 10px 30px rgba(16, 43, 99, .10);
}

.navbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  background: rgba(255, 255, 255, .96);
  padding: 10px 14px;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
}

.brand img {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  padding: 12px 15px;
  border-radius: 999px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .20);
  transition: .25s ease;
}

.topbar.scrolled .nav-links a {
  color: var(--text);
  text-shadow: none;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, .16);
  color: #ffffff;
}

.topbar.scrolled .nav-links a:hover {
  background: #eef3ff;
  color: var(--primary);
}

.nav-links .cta {
  padding-inline: 22px;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(214, 40, 40, .24);
  text-shadow: none;
}

.nav-links .cta:hover,
.topbar.scrolled .nav-links .cta:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.menu-btn {
  display: none;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 16px;
  background: #eef3ff;
  cursor: pointer;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-dark);
  margin: 5px auto;
  border-radius: 999px;
}

/* ===== HERO ===== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(100deg,
      rgba(16, 43, 99, .92) 0%,
      rgba(16, 43, 99, .72) 42%,
      rgba(16, 43, 99, .34) 100%),
    url('assets/caja.jpg') center 10% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(to top, rgba(245, 247, 251, 1), rgba(245, 247, 251, 0));
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 48px;
  align-items: center;
  padding: 180px 0 120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .12);
  color: #eff5ff;
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.55rem, 4.7vw, 4.45rem);
  line-height: 1.03;
  letter-spacing: -.03em;
  max-width: 760px;
}

.hero p {
  margin: 22px 0 0;
  font-size: 1.14rem;
  color: rgba(255, 255, 255, .88);
  max-width: 740px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: .25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(214, 40, 40, .22);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-light {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border-color: rgba(255, 255, 255, .2);
}

.btn-light:hover {
  background: rgba(255, 255, 255, .2);
}

.hero-card {
  justify-self: end;
  width: min(430px, 100%);
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin: 0 0 18px;
  font-size: 1.45rem;
}

.hero-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
}

.mini-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f6f8fd;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
}

.mini-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex: 0 0 12px;
}

/* ===== SECCIONES GENERALES ===== */

section {
  padding: 88px 0;
}

#productos,
#ventajas,
.contact-section,
#galeria {
  padding-top: 170px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-head .tag {
  display: inline-block;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .83rem;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CARDS SERVICIOS ===== */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow);
  transition: .25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.icon-box {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #eef3ff;
  color: var(--primary);
  margin-bottom: 16px;
}

.icon-box svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

/* ===== NOSOTROS ===== */

.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.about-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.about-image {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 520px;
  background:
    linear-gradient(rgba(16, 43, 99, 0.15), rgba(16, 43, 99, 0.35)),
    url('assets/proceso-fabricacion.jpg') center/cover no-repeat;
  position: relative;
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 43, 99, 0) 25%, rgba(16, 43, 99, .35) 100%);
}

.about-hero {
  position: relative;
  padding: 190px 0 110px;
  min-height: 700px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(100deg,
      rgba(16, 43, 99, .88) 0%,
      rgba(16, 43, 99, .70) 45%,
      rgba(16, 43, 99, .45) 100%),
    url('assets/proceso-fabricacion.jpg') center 95% / cover no-repeat;
}

.about-hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-head--light {
  max-width: 820px;
}

.section-head--light .tag {
  color: #ffd6d6;
}

.section-head--light h2 {
  color: #ffffff;
}

.section-head--light p {
  color: rgba(255, 255, 255, .9);
  font-size: 1.05rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat {
  border-radius: 20px;
  background: #f7f9fe;
  border: 1px solid var(--border);
  padding: 18px;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.stats--overlay {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 35px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.stats--overlay .stat {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  color: #fff;
}

.stats--overlay .stat strong {
  color: #fff;
  font-size: 1.8rem;
  display: block;
}

.stats--overlay .stat span {
  font-size: .95rem;
}

/* ===== GALERÍA ANTERIOR ===== */

.gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr .85fr;
  gap: 20px;
  grid-auto-rows: 220px;
}

.gallery-item {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 100%;
  border: 1px solid rgba(22, 32, 51, .08);
  background: #e9eef7;
}

.gallery-item.large {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .overlay-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(16, 43, 99, .78);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
}

/* ===== GALERÍA NUEVA / PROYECTOS ===== */

.gallery-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(16, 43, 99, .16);
}

.project-card__image,
.project-image {
  background: linear-gradient(135deg, #f9fbff 0%, #e9eef7 100%);
  min-height: 285px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.project-card__image img,
.project-image img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  border-radius: 20px;
}

.project-card__body,
.project-content {
  padding: 22px 24px 24px;
}

.project-card__tag,
.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef3ff;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 12px;
}

.project-card h3,
.project-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
}

.project-card p,
.project-desc {
  margin: 0;
  color: var(--muted);
}

.gallery-note {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  box-shadow: 0 10px 30px rgba(16, 43, 99, .07);
}

/* ===== CONTACTO ===== */

.contact-section {
  background: linear-gradient(135deg, #0f2a63 0%, #1d4a9f 100%);
  color: var(--white);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 28px;
  align-items: start;
}

.contact-card,
.form-card {
  border-radius: 30px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
  padding: 30px;
}

.contact-card p,
.contact-card li {
  color: rgba(255, 255, 255, .86);
}

.contact-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact-list li {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: none;
  outline: none;
  border-radius: 16px;
  padding: 15px 16px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.form-note {
  margin: 10px 0 0;
  font-size: .92rem;
  color: rgba(255, 255, 255, .78);
}

.map-container {
  margin-top: 18px;
  padding: 10px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 200px;
  border: 0;
  display: flex;
}

.map-container--simple {
  margin-top: 18px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .88);
}

.map-container--simple p {
  margin: 0 0 8px;
}

/* ===== FOOTER ===== */

.footer {
  background: #0c1732;
  color: rgba(255, 255, 255, .74);
  padding: 34px 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-info {
  display: grid;
  gap: 4px;
}

.footer-info strong {
  color: #fff;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social span {
  font-weight: 700;
  color: rgba(255, 255, 255, .82);
}

.social-link,
.social-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  transition: .25s ease;
}

.social-link:hover,
.social-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
  color: #fff;
}

/* ===== WHATSAPP FLOTANTE ===== */

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
  z-index: 1000;
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp i {
  font-size: 30px;
  color: white;
}

.whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 22px rgba(0, 0, 0, .35);
}

/* ===== ANIMACIONES ===== */

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all .6s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1060px) {

  .hero-grid,
  .about-wrap,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .hero-card {
    justify-self: start;
  }

  .cards-3 {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-item.large {
    grid-row: span 1;
    min-height: 360px;
    grid-column: 1 / -1;
  }

  .gallery-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-strip__inner {
    flex-direction: column;
    justify-content: center;
    padding: 8px 0;
  }

  .header-strip__item-group {
    justify-content: center;
    gap: 10px 16px;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
  }

  .header-strip {
    display: none;
  }

  .topbar {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(22, 32, 51, .08);
  }

  .navbar {
    min-height: 84px;
  }

  .brand img {
    width: 95px;
  }

  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 84px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 420px);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 24px;
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    z-index: 1001;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .topbar.scrolled .nav-links a {
    color: var(--text);
    text-shadow: none;
    border-radius: 16px;
  }

  .nav-links .cta,
  .topbar.scrolled .nav-links .cta {
    color: #fff;
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 58px 0 90px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 9vw, 3.2rem);
  }

  .cards-3,
  .gallery-grid,
  .gallery-projects,
  .stats,
  .stats--overlay {
    grid-template-columns: 1fr;
  }

  .service-card,
  .about-panel,
  .hero-card,
  .contact-card,
  .form-card {
    padding: 22px;
  }

  .about-image {
    min-height: 340px;
  }

  .about-hero {
    padding: 80px 0;
  }

  #productos,
  #ventajas,
  .contact-section,
  #galeria {
    padding-top: 72px;
  }

  section {
    padding: 72px 0;
  }

  .project-card__image img,
  .project-image img {
    height: 235px;
  }

  .footer-wrap,
  .footer-info {
    text-align: center;
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
    width: 100%;
  }
}

/* ===== FIX FINAL: CENTRADO Y HEADER FIJO ===== */

.container {
  width: min(1200px, 92%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Header con altura controlada */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

/* Evita que el hero se meta debajo del menú */
.hero-grid {
  padding-top: 170px;
  padding-bottom: 90px;
}

/* Corrige que el texto se pegue demasiado */
.hero h1,
.hero p,
.eyebrow,
.hero-actions,
.hero-badges {
  margin-left: 0;
}

/* Espacio superior para páginas internas */
body:not(.home-page) main {
  padding-top: 130px;
}

/* Pero en inicio NO agregamos padding extra */
body.home-page main {
  padding-top: 0;
}

/* La galería con Tailwind necesita ajuste especial */
body:not(.home-page) main>section:first-child {
  padding-top: 90px;
}

/* Navbar más estable */
.navbar {
  width: min(1200px, 92%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  min-height: 88px;
}

/* Evita que el logo empuje raro el contenido */
.brand {
  flex-shrink: 0;
}

.nav-links {
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 760px) {
  body:not(.home-page) main {
    padding-top: 0;
  }

  .hero-grid {
    padding-top: 70px;
    padding-bottom: 80px;
  }

  body:not(.home-page) main>section:first-child {
    padding-top: 72px;
  }
}

/* ===== HEADER CLARO (PÁGINAS INTERNAS) ===== */

body.light-header .topbar {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(22, 32, 51, .08);
}

body.light-header .nav-links a {
  color: var(--text);
  text-shadow: none;
}

body.light-header .nav-links a:hover {
  background: #eef3ff;
  color: var(--primary);
}

/* botón rojo no cambia */
body.light-header .nav-links .cta {
  color: white;
}

/* ===== NOSOTROS CENTRADO ===== */

.about-hero__content {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head--light {
  text-align: center;
}

.section-head--light p {
  margin-left: auto;
  margin-right: auto;
}

.section-head--light p {
  max-width: 720px;
}

/* ===== FIX MENÚ MÓVIL: EVITAR EMPALMES ===== */

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .hero-grid {
    padding-top: 90px;
  }

  body.light-header main,
  body:not(.home-page) main {
    padding-top: 20px;
  }

  body.light-header main>section:first-child,
  body:not(.home-page) main>section:first-child {
    padding-top: 95px;
  }

  .about-hero {
    padding-top: 110px;
  }

  .nav-links {
    top: calc(100% + 10px);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
}

/* ===== SECCIÓN POR QUÉ ELEGIRNOS PRO ===== */

.why-section {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(23, 61, 143, .08), transparent 34%),
    linear-gradient(180deg, #f5f7fb 0%, #ffffff 100%);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.why-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 14px 36px rgba(16, 43, 99, .10);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.why-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity .25s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(16, 43, 99, .16);
  border-color: rgba(23, 61, 143, .18);
}

.why-card:hover::before {
  opacity: 1;
}

.why-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #eef3ff;
  color: var(--primary);
  margin-bottom: 18px;
}

.why-icon i {
  font-size: 26px;
}

.why-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--text);
}

.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
}

.why-card p strong {
  color: var(--primary-dark);
}

.why-card--featured {
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
}

.why-card--featured::before {
  background: var(--accent);
  opacity: 1;
}

.why-card--featured .why-icon {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
}

.why-card--featured h3 {
  color: #fff;
}

.why-card--featured p {
  color: rgba(255, 255, 255, .84);
}

.why-card--featured p strong {
  color: #fff;
}

@media (max-width: 1060px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-card {
    padding: 24px;
  }
}