/* =========================================================
   AASA — réplica en Bootstrap 5 de empresasaasa.cl (Framer)
   ========================================================= */
:root {
  --aasa-navy: #101c2e;        /* navbar */
  --aasa-navy-2: #11233c;      /* footer y títulos */
  --aasa-orange: #f27130;
  --aasa-orange-light: #ffa477;
  --aasa-rust: #aa310f;
  --aasa-text: #1d1d1b;
  --aasa-gray-bg: #efefef;
  --font-sans: "Inter", "Inter Placeholder", sans-serif;
  --font-serif: "Fraunces", "Fraunces Placeholder", serif;
  --nav-h: 112px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--aasa-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { text-decoration: none; }

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

/* ---------------- Navbar ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  transition: transform .45s cubic-bezier(.44, 0, .56, 1);
}
.site-header.is-hidden { transform: translateY(-100%); }

.aasa-nav {
  height: var(--nav-h);
  padding: 20px 60px;
  background: var(--aasa-navy);
}
.nav-logo { width: 181px; height: 82px; display: block; }

.aasa-links { gap: 30px; margin-right: 15px; }
.aasa-links .nav-link {
  padding: 0 !important;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff !important;
  position: relative;
}
.aasa-links .nav-link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--aasa-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.aasa-links .nav-link:hover::after { transform: scaleX(1); }

/* Hamburguesa móvil */
.aasa-toggler {
  border: 0; padding: 0; box-shadow: none !important;
  width: 22px; height: 14px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.aasa-toggler span { display: block; height: 1.5px; width: 100%; background: #fff; }

.aasa-offcanvas.offcanvas-top {
  height: 100vh;
  background: var(--aasa-navy);
  color: #fff;
}
.aasa-offcanvas .offcanvas-header { height: var(--nav-h); padding: 15px 20px; justify-content: space-between; }
.aasa-offcanvas .offcanvas-header .nav-logo { width: 181px; height: 82px; }
.aasa-offcanvas .nav-logo { width: 150px; height: auto; }
.aasa-close {
  background: none; border: 0; color: #fff;
  font-size: 40px; line-height: 1; padding: 0 4px;
}
.aasa-mobile-links { padding: 40px 20px; }
.aasa-mobile-links li + li { margin-top: 28px; }
.aasa-mobile-links a {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.aasa-mobile-links a:hover { color: var(--aasa-orange); }

/* ---------------- Botones ---------------- */
.btn-aasa {
  display: inline-block;
  padding: 14px 33px;
  border-radius: 46px;
  border: 1px solid var(--aasa-orange);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background-color .3s ease, color .3s ease;
}
.btn-aasa-dark { background: rgba(0, 0, 0, .26); color: #fff; }
.btn-aasa-dark:hover { background: var(--aasa-orange); color: #fff; }
.btn-aasa-light { background: transparent; color: var(--aasa-rust); }
.btn-aasa-light:hover { background: var(--aasa-orange); color: #fff; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
}
.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item { height: 100%; }
.hero-carousel .carousel-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-carousel .carousel-item { transition: transform .9s cubic-bezier(.44, 0, .56, 1); }
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.3) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 124px 106px 0;
  pointer-events: none;
}
.hero-content a { pointer-events: auto; }
.hero-title {
  font-family: var(--font-sans);
  font-size: 58px;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 15px;
}
.hero-title strong { font-weight: 700; }
.hero-sub {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 37px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 28px; height: 28px;
  padding: 0; border: 0; background: none;
  opacity: .9;
  transition: opacity .2s;
}
.hero-arrow:hover { opacity: 1; }
.hero-arrow img { width: 28px; height: 28px; object-fit: contain; display: block; }
.hero-arrow-prev { left: 40px; }
.hero-arrow-next { right: 40px; }

.hero-dots.carousel-indicators {
  left: 50%; right: auto;
  bottom: 10px;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 10px;
  gap: 10px;
  border-radius: 50px;
  background: rgba(0, 0, 0, .2);
  z-index: 3;
}
.hero-dots.carousel-indicators [data-bs-target] {
  width: 10px; height: 10px;
  margin: 0;
  border-radius: 50%;
  border: 0;
  background: #fff;
  opacity: .5;
  text-indent: 0;
}
.hero-dots.carousel-indicators .active { opacity: 1; }

/* ---------------- Cinta de logos ---------------- */
.logos-reel {
  position: relative;
  height: 180px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.reel-track {
  display: flex;
  width: max-content;
  animation: reel 30s linear infinite;
}
.reel-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}
.reel-group img { height: 80px; width: auto; display: block; }
.reel-group img.reel-png { height: 57px; width: 114px; object-fit: contain; }
@keyframes reel {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% / 3)); }
}
.reel-fade {
  position: absolute; top: 0; bottom: 0;
  width: 342px;
  pointer-events: none;
  z-index: 1;
}
.reel-fade-right { right: 0; background: linear-gradient(270deg, #fff 43.87%, rgba(255,255,255,0) 100%); }
.reel-fade-left  { left: 0;  background: linear-gradient(90deg,  #fff 43.87%, rgba(255,255,255,0) 100%); }

/* ---------------- Números ---------------- */
.numeros {
  background: #fff;
  padding: 0 60px 64px;
}
.numeros-box {
  background: url("../img/numeros-bg.png") center / cover no-repeat;
  min-height: 267px;
  display: flex;
  align-items: center;
  padding: 48px 121px 48px 125px;
}
.numeros-box .row { width: 100%; justify-content: space-between; flex-wrap: nowrap; }
.numeros-box .stat { width: auto; }
.stat-num {
  font-family: var(--font-sans);
  font-size: 80px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--aasa-orange);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-num .plus { color: var(--aasa-orange-light); }
.stat-label {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin: 14px 0 0;
}

/* ---------------- Sostenibilidad ---------------- */
.sostenibilidad {
  background: var(--aasa-gray-bg);
  padding: 64px 60px;
}
.sost-img {
  width: 100%;
  height: 552px;
  object-fit: cover;
  display: block;
}
.sost-img-col { flex: 0 0 auto; width: calc(676 / 1320 * 100%); }
.sost-text { flex: 1 1 0; padding-left: 48px; padding-top: 42px; }

.section-title {
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--aasa-navy-2);
  margin: 0 0 24px;
}
.body-serif {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--aasa-text);
  margin: 0;
}
.sost-text .body-serif { margin-bottom: 85px; }

/* ---------------- Nuestras empresas ---------------- */
.empresas {
  background: #fff;
  padding: 64px 60px;
}
.empresas-head { margin-bottom: 46px; }
.empresas-grid { max-width: 1200px; margin: 0 auto; }
.empresas-grid .row { --bs-gutter-x: 24px; --bs-gutter-y: 24px; }

.emp-card {
  position: relative;
  display: block;
  height: 419px;
  overflow: hidden;
  color: #fff;
  filter: grayscale(1) drop-shadow(0 2px 5px rgba(0, 0, 0, .25));
  transition: filter .5s ease;
}
.emp-card:hover { filter: grayscale(0) drop-shadow(0 2px 5px rgba(0, 0, 0, .25)); color: #fff; }
.emp-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.91);
  transition: transform .6s ease;
}
.emp-card:hover .emp-bg { transform: scale(1.04); }
.emp-logo {
  position: absolute;
  top: 0; left: 0;
  height: auto;
  z-index: 2;
}
.emp-logo-png { width: 151px; height: 75px; object-fit: contain; top: 25px; left: 22px; }
.emp-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 16px;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.emp-text h3 {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 9px;
}
.emp-text p {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}
.emp-ver {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ---------------- Footer ---------------- */
.aasa-footer {
  background: var(--aasa-navy-2);
  padding: 75px 60px;
  color: #fff;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo { width: 240px; height: 109px; display: block; }
.footer-contacto { padding-left: 42px; }
.footer-links { display: flex; justify-content: flex-end; }
.footer-heading {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--aasa-orange);
  margin: 0 0 19px;
}
.footer-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.footer-list li:last-child { margin-bottom: 0; }
.footer-list a, .footer-list span { color: #fff; }
.footer-list a:hover { color: var(--aasa-orange); }
.footer-list img.icon-mail { margin-right: 0; }
.footer-links .footer-list li { margin-bottom: 16px; }

.footer-empresas-title { margin: 53px 0 75px; }
.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}
.footer-logos img { height: 80px; display: block; transition: opacity .2s; }
.footer-logos a:hover img { opacity: .75; }

/* ---------------- Animación de entrada ---------------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reel-track { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1199.98px) {
  .numeros-box { padding: 48px 40px; }
  .stat-num { font-size: 64px; }
}

@media (max-width: 991.98px) {
  .aasa-nav { padding: 15px 20px; }
  .nav-logo { width: 181px; height: 82px; }

  /* Menú visible en la parte superior; en móvil el header no se oculta en el hero */
  .hero-content { padding: 120px 50px 0; }
  .hero-title { font-size: 44px; }

  /* En pantallas táctiles las tarjetas se muestran a color, como en el original */
  .emp-card, .emp-card:hover { filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .25)); }
  .hero-sub { font-size: 24px; margin-bottom: 40px; }
  .hero-arrow { display: none; }
  .hero-dots.carousel-indicators { bottom: 10px; }
  .aasa-toggler { margin-top: 10px; margin-right: 0; }

  .numeros { padding: 0 24px 64px; }
  .numeros-box { padding: 60px 20px 62px; }
  .numeros-box .row { flex-wrap: wrap; }
  .numeros-box .stat { width: 100%; }
  .stat + .stat { margin-top: 48px; }
  .stat-num { font-size: 80px; line-height: 97px; }
  .stat-label { margin-top: 12px; }
  .stat:nth-child(3) { margin-top: 77px; }

  .sostenibilidad { padding: 64px 20px; }
  .sost-img-col { width: 100%; }
  .sost-img { height: 413px; }
  .sost-text { padding: 28px 0 0; flex: 0 0 100%; }
  .sostenibilidad { padding-bottom: 24px; }
  .sost-text .body-serif { margin-bottom: 85px; }
  .sost-text { text-align: center; }
  .sost-text .section-title, .sost-text .body-serif { text-align: left; }

  .empresas { padding: 64px 20px; }
  .empresas-head { margin-bottom: 46px; }

  .aasa-footer { padding: 75px 0 75px 20px; text-align: center; }
  .footer-inner { padding-right: 20px; }
  .footer-brand { display: flex; justify-content: center; margin-bottom: 61px; }
  .footer-logo { width: 240px; height: auto; }
  .footer-contacto { padding-left: 0; margin-bottom: 42px; }
  .footer-list li { justify-content: center; text-align: left; }
  .footer-links { justify-content: center; }
  .footer-empresas-title { margin: 93px 0 75px; }
  .footer-logos {
    justify-content: flex-start;
    overflow-x: auto;
    margin-right: -20px;
    margin-left: -20px;
    scrollbar-width: none;
  }
  .footer-logos::-webkit-scrollbar { display: none; }
  .footer-logos a { flex: 0 0 auto; }
  .footer-logos img { height: 80px; width: auto; }
}

