/* =========================
   VARIABLES
========================= */

:root{
--color-azul:#0D7CC1;
--color-amarillo:#F4B400;
--color-base:#ffffff;
--color-soft:#f3f5f8;
--color-text:#1f1f1f;
--color-text-soft:#555555;
--color-borde:#e7e7e7;

--max-width:1100px;
--radius:18px;
}

/* =========================
   RESET
========================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{
font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
color:var(--color-text);
line-height:1.6;
background:var(--color-base);
}

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

a{
color:inherit;
}

/* =========================
   CONTAINER
========================= */

.container{
max-width:var(--max-width);
margin:0 auto;
padding:0 1rem;
}

/* =========================
   HEADER
========================= */

.header{
background:var(--color-azul);
}

.nav{
display:flex;
justify-content:space-between;
align-items:center;
gap:.8rem;
padding:1rem 0;
flex-wrap:nowrap;
}

.logo img{
width:160px;
max-width:100%;
}

.menu{
display:flex;
gap:.6rem;
list-style:none;
flex-wrap:nowrap;
justify-content:flex-end;
white-space:nowrap;
margin:0;
padding:0;
}

.menu a{
color:#ffffff;
text-decoration:none;
font-size:.9rem;
font-weight:600;
padding:.3rem .2rem;
}

.menu a:hover,
.menu a:focus{
text-decoration:underline;
text-underline-offset:3px;
}

.menu__destacado{
color:var(--color-amarillo);
font-weight:700;
}
/* =========================
   SECCIONES
========================= */

.section{
padding:clamp(2.2rem,5vw,4.5rem) 0;
}

.section__inner{
max-width:var(--max-width);
margin:0 auto;
padding:0 1rem;
}

.section--base{
background:var(--color-base);
}

.section--soft{
background:var(--color-soft);
}

/* =========================
   HERO
========================= */

.hero__grid{
display:grid;
grid-template-columns:1fr;
gap:2rem;
align-items:center;
}

.hero__content p{
max-width:62ch;
}

.media--hero{
margin-top:0;
}

/* =========================
   TIPOGRAFÍA
========================= */

h1{
font-size:clamp(2rem,5vw,3.2rem);
line-height:1.08;
margin-bottom:1rem;
text-wrap:balance;
}

h2{
font-size:clamp(1.5rem,3vw,2.1rem);
line-height:1.18;
margin-bottom:1rem;
text-wrap:balance;
}

h3{
font-size:clamp(1.2rem,2.2vw,1.55rem);
line-height:1.25;
margin-bottom:.75rem;
text-wrap:balance;
}

p{
margin-bottom:1rem;
font-size:1rem;
}

.section p:last-child,
.card p:last-child,
.cta-bloque p:last-child{
margin-bottom:0;
}

/* =========================
   GRID
========================= */

.grid-2{
display:grid;
grid-template-columns:1fr;
gap:1.5rem;
}

.grid-cards{
margin-top:1.5rem;
}

/* =========================
   CARDS
========================= */

.card{
display:block;
background:#ffffff;
border:1px solid var(--color-borde);
border-top:6px solid var(--color-azul);
border-radius:var(--radius);
padding:1.5rem 1.4rem;
text-decoration:none;
color:inherit;
box-shadow:0 8px 20px rgba(0,0,0,.04);
transition:transform .2s ease, box-shadow .2s ease, border-top-color .2s ease;
}

.card:hover,
.card:focus{
transform:translateY(-4px);
box-shadow:0 14px 28px rgba(0,0,0,.08);
border-top-color:var(--color-amarillo);
}

.card__icon{
display:inline-flex;
align-items:center;
justify-content:center;
width:2.6rem;
height:2.6rem;
border-radius:999px;
background:rgba(13,124,193,.10);
font-size:1.25rem;
margin-bottom:1rem;
}

.card h3{
max-width:22ch;
}

.card p{
color:var(--color-text-soft);
}

