/* =========================================================
   FUNDAMENTOS INSTITUCIONALES - AJUSTE TEMPORAL 2026
   Complementa estilos-final-ajustado.css
   ========================================================= */

.pagina-fundamentos{
  padding:18px 0 56px;
}

.miga-fundamentos{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:7px 0 20px;
  color:#69766e;
  font-size:.88rem;
}

.miga-fundamentos a{
  color:#0b6b35;
  font-weight:700;
  text-decoration:none;
}

.miga-fundamentos a:hover,
.miga-fundamentos a:focus-visible{
  text-decoration:underline;
}

/* HERO */

.hero-fundamentos-v6{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(180px,.5fr);
  align-items:center;
  gap:34px;
  padding:52px 48px;
  border-radius:26px;
  background:
    radial-gradient(circle at 92% 4%,rgba(255,214,49,.22),transparent 27%),
    linear-gradient(135deg,#064d29 0,#0b6b35 58%,#128247 100%);
  color:#fff;
  box-shadow:0 16px 34px rgba(7,91,48,.16);
}

.hero-fundamentos-v6::after{
  content:"";
  position:absolute;
  width:360px;
  height:360px;
  right:-145px;
  bottom:-245px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:50%;
}

.etiqueta-fundamentos{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  padding:7px 12px;
  margin-bottom:14px;
  border-radius:999px;
  background:rgba(255,255,255,.13);
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.055em;
  text-transform:uppercase;
}

.hero-fundamentos-v6 h1{
  max-width:870px;
  margin:0 0 14px;
  color:#fff;
  font-size:clamp(2.3rem,5vw,4rem);
  line-height:1.04;
}

.hero-fundamentos-v6 h1 span{
  color:#ffd633;
}

.hero-fundamentos-v6 p{
  max-width:830px;
  margin:0;
  color:rgba(255,255,255,.91);
  font-size:1.02rem;
  line-height:1.72;
}

.hero-fundamentos-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:24px;
}

.hero-fundamentos-chips span{
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(255,255,255,.09);
  font-size:.75rem;
  font-weight:700;
}

.hero-fundamentos-sello{
  position:relative;
  z-index:1;
  width:150px;
  height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
  justify-self:center;
  border:1px solid rgba(255,255,255,.19);
  border-radius:34px;
  background:rgba(255,255,255,.11);
}

.hero-fundamentos-sello svg{
  width:77px;
  height:77px;
  fill:none;
  stroke:#fff;
  stroke-width:1.35;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* INDICE */

.indice-fundamentos{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin:22px 0 42px;
}

.indice-fundamentos a{
  padding:9px 14px;
  border:1px solid #d5e4da;
  border-radius:999px;
  background:#fff;
  color:#0b6b35;
  font-size:.82rem;
  font-weight:800;
  text-decoration:none;
}

.indice-fundamentos a:hover,
.indice-fundamentos a:focus-visible{
  border-color:#f0c927;
  background:#fffaf0;
}

/* ENFOQUE */

.fundamento-intro,
.modelo-epc-v6,
.fundamentos-conceptuales-v6,
.marco-legal-v6{
  scroll-margin-top:120px;
}

.fundamento-intro{
  margin-bottom:46px;
}

.fundamento-intro > .encabezado-seccion{
  max-width:840px;
  margin:0 auto 27px;
  text-align:center;
}

.fundamento-intro-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:28px;
  align-items:start;
}

.fundamento-intro-texto{
  padding:30px;
  border:1px solid #dce7df;
  border-radius:20px;
  background:#fff;
  box-shadow:0 8px 24px rgba(20,75,45,.06);
}

.fundamento-intro-texto p{
  margin:0 0 17px;
  color:#647169;
  line-height:1.72;
}

.fundamento-intro-texto p:last-child{
  margin-bottom:0;
}

.principios-enfoque{
  display:grid;
  gap:12px;
}

.principios-enfoque article{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:15px;
  align-items:start;
  padding:18px;
  border:1px solid #dce7df;
  border-radius:16px;
  background:#f7fbf8;
}

.principios-enfoque article > span{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:#0b6b35;
  color:#fff;
  font-family:"Roboto Condensed",sans-serif;
  font-weight:800;
}

.principios-enfoque h3{
  margin:0 0 3px;
  color:#075b30;
  font-size:1rem;
}

.principios-enfoque p{
  margin:0;
  color:#69766e;
  font-size:.87rem;
  line-height:1.5;
}

/* MODELO EPC */