@media (max-width: 767.98px) {
  .section-title { font-size: 40px; }
  .reel-fade { width: 120px; }
  .numeros-box { min-height: 0; }
}

/* =========================================================
   Página: Nosotros
   ========================================================= */
.label-sans {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--aasa-text);
  margin: 0;
}

/* Hero interior */
.page-hero {
  position: relative;
  height: 451px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.6) 100%);
}
.page-hero-title {
  position: relative;
  z-index: 1;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 76px 0 0;
}

/* Qué hacemos */
.que-hacemos { padding: 64px 100px; background: #fff; }
.qh-img-col { width: 636px; }
.qh-img { width: 100%; height: 501px; object-fit: cover; display: block; }
.qh-text { padding-left: 48px; flex: 0 0 604px; max-width: 604px; }
.qh-text .section-title { margin-bottom: 24px; }
.qh-item + .qh-item { margin-top: 34px; }

/* Historia */
.historia {
  position: relative;
  height: 619px;
  overflow: hidden;
  color: #fff;
}
.historia-bgs img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}
.historia-bgs img.active { opacity: 1; }
.historia-tint { position: absolute; inset: 0; background: rgba(9, 60, 99, .3); }
.historia-inner {
  position: absolute;
  left: 0; right: 0; top: 6px; bottom: 7px;
  background: rgba(17, 35, 61, .23);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 60px;
}
.historia-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  text-align: center;
}
.historia-title strong { font-weight: 700; }
.historia-stage {
  position: relative;
  width: 100%;
  max-width: 1134px;
  height: 260px;
  margin-top: 94px;
}
.hist-slides { position: absolute; left: 407px; top: 0; width: 320px; }
.hist-slide {
  position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.hist-slide.active { opacity: 1; transform: none; pointer-events: auto; }
.hist-year {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--aasa-orange);
  margin: 0 0 23px;
}
.hist-desc {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  max-width: 290px;
  margin: 0;
}
.hist-desc strong { font-weight: 700; }
.hist-arrow {
  position: absolute;
  top: 111px;
  width: 34px; height: 28px;
  padding: 0; border: 0; background: none;
  transition: opacity .3s;
}
.hist-arrow img { width: 34px; height: 27px; display: block; }
.hist-prev { left: 0; }
.hist-next { right: 0; }
.hist-arrow.is-hidden { opacity: 0; pointer-events: none; }

