/* ==========================================
   SOSTENIBILIDAD PAGE
   Solo estilos propios de esta sección
   ========================================== */

/* ===== Variables ===== */
:root {
  /* Colores de marca */
  --brand: #1189a6;
  --brand-dark: #0e6e86;
  --bip: #1572b1;
  --brand-2: #ff8a00;
  --brand-3: #01678a;
  --brand-4:#e60024;
  --brand-5: #6ebd44;

  /* Colores de interfaz */
  --ink: #1f2a33;
  --muted: #6b7a86;
  --bg: #f5f7f9;
  --card: #ffffff;
}

/* ===== Base ===== */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--ink);
}

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

/* ===== Header ===== */
header{
  position:fixed;
  top:0;
  width:100%;
  z-index:50;
  height:90px;
  display:flex;
  align-items:center;
  transition:.3s;
  background:transparent;
}

header.scrolled{
  background:var(--brand-red);
  height:64px;
  box-shadow:var(--shadow);
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
  max-width:1400px;
  margin:0 auto;
}

.logo-img{ height:24px; }

.menu{
  display:flex;
  gap:32px;
}

.menu a{
  color:#fff;
  font-weight:400;
}

/* ===== Cabecera verde ===== */

.cabecera-color {
  width: 100%;
  height: 280px;
  background: var(--brand-5);
  display: flex;
  align-items: flex-end;
  padding: 90px 5vw 0;
}

.cabecera-titulo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: -0.8rem;
}

.cabecera-color h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -1px;
  margin: 0;
}

.flecha-icono {
  width: clamp(28px, 3.5vw, 48px);
  height: auto;
}

@media (max-width: 768px) {
  .cabecera-color {
    height: 210px;
    padding: 90px 5vw 1.8rem;
  }
  .cabecera-titulo {
    margin-bottom: 0;
  }
  .cabecera-color h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
  }
}


/* ===== Contenido principal ===== */

.noticia {
  padding: 3rem 1rem 4rem;
  background: #fff;
}

.noticia .container {
  max-width: 800px;
  margin: 0 auto;
}

.noticia .titulo {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--brand-dark);
  line-height: 1.2;
}

.noticia .imagen {
  margin: 3rem auto;
  max-width: 1000px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.noticia .contenido p {
  line-height: 1.7;
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.noticia .contenido h3 {
  font-size: 1.4rem;
  color: var(--brand);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}


/* ===== Logo eficiencia energética ===== */

.logo-sustentable {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.logo-sustentable img {
  max-width: 260px;
}


/* ===== Responsive ===== */

@media (max-width: 768px) {

  .cabecera-titulo {
    bottom: -30px;
  }

  .flecha-icono {
    width: 22px;
  }

  .noticia {
    padding-top: 4rem;
  }

  .noticia .imagen {
    border-radius: 16px;
  }
  .noticia .imagen img {
    border-radius: 10px;
  }

}