.modelo-epc-v6{
  position:relative;
  overflow:hidden;
  margin:46px 0;
  padding:44px 36px;
  border:1px solid #dce7df;
  border-radius:24px;
  background:
    radial-gradient(circle at 95% 0,rgba(245,197,21,.13),transparent 22%),
    linear-gradient(180deg,#f3f9f5,#fff);
}

.modelo-epc-titulo{
  max-width:860px;
  margin:0 auto 28px;
  text-align:center;
}

.modelo-epc-titulo h2{
  margin:5px 0 10px;
  color:#075b30;
  font-size:clamp(2rem,4vw,2.8rem);
}

.modelo-epc-titulo h2 span{
  color:#9a7200;
}

.modelo-epc-titulo p{
  margin:0;
  color:#647169;
  line-height:1.66;
}

.modelo-epc-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.modelo-epc-card{
  position:relative;
  min-height:255px;
  padding:25px 21px;
  overflow:hidden;
  border:1px solid #dce7df;
  border-radius:18px;
  background:#fff;
}

.modelo-epc-card.principal{
  border-top:4px solid #f5c515;
}

.modelo-numero{
  margin-bottom:18px;
  color:#d8e6dc;
  font-family:"Roboto Condensed",sans-serif;
  font-size:2.6rem;
  font-weight:800;
  line-height:1;
}

.modelo-epc-card h3{
  margin:0 0 9px;
  color:#075b30;
  font-size:1.14rem;
}

.modelo-epc-card p{
  margin:0;
  color:#69766e;
  font-size:.88rem;
  line-height:1.58;
}

.epc-frase{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:18px;
  align-items:center;
  max-width:900px;
  margin:28px auto 0;
  padding:21px 24px;
  border-left:5px solid #f5c515;
  border-radius:14px;
  background:#fff9df;
}

.epc-comillas{
  color:#0b6b35;
  font-family:Georgia,serif;
  font-size:4rem;
  line-height:.7;
}

.epc-frase strong{
  display:block;
  color:#075b30;
  line-height:1.5;
}

.epc-frase span{
  display:block;
  margin-top:4px;
  color:#787d78;
  font-size:.82rem;
}

/* FUNDAMENTOS */

.fundamentos-conceptuales-v6{
  margin:48px 0;
}

.fundamentos-conceptuales-v6 > .encabezado-seccion{
  max-width:880px;
  margin:0 auto 28px;
  text-align:center;
}

.fundamentos-grid-v6{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.fundamento-card-v6{
  min-height:315px;
  padding:26px 23px;
  border:1px solid #dce7df;
  border-radius:19px;
  background:#fff;
  box-shadow:0 8px 23px rgba(20,75,45,.06);
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}

.fundamento-card-v6:hover{
  transform:translateY(-4px);
  border-color:#e5c126;
  box-shadow:0 13px 28px rgba(20,75,45,.10);
}

.fundamento-card-v6.destacado{
  border-top:4px solid #f5c515;
}

.fundamento-icono-v6{
  width:54px;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:17px;
  border-radius:15px;
  background:#edf7f0;
  color:#0b6b35;
}

.fundamento-icono-v6 svg{
  width:28px;
  height:28px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.fundamento-tipo{
  display:block;
  margin-bottom:4px;
  color:#997200;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.fundamento-card-v6 h3{
  margin:0 0 10px;
  color:#075b30;
  font-size:1.2rem;
}

.fundamento-card-v6 p{
  margin:0;
  color:#68756d;
  font-size:.89rem;
  line-height:1.62;
}

/* MARCO LEGAL */

.marco-legal-v6{
  margin:48px 0;
  padding:42px 34px;
  border-radius:24px;
  background:#f5f9f6;
  border:1px solid #dce7df;
}

.marco-legal-intro{
  max-width:840px;
  margin:0 auto 28px;
  text-align:center;
}

.marco-legal-intro h2{
  margin:5px 0 8px;
  color:#075b30;
  font-size:clamp(1.9rem,4vw,2.6rem);
}

.marco-legal-intro p{
  margin:0;
  color:#68756d;
}

.marco-legal-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.marco-legal-grid article{
  padding:22px 20px;
  border:1px solid #dce7df;
  border-radius:16px;
  background:#fff;
}

.anio-legal{
  display:inline-flex;
  padding:5px 8px;
  margin-bottom:10px;
  border-radius:7px;
  background:#fff3bc;
  color:#7d5e00;
  font-family:"Roboto Condensed",sans-serif;
  font-size:.74rem;
  font-weight:800;
}

.marco-legal-grid h3{
  margin:0 0 7px;
  color:#075b30;
  font-size:1rem;
}

.marco-legal-grid p{
  margin:0;
  color:#69766e;
  font-size:.84rem;
  line-height:1.54;
}

/* CIERRE */

.cierre-fundamentos-v6{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:28px;
  margin-top:46px;
  padding:34px 36px;
  border:1px solid #f0df8e;
  border-radius:21px;
  background:#fff9df;
}

.cierre-fundamentos-v6 > div:first-child{
  max-width:760px;
}

.cierre-fundamentos-v6 h2{
  margin:5px 0 8px;
  color:#075b30;
}

.cierre-fundamentos-v6 p{
  margin:0;
  color:#68756d;
  line-height:1.62;
}

.cierre-fundamentos-acciones{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  flex:0 0 auto;
}

.boton-fundamentos{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 18px;
  border-radius:999px;
  background:#0b6b35;
  color:#fff;
  font-size:.86rem;
  font-weight:800;
  text-decoration:none;
}

.boton-fundamentos:hover,
.boton-fundamentos:focus-visible{
  background:#075b30;
}

.enlace-fundamentos{
  color:#0b6b35;
  font-size:.83rem;
  font-weight:800;
  text-decoration:none;
}

.enlace-fundamentos:hover,
.enlace-fundamentos:focus-visible{
  text-decoration:underline;
}

/* RESPONSIVE */

@media (max-width:1050px){
  .modelo-epc-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .fundamentos-grid-v6{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .marco-legal-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:820px){
  .hero-fundamentos-v6{
    grid-template-columns:1fr;
    padding:42px 28px;
  }

  .hero-fundamentos-sello{
    display:none;
  }

  .fundamento-intro-grid{
    grid-template-columns:1fr;
  }

  .cierre-fundamentos-v6{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width:580px){
  .modelo-epc-v6,
  .marco-legal-v6{
    padding:32px 19px;
  }

  .modelo-epc-grid,
  .fundamentos-grid-v6,
  .marco-legal-grid{
    grid-template-columns:1fr;
  }

  .modelo-epc-card,
  .fundamento-card-v6{
    min-height:auto;
  }

  .epc-frase{
    grid-template-columns:1fr;
  }

  .epc-comillas{
    display:none;
  }

  .cierre-fundamentos-v6{
    padding:28px 22px;
  }
}