.hist-years {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 47px;
  white-space: nowrap;
}
.hist-years button {
  border: 0; background: none; padding: 0;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  transition: color .3s;
}
.hist-years button:hover,
.hist-years button.active { color: var(--aasa-orange); }

/* Misión y visión */
.mision-vision { background: var(--aasa-gray-bg); padding: 64px 60px; }
.mv-row { display: flex; justify-content: center; gap: 64px; }
.mv-card {
  position: relative;
  width: 400px; height: 400px;
  overflow: hidden;
  cursor: pointer;
  transition: width .5s cubic-bezier(.44, 0, .56, 1);
}
.mv-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mv-card::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); }
.mv-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.mv-title { font-size: 40px; font-weight: 700; line-height: 1.2; margin: 0; }
.mv-text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity .4s ease, max-height .4s ease, margin-top .4s ease;
}
@media (hover: hover) and (min-width: 992px) {
  .mv-card:hover { width: 508px; }
  .mv-card:hover .mv-text { max-height: 200px; opacity: 1; margin-top: 24px; }
}

/* Valores */
.valores { background: #fff; padding: 64px 120px; }
.valores-inner { display: flex; gap: 24px; max-width: 1200px; margin: 0 auto; }
.valores-left { width: 624px; flex: 0 0 auto; }
.valores-left .section-title { margin-bottom: 24px; }
.valores-grid { display: grid; grid-template-columns: repeat(2, 300px); gap: 24px; }
.valor {
  background: var(--aasa-gray-bg);
  height: 160px;
  padding: 0 16px;
  display: flex;
  align-items: center;
}
.valor p { margin: 0; }
.valor .label-sans { display: inline; }
.valores-img { width: 552px; height: 600px; object-fit: cover; margin-left: auto; display: block; }

/* Imagen de cierre */
.cierre img { width: 100%; height: 558px; object-fit: cover; display: block; }

/* Nosotros responsive */
@media (max-width: 1199.98px) {
  .que-hacemos { padding: 64px 60px; }
  .qh-img-col { width: 50%; }
  .valores { padding: 64px 60px; }
  .valores-img { width: auto; flex: 1 1 0; min-width: 0; }
  .hist-slides { left: 50%; transform: translateX(-160px); }
}

@media (max-width: 991.98px) {
  .page-hero-title { padding: 0 20px; text-align: center; }

  .que-hacemos { padding: 64px 20px; }
  .qh-img-col { width: 100%; }
  .qh-text { flex: 0 0 100%; }
  .qh-img { height: 408px; }
  .qh-text { padding: 48px 0 0; max-width: none; }
  .qh-item + .qh-item { margin-top: 32px; }

  .historia { height: 606px; }
  .historia-inner { padding: 54px 0 0; }
  .historia-stage { margin-top: 30px; height: 330px; }
  .hist-slides { left: 85px; width: 220px; transform: none; }
  .hist-desc { max-width: none; }
  .hist-arrow { top: 111px; }
  .hist-prev { left: 30px; }
  .hist-next { right: 30px; }
  .hist-years {
    left: 0; right: 0;
    transform: none;
    bottom: 40px;
    padding: 0 40px 0 76px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .hist-years::-webkit-scrollbar { display: none; }

  .mision-vision { padding: 64px 20px; }
  .mv-row { flex-direction: column; align-items: center; gap: 18px; }
  .mv-card { width: 300px; height: 300px; cursor: default; }
  .mv-text { max-height: none; opacity: 1; margin-top: 24px; }

  .valores { padding: 64px 20px; }
  .valores-inner { display: block; }
  .valores-left { width: 300px; margin: 0 auto; }
  .valores-left .section-title { text-align: center; margin-bottom: 24px; }
  .valores-grid { grid-template-columns: 300px; gap: 24px; }
  .valores-img { display: none; }

  .cierre img { height: 558px; }
}

/* =========================================================
   Página: Empresas
   ========================================================= */
.empresas-page .empresas-grid { max-width: 1320px; }
.empresas-page .empresas-grid .row { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
.empresas-page .emp-card { height: 410px; }
@media (max-width: 991.98px) {
  .empresas-page { padding: 30px 20px; }
  .empresas-page .empresas-head { margin-bottom: 46px; }
  .empresas-page .empresas-grid .row { --bs-gutter-y: 12px; }
}

/* =========================================================
   Páginas de cada empresa
   ========================================================= */
/* En estas páginas la foto del encabezado empieza bajo el menú */
.page-hero-below-nav { margin-top: var(--nav-h); }
.page-hero-below-nav .page-hero-title { margin-top: 0; }

.empresa-intro .qh-row { align-items: stretch; }
.empresa-intro .qh-img-col { position: relative; }
.empresa-intro .qh-img { position: absolute; inset: 0; height: 100%; }
.empresa-title { font-weight: 700; }
.empresa-title strong { font-weight: 900; }
.empresa-intro .body-serif + .body-serif { margin-top: 20px; }
.empresa-intro .body-serif a { color: inherit; }
.empresa-cta { margin-top: 45px; }

@media (max-width: 991.98px) {
  .empresa-intro { padding: 64px 20px; }
  .empresa-intro .qh-img { position: static; height: auto; }
  .empresa-intro .qh-text { padding: 48px 0 0; }
  .empresa-cta { text-align: center; margin-top: 48px; }
  .empresa-intro + .cierre img { height: 558px; }
}

/* =========================================================
   Página: Productos
   ========================================================= */
.productos { background: #fff; padding: 64px 60px 48px; }
.productos-head { max-width: 920px; margin: 0 auto 46px; }
.productos-head .section-title { margin-bottom: 26px; }
.prod-row { display: flex; justify-content: center; gap: 12px; }
.prod-card {
  position: relative;
  flex: 0 0 auto;
  width: 350px;
  height: 450px;
  overflow: hidden;
  cursor: pointer;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .08));
  transition: width .5s cubic-bezier(.44, 0, .56, 1);
}
.prod-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prod-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 24px 32px;
  color: #fff;
}
.prod-text h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}
.prod-text p {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity .4s ease, max-height .4s ease, margin-top .4s ease;
}
@media (hover: hover) and (min-width: 992px) {
  .prod-card:hover { width: 440px; }
  .prod-card:hover .prod-text p { max-height: 200px; opacity: 1; margin-top: 8px; }
}
.productos-cta { margin-top: 64px; }

@media (max-width: 991.98px) {
  .productos { padding: 64px 20px 48px; }
  .productos-head { padding: 0 10px; }
  .productos-head .section-title { margin-bottom: 12px; }
  .prod-row { flex-direction: column; align-items: center; }
  .prod-card { cursor: default; }
  .prod-text { padding: 16px 12px; }
  .prod-text p { max-height: none; opacity: 1; margin-top: 8px; }
}

/* =========================================================
   Página: Sostenibilidad
   ========================================================= */
/* Economía circular */
.economia { background: #fff; padding: 64px 0 108px; }
.economia-head { padding: 0 100px; }
.economia-head .section-title { margin-bottom: 24px; }
.pasos-bar { margin-top: 76px; padding-left: 24px; }
.pasos-pills { display: flex; align-items: center; gap: 8px; width: max-content; }
.paso-pill {
  border: 0;
  border-radius: 1000px;
  padding: 12px 24px;
  background: var(--aasa-gray-bg);
  color: var(--aasa-text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .32px;
  white-space: nowrap;
  transition: background-color .3s, color .3s;
}
.paso-pill:hover { background: #e2e2e2; }
.paso-pill.active { background: var(--aasa-orange); color: #fff; }
.paso-pill:nth-of-type(4) { padding-right: 33px; } /* el original es 9 px más ancho */
.paso-flecha { width: 34px; height: 27px; }

.pasos-stage {
  position: relative;
  width: 742px;
  height: 233px;
  margin: 47px auto 0;
}
.paso-nav {
  position: absolute;
  top: 96px;
  width: 40px; height: 40px;
  padding: 0; border: 0; background: none;
  z-index: 2;
}
.paso-nav img { width: 40px; height: 40px; display: block; }
.paso-prev { left: 0; }
.paso-next { right: 0; }
.paso-slide {
  position: absolute;
  inset: 0 82px;
  display: flex;
  align-items: center;
  gap: 48px;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.paso-slide.active { opacity: 1; pointer-events: auto; }
.paso-img { width: 234px; height: 233px; flex: 0 0 auto; }
.paso-text { width: 290px; }
.paso-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--aasa-orange);
  margin: 0 0 10px;
}
.paso-desc {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.6;
  color: var(--aasa-text);
  margin: 0;
}

/* Lo que logramos */
.logramos { position: relative; overflow: hidden; color: #fff; }
.logramos-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.logramos-inner { position: relative; padding: 64px 0 63px; }
.logramos-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  margin: 0;
}
.logramos-title strong { font-weight: 700; }
.logros-grid {
  display: grid;
  grid-template-columns: repeat(3, 270px);
  column-gap: 64px;
  row-gap: 48px;
  justify-content: center;
  margin-top: 50px;
}
.logro { text-align: center; }
.logro-ico { height: 44px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 4px; }
.logro:nth-child(n+4) .logro-ico { height: 50px; margin-bottom: 0; }
.logro:nth-child(3) .logro-ico { margin-bottom: 10px; height: 40px; }
.logro:nth-child(5) .logro-num { margin-top: 10px; }
.logro:nth-child(5) .logro-label { margin-top: 10px; }
.logro:nth-child(6) .logro-ico { align-items: flex-start; padding-top: 3px; }
.logro-ico img { display: block; }
.logro-num {
  font-size: 80px;
  font-weight: 700;
  line-height: 97px;
  color: var(--aasa-orange);
  font-variant-numeric: tabular-nums;
}
.logro-num .plus { color: var(--aasa-orange-light); }
.logro-label {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}
.logro-final { text-align: center; margin-top: 53px; }
.logro-final img { width: 50px; height: 50px; }
.logro-final p {
  max-width: 1000px;
  margin: 21px auto 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

/* ¿Por qué este modelo importa? */
.por-que { background: #fff; padding: 64px; }
.por-que-inner { display: flex; align-items: center; gap: 24px; }
.por-que-left { width: 654px; flex: 0 0 auto; }
.por-que-title { font-weight: 500; margin-bottom: 48px; }
.por-que-title strong { font-weight: 700; }
.pq-grid { display: grid; grid-template-columns: repeat(2, 315px); gap: 24px; }
.pq-card {
  background: var(--aasa-gray-bg);
  height: 200px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.pq-card p { margin: 0; }
.por-que-img { width: 634px; height: 600px; object-fit: cover; display: block; }

@media (max-width: 1399.98px) {
  .por-que-inner { justify-content: center; }
  .por-que-img { width: auto; flex: 1 1 0; min-width: 0; }
}

@media (max-width: 991.98px) {
  .economia { padding: 64px 0 160px; }
  .economia-head { padding: 0 20px; }
  .economia-head .section-title { margin-bottom: 12px; }
  .pasos-bar { margin-top: 32px; padding-left: 35px; overflow-x: auto; scrollbar-width: none; }
  .pasos-bar::-webkit-scrollbar { display: none; }
  .pasos-pills { padding-right: 35px; }

  .pasos-stage { width: 100%; height: auto; margin-top: 48px; padding: 0 13px; }
  .pasos-slides { position: relative; }
  .paso-slide { position: absolute; inset: 0; flex-direction: column; gap: 0; }
  .paso-slide.active { position: relative; }
  .paso-text { text-align: center; margin-top: 32px; }
  .paso-nav { top: 228px; }
  .paso-prev { left: 13px; }
  .paso-next { right: 13px; }

  .logramos-inner { padding: 64px 20px; }
  .logros-grid { grid-template-columns: 270px; row-gap: 48px; }
  /* separaciones irregulares, tal como en el original */
  .logro:nth-child(2) { margin-top: 17px; }
  .logro:nth-child(3) { margin-top: -15px; }
  .logro:nth-child(5) { margin-top: 16px; }
  .logro:nth-child(6) { margin-top: 17px; }
  .logro-final p { font-size: 24px; }

  .por-que { padding: 64px 20px; }
  .por-que-inner { flex-direction: column; }
  .por-que-left { width: 100%; }
  .por-que-title { text-align: center; margin-bottom: 32px; }
  .pq-grid { grid-template-columns: 315px; justify-content: center; }
  .por-que-img { width: calc(100% + 40px); max-width: none; margin: 0 -20px -64px; height: 260px; flex: none; }
}

/* =========================================================
   Página: Contacto
   ========================================================= */
.contacto { background: #fff; padding: 48px 20px 68px; }
.contacto-inner { display: flex; justify-content: center; gap: 68px; padding-right: 20px; } /* igual que el original: 10 px a la izquierda del centro */
.contacto-info { width: 512px; }
.contacto-info .section-title { margin-bottom: 24px; }
.contacto-subtitle {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--aasa-text);
  margin: 24px 0 16px;
}
.contacto-list { margin: 0; }
.contacto-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.6;
  white-space: nowrap;
  margin-bottom: 12px;
}
.contacto-list li a, .contacto-list li span { color: var(--aasa-text); }
.contacto-list li a:hover { color: var(--aasa-orange); }

.contacto-form { width: 406px; padding-top: 20px; }
.cf-field + .cf-field { margin-top: 20px; }
.cf-field label {
  display: block;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.02em;
  color: var(--aasa-text);
  margin-bottom: 4px;
}
.cf-field input,
.cf-field select,
.cf-field textarea {
  display: block;
  width: 100%;
  height: 43px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(187, 187, 187, .15);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.2;
  color: var(--aasa-text);
  outline: none;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow .2s;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: #999; }
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus { box-shadow: inset 0 0 0 1px var(--aasa-orange); }
.cf-field textarea { height: 100px; resize: vertical; }
.cf-field select {
  appearance: none;
  -webkit-appearance: none;
  color: #999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%23999' stroke-width='1.5' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.cf-field select.has-value { color: var(--aasa-text); }
.cf-field select option { color: #000; }
.cf-field .is-invalid { box-shadow: inset 0 0 0 1px #d93025; }

.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.cf-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--aasa-text);
}
.cf-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px; height: 16px;
  margin: 0;
  flex: 0 0 auto;
  border-radius: 4px;
  background: rgba(187, 187, 187, .2);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55);
  cursor: pointer;
  display: grid;
  place-content: center;
}
.cf-check input:checked { background: var(--aasa-orange); box-shadow: none; }
.cf-check input:checked::after {
  content: "";
  width: 9px; height: 5px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px, -1px);
}

.cf-submit {
  display: block;
  width: 100%;
  height: 40px;
  border: 1px solid var(--aasa-orange);
  border-radius: 100px;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--aasa-rust);
  transition: background-color .3s, color .3s;
}
.cf-submit:hover { background: var(--aasa-orange); color: #fff; }
.cf-submit:disabled { opacity: .6; cursor: wait; }
.cf-status { margin: 12px 0 0; font-family: var(--font-serif); font-size: 16px; min-height: 0; }
.cf-status:empty { display: none; }
.cf-status.ok { color: #1e7a3a; }
.cf-status.error { color: #d93025; }

@media (max-width: 991.98px) {
  .contacto { padding: 20px 20px 40px; }
  .contacto-inner { flex-direction: column; gap: 0; padding-right: 0; }
  .contacto-info { width: 100%; }
  .contacto-form { width: 100%; padding: 39px 20px 0; }
  .contacto-list li:last-child { margin-bottom: 0; }
}

/* =========================================================
   Página: Trabaja con nosotros (usa los estilos de Contacto)
   ========================================================= */
.trabaja-logo { width: 217px; height: 140px; display: block; margin-bottom: 11px; }
.trabaja .contacto-info .body-serif a { color: inherit; }
.trabaja .contacto-info .body-serif a:hover { color: var(--aasa-orange); }
.trabaja-cv { margin-top: 32px; }
.cf-check a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cf-check a:hover { color: var(--aasa-orange); }

/* =========================================================
   Páginas legales
   ========================================================= */
.legal-hero {
  background: var(--aasa-navy);
  padding: calc(var(--nav-h) + 56px) 20px 56px;
  text-align: center;
}
.legal-hero h1 { color: #fff; font-size: 40px; font-weight: 700; line-height: 1.2; margin: 0; }
.legal { background: #fff; padding: 64px 20px 80px; }
.legal-inner { max-width: 860px; margin: 0 auto; }
.legal-inner p,
.legal-inner li {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--aasa-text);
}
.legal-inner p { margin: 0 0 18px; }
.legal-inner ul { margin: 28px 0 12px; padding-left: 20px; }
.legal-inner ul li {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--aasa-navy-2);
  margin-bottom: 4px;
}
.legal-inner h2, .legal-inner h3, .legal-inner h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--aasa-navy-2);
  margin: 32px 0 14px;
}
.legal-inner h2 { font-size: 26px; }
.legal-inner h3 { font-size: 22px; }
.legal-inner h4 { font-size: 18px; }
.legal-inner a { color: var(--aasa-rust); }

@media (max-width: 991.98px) {
  .legal-hero { padding: calc(var(--nav-h) + 40px) 20px 40px; }
  .legal-hero h1 { font-size: 32px; }
  .legal { padding: 40px 20px 64px; }
  .legal-inner p, .legal-inner li { font-size: 17px; }
}