/* =========================
   CTA
========================= */

.cta-bloque{
text-align:center;
}

.cta-bloque__inner{
max-width:760px;
margin:0 auto;
padding:0 1rem;
}

.boton-cta{
display:inline-block;
margin-top:1.2rem;
padding:.95rem 1.8rem;
background:var(--color-amarillo);
color:var(--color-text);
text-decoration:none;
font-weight:700;
border-radius:999px;
border:2px solid var(--color-amarillo);
box-shadow:0 8px 18px rgba(0,0,0,.06);
transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.boton-cta:hover,
.boton-cta:focus{
transform:translateY(-2px);
box-shadow:0 12px 22px rgba(0,0,0,.10);
background:#ffc423;
}

/* =========================
   MEDIA / FIGURE
========================= */

.media{
margin-top:1.5rem;
}

.media img{
width:100%;
border-radius:var(--radius);
}

.media figcaption{
margin-top:.75rem;
font-size:.95rem;
color:var(--color-text-soft);
text-align:center;
}

/* =========================
   FOOTER
========================= */

.footer{
background:var(--color-azul);
color:#ffffff;
padding:1.6rem 0;
}

.footer__inner{
display:flex;
flex-direction:column;
gap:1rem;
align-items:center;
justify-content:center;
text-align:center;
}

.footer__menu{
list-style:none;
display:flex;
flex-wrap:wrap;
gap:1rem;
justify-content:center;
}

.footer__menu a{
color:#ffffff;
text-decoration:none;
font-weight:600;
}

.footer__menu a:hover,
.footer__menu a:focus{
text-decoration:underline;
text-underline-offset:4px;
}
/* =========================
   RESPONSIVE
========================= */

@media (min-width:768px){

.hero__grid{
grid-template-columns:1.05fr .95fr;
}

.grid-2{
grid-template-columns:1fr 1fr;
}

.card{
padding:1.7rem 1.6rem;
}

}

@media (max-width:767px){

.nav{
flex-direction:row;
align-items:center;
justify-content:space-between;
gap:.6rem;
flex-wrap:nowrap;
}

.menu{
width:auto;
justify-content:flex-end;
gap:.6rem;
flex-wrap:nowrap;
white-space:nowrap;
overflow-x:auto;
scrollbar-width:none;
}

.menu::-webkit-scrollbar{
display:none;
}

.logo img{
width:140px;
}

.menu a{
font-size:.9rem;
padding:.3rem .15rem;
}

}

/* =========================



/* =========================
   seccion operativo
========================= */
.bloque-operativo{
background:var(--color-amarillo);
padding:clamp(2.2rem,5vw,3.5rem) 1rem;
}

.bloque-operativo__inner{
max-width:760px;
margin:0 auto;
}

.bloque-operativo h2{
font-size:clamp(1.5rem,3vw,2rem);
margin-bottom:0.8rem;
color:#1f1f1f;
font-weight:600;
}

.bloque-operativo p{
font-size:1rem;
line-height:1.6;
color:#2a2a2a;
}

/* =========================
   BLOQUE DIAGRAMA OPERATIVO
========================= */

.bloque-diagrama-operativo{
padding:clamp(2.5rem,5vw,4rem) 1rem;
text-align:center;
}

.bloque-diagrama-operativo h2{
font-size:clamp(1.6rem,3vw,2.2rem);
margin-bottom:2rem;
max-width:700px;
margin-left:auto;
margin-right:auto;
}

/* CONTENEDOR */

.diagrama-operativo{
max-width:420px;
margin:0 auto 2rem;
}

/* SVG base */

.diagrama-operativo svg{
width:100%;
height:auto;
}

/* NODOS */

.nodo{
fill:#ffffff;
stroke:var(--color-azul);
stroke-width:2;
}

.nodo-entrada{
fill:#f5faff;
}

.nodo-salida{
fill:#f5faff;
}

/* LINEAS */

.linea{
stroke:var(--color-azul);
stroke-width:2;
}

/* NUCLEO */

.nucleo{
fill:#fff8e1;
stroke:var(--color-amarillo);
stroke-width:2;
}

/* TEXTOS */

.texto-nodo{
font-size:12px;
font-weight:600;
fill:#1f1f1f;
}

.texto-nodo-sec{
font-size:10px;
fill:#555;
}

.texto-nucleo-titulo{
font-size:13px;
font-weight:700;
fill:#1f1f1f;
}

.texto-nucleo{
font-size:11px;
fill:#333;
}

/* TEXTO DEBAJO */

.diagrama-explicacion{
max-width:720px;
margin:0 auto;
font-size:1rem;
line-height:1.7;
color:#2a2a2a;
}


/* =========================
   BLOQUE MAPA OPERATIVO
========================= */

.bloque-mapa-operativo{
padding:clamp(2.5rem,5vw,4rem) 1rem;
text-align:center;
}

.bloque-mapa-operativo h2{
font-size:clamp(1.6rem,3vw,2.2rem);
margin-bottom:1.5rem;
max-width:700px;
margin-left:auto;
margin-right:auto;
}

/* TEXTOS */

.mapa-intro,
.mapa-cierre{
max-width:720px;
margin:0 auto 1.5rem;
font-size:1rem;
line-height:1.7;
color:#2a2a2a;
}

/* SVG WRAP */

.mapa-operativo-wrap{
max-width:420px;
margin:2rem auto;
}

/* SVG */

.mapa-operativo-wrap svg{
width:100%;
height:auto;
}

/* CENTRO */

.mapa-centro{
fill:#f5faff;
stroke:var(--color-azul);
stroke-width:2;
}

.mapa-centro-t{
font-size:12px;
font-weight:600;
fill:#1f1f1f;
}

/* LINEAS */

.mapa-linea{
stroke:var(--color-azul);
stroke-width:1.5;
}

/* NODOS */

.mapa-nodo-titulo{
font-size:11px;
font-weight:600;
fill:#1f1f1f;
}

.mapa-nodo{
font-size:10px;
fill:#555;
}

/* =========================
   BLOQUE PRINCIPIOS OPERATIVOS
========================= */

.bloque-principios-operativos{
background:#f4f6f8;
padding:clamp(2.5rem,5vw,4rem) 1rem;
}

/* TÍTULO */

.bloque-principios-operativos h2{
text-align:center;
font-size:clamp(1.6rem,3vw,2.2rem);
margin-bottom:1.2rem;
max-width:700px;
margin-left:auto;
margin-right:auto;
}

/* TEXTOS */

.principios-intro,
.principios-cierre{
max-width:720px;
margin:0 auto 1.8rem;
font-size:1rem;
line-height:1.7;
color:#2a2a2a;
text-align:center;
}

/* LISTA */

.lista-principios{
max-width:900px;
margin:2rem auto;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
gap:1.5rem;
}

/* ITEM */

.principio{
padding:1.2rem;
border-radius:16px;
background:#ffffff;
border:1px solid rgba(0,0,0,0.06);
}

/* TÍTULO PRINCIPIO */

.principio dt{
font-size:1.05rem;
font-weight:600;
margin-bottom:0.5rem;
color:#1f1f1f;
}

/* DESCRIPCIÓN */

.principio dd{
margin:0;
font-size:0.95rem;
line-height:1.6;
color:#444;
}


.flujo-operativo{
display:flex;
flex-wrap:wrap;
gap:.6rem;
justify-content:center;
align-items:center;
margin:1.2rem 0 1.4rem;
font-weight:600;
font-size:1.05rem;
}

.flujo-operativo span{
background:#f3f5f7;
padding:.4rem .7rem;
border-radius:999px;
}

.flujo-operativo .arrow{
background:none;
padding:0;
font-weight:400;
opacity:.6;
}

.bloque-operativo__inner,
.bloque-diagrama-operativo,
.bloque-mapa-operativo,
.bloque-principios-operativos{
max-width:var(--max-width);
margin-left:auto;
margin-right:auto;
}

.card{
background:#ffffff;
border:1px solid var(--color-borde);
border-top:6px solid var(--color-azul);
border-radius:var(--radius);
padding:1.5rem 1.4rem;
box-shadow:0 10px 24px rgba(13,124,193,.06);
}


.menu__destacado{
color:var(--color-amarillo);
font-weight:700;
}

/* =========================
   SUBMENU (CLUSTER)
========================= */

.header-subnav{
background:#2a86b8; /* 👈 ligeramente distinto del header principal */
border-top:1px solid rgba(255,255,255,.15);
}

/* contenedor */

.submenu{
display:flex;
gap:1rem;
list-style:none;
margin:0;
padding:.6rem 0; /* 👈 más aire */
flex-wrap:nowrap;
white-space:nowrap;
overflow-x:auto;
scrollbar-width:none;
scroll-behavior:smooth; /* 👈 scroll elegante */
}

.submenu::-webkit-scrollbar{
display:none;
}

/* links */

.submenu a{
color:rgba(255,255,255,.85);
text-decoration:none;
font-size:.9rem;
font-weight:500;
padding:.35rem .25rem;
transition:opacity .2s ease, color .2s ease;
}

.submenu a:hover{
opacity:1;
color:#ffffff;
text-decoration:underline;
text-underline-offset:3px;
}

/* estado activo */

.submenu__activo{
color:#ffffff;
font-weight:700;
border-bottom:2px solid var(--color-amarillo);
padding-bottom:.2rem; /* 👈 mejor alineación visual */
}


/* =========================
   CTA LINEA (WHATSAPP)
========================= */

.cta-linea{
background:#25D366; /* 👈 más claro que footer */
padding:1rem 0;
}

.cta-linea__inner{
display:flex;
justify-content:space-between;
align-items:center;
gap:1rem;
flex-wrap:wrap;
}

.cta-linea__texto{
margin:0;
color:#ffffff;
font-size:.95rem;
font-weight:500;
}

.cta-linea__boton{
display:inline-block;
background:#ffffff;
color:#128C7E; 
text-decoration:none;
font-weight:700;
font-size:.9rem;
padding:.5rem 1rem;
border-radius:999px;
transition:transform .2s ease, box-shadow .2s ease;
}

.cta-linea__boton:hover{
transform:translateY(-2px);
box-shadow:0 6px 14px rgba(0,0,0,.1);
}
.cta-linea{
background:linear-gradient(90deg,#25D366,#1ebe5d);
}

/* móvil */

@media (max-width:767px){

.cta-linea__inner{
flex-direction:column;
align-items:flex-start;
}

.cta-linea__boton{
width:auto;
}

}

/* =========================
   BLOQUE RELACIONADO
========================= */

.bloque-relacionado{
margin:2rem 0;
padding:1.5rem 1.2rem;
background:#f3f5f8;
border-radius:var(--radius);
}

.bloque-relacionado h3{
margin-bottom:.6rem;
}

.bloque-relacionado__intro{
font-size:.95rem;
color:var(--color-text-soft);
margin-bottom:1rem;
}

.bloque-relacionado__lista{
list-style:none;
padding:0;
margin:0;
display:flex;
flex-direction:column;
gap:.6rem;
}

.bloque-relacionado__lista a{
display:block;
text-decoration:none;
background:#ffffff;
padding:.6rem .8rem;
border-radius:12px;
border:1px solid var(--color-borde);
font-weight:600;
color:var(--color-text);
transition:transform .15s ease, box-shadow .15s ease;
}

.bloque-relacionado__lista a:hover{
transform:translateY(-2px);
box-shadow:0 6px 14px rgba(0,0,0,.08);
}