/* ==========================================================================
   EMAPRO — base.css
   Estilos compartidos por todas las páginas:
   variables, reset, tipografía, header, footer, botones y utilidades.
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  --verde-oscuro: rgba(9,37,49,00.85);
  --verde: #092531;
  --verde-medio: #2d8a63;
  --verde-claro: #32A67D;
  --lima: #b7e4c7;
  --crema: #f6f9f7;
  --blanco: #ffffff;
  --gris-texto: #4a5a54;
  --gris-borde: #e2eae6;
  --oscuro: #092531;
  --mostaza: #D6A54D;

  --fuente-titulos: 'Poppins', 'Segoe UI', sans-serif;
  --fuente-cuerpo: 'Inter', 'Segoe UI', sans-serif;

  --contenedor: 75%;
  --radio: 14px;
  --sombra: 0 12px 32px rgba(12, 34, 27, 0.10);
  --transicion: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fuente-cuerpo);
  color: var(--gris-texto);
  background: var(--blanco);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--fuente-titulos);
  color: var(--verde-oscuro);
  line-height: 1.2;
  font-weight: 700;
}

/* ---------- Utilidades ---------- */
.contenedor {
  width: min(var(--contenedor), 92%);
  margin-inline: auto;
}

.seccion {
  padding: 90px 0;
}

.etiqueta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--verde-claro);
  margin-bottom: 14px;
}

.titulo-seccion {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 18px;
  color: #333333;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transicion);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primario {
  background: var(--verde-claro);
  color: var(--blanco);
}

.btn-primario:hover {
  transform: translateY(-2px);
}

.btn-secundario {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-secundario:hover {
  border-color: var(--blanco);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-verde {
  color: var(--verde-claro);
  padding: 0px;
}

.btn-verde:hover {
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.header {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.header__logo img {
  height: 44px;
  width: auto;
}

.nav__lista {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__enlace {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
  transition: var(--transicion);
}

.nav__enlace::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--verde-claro);
  transition: width var(--transicion);
}

.nav__enlace:hover,
.nav__enlace--activo {
  color: var(--blanco);
}

.nav__enlace:hover::after,
.nav__enlace--activo::after {
  width: 100%;
}

/* Menú móvil */
.header__hamburguesa {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.header__hamburguesa span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--blanco);
  transition: var(--transicion);
}

/* ---------- Encabezado interno de página ---------- */
.hero-pagina {
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-oscuro) 100%);
  color: var(--blanco);
  text-align: left;
  padding: 120px 0 80px;
}

.hero-pagina .etiqueta {
  color: var(--mostaza);
}

.hero-pagina h1 {
  color: var(--blanco);
  font-size: 60px;
  margin-bottom: 18px;
}

.hero-pagina p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

/* ---------- CTA final compartido ---------- */
.cta-final {
  background: linear-gradient(163deg, #0b2a3d 27%, rgba(6, 79, 69, 1) 62%, #008660 100%);
  color: var(--blanco);
  text-align: center;
}

.cta-final .etiqueta {
  color: var(--mostaza);
}

.cta-final h2 {
  color: var(--blanco);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  max-width: 760px;
  margin: 0 auto 18px;
}

.cta-final p {
  max-width: 640px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.85);
}

.cta-final__botones {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--oscuro);
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 0;
  font-size: 0.95rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 50px;
}

.footer__logo img {
  height: 46px;
  width: auto;
  margin-bottom: 20px;
}

.footer__descripcion {
  margin-bottom: 22px;
  line-height: 1.7;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  transition: var(--transicion);
}

.footer__social a:hover {
  background: var(--verde-claro);
  border-color: var(--verde-claro);
  color: var(--verde-oscuro);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer h4 {
  color: var(--blanco);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer__lista li {
  margin-bottom: 12px;
}

.footer__lista a {
  transition: var(--transicion);
}

.footer__lista a:hover {
  color: var(--verde-claro);
}

.footer__contacto p {
  margin-bottom: 14px;
  line-height: 1.7;
}

.footer__contacto a {
  color: var(--verde-claro);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .seccion {
    padding: 64px 0;
  }

  .header__hamburguesa {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--oscuro);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav--abierto {
    max-height: 420px;
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.25);
  }

  .nav__lista {
    flex-direction: column;
    gap: 0;
    padding: 12px 0 24px;
  }

  .nav__lista li {
    width: 100%;
    text-align: center;
  }

  .nav__enlace {
    display: block;
    padding: 14px 0;
  }

  .hero-pagina h1 {
  color: var(--blanco);
  font-size: 30px;
  margin-bottom: 18px;
}
}

@media (max-width: 540px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
