/* Grupo SIRE — sitio temporal
   Colores y tipografía según el Manual de Marca (Borrador v2). */

@font-face { font-family: "Gotham Black";  src: url("../assets/fonts/Gotham-Black.woff") format("woff");  font-display: swap; }
@font-face { font-family: "Gotham Bold";   src: url("../assets/fonts/Gotham-Bold.woff") format("woff");   font-display: swap; }
@font-face { font-family: "Gotham Medium"; src: url("../assets/fonts/Gotham-Medium.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Gotham Light";  src: url("../assets/fonts/Gotham-Light.woff") format("woff");  font-display: swap; }
@font-face { font-family: "Brisa";         src: url("../assets/fonts/Brisa.woff") format("woff");         font-display: swap; }

:root {
  --azul: #376794;
  --verde: #5FC3AC;
  --marino: #17324A;
  --bruma: #EEF4F7;
  --menta: #E8F7F3;
  --negro: #231F20;
  --texto: #2F3E4B;
  --texto-suave: #4A5B6A;
  --linea: #DCE5EB;

  --f-display: "Gotham Black", "Arial Black", Arial, sans-serif;
  --f-head: "Gotham Bold", Arial, sans-serif;
  --f-med: "Gotham Medium", Arial, sans-serif;
  --f-body: "Gotham Light", Arial, sans-serif;
  --f-script: "Brisa", "Brush Script MT", cursive;

  --ancho: 1200px;
  --radio: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texto);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--azul); }
a:hover { color: var(--marino); }
h1, h2, h3 { margin: 0; color: var(--marino); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--marino); color: #fff; padding: 10px 16px; z-index: 100; border-radius: var(--radio); }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-med); font-size: 15px; line-height: 1.2; text-decoration: none;
  padding: 15px 28px; border-radius: 3px; border: 2px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--azul); color: #fff; }
.btn--primary:hover { background: var(--marino); color: #fff; }
.btn--ghost { background: transparent; color: var(--azul); border-color: var(--azul); }
.btn--ghost:hover { background: var(--azul); color: #fff; }
.btn--light { background: #fff; color: var(--marino); }
.btn--light:hover { background: var(--bruma); color: var(--marino); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Aviso superior ---------- */
.aviso { background: var(--marino); color: #D5E0E8; font-family: var(--f-med); font-size: 13.5px; }
.aviso .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-top: 9px; padding-bottom: 9px; }
.aviso a { color: #fff; text-decoration: none; }
.aviso a:hover { text-decoration: underline; color: #fff; }
.aviso__datos { display: flex; flex-wrap: wrap; gap: 4px 22px; }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--linea); backdrop-filter: saturate(1.4) blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: block; flex-shrink: 0; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-family: var(--f-med); font-size: 15px; color: var(--negro); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--azul); border-bottom-color: var(--azul); }
.nav .btn { padding: 12px 22px; font-size: 14.5px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1.5px solid var(--linea); background: #fff; border-radius: var(--radio); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--marino); position: relative; content: ""; transition: transform .2s ease, top .2s ease, opacity .2s ease; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; background: var(--marino); }
.hero__bg {
  position: absolute; inset: 0;
  background: var(--marino) url("../assets/img/hero-ancho.png") right center / cover no-repeat;
}
.hero__inner { position: relative; padding-top: 104px; padding-bottom: 112px; }
.hero__text { max-width: 600px; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-family: var(--f-head); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-suave); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--verde); }
.hero h1 { color: #fff; font-family: var(--f-display); font-size: clamp(36px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -.01em; }
.hero__lema { font-family: var(--f-script); font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; color: var(--verde); }
.hero p.lead { font-size: 18px; color: #D5E0E8; max-width: 520px; }
.hero .eyebrow { color: #B9C9D6; }
.btn--verde { background: var(--verde); color: var(--marino); }
.btn--verde:hover { background: #fff; color: var(--marino); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section--bruma { background: var(--bruma); }
.section__head { max-width: 640px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 52px; }
.section__head h2, .h2 { font-family: var(--f-display); font-size: clamp(28px, 3.2vw, 38px); line-height: 1.14; letter-spacing: -.005em; }
.section__head p { color: var(--texto-suave); }

/* Actividades */
.actividades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; transition: box-shadow .18s ease, transform .18s ease; }
.card:hover { box-shadow: 0 14px 34px rgba(23,50,74,.10); transform: translateY(-2px); }
.card__bar { height: 7px; background: var(--azul); }
.card__bar--verde { background: var(--verde); }
.card__bar--mixta { background: linear-gradient(90deg, var(--azul) 50%, var(--verde) 50%); }
.card__body { padding: 34px 32px 32px; display: flex; flex-direction: column; gap: 18px; flex-grow: 1; }
.card h3 { font-family: var(--f-head); font-size: 24px; line-height: 1.2; }
.card__logo { height: 52px; width: auto; align-self: flex-start; }
.card p { color: var(--texto); }
.card__meta { margin-top: auto; min-height: 92px; padding-top: 18px; border-top: 1px solid var(--linea); display: flex; flex-direction: column; gap: 4px; }
.card__meta small { font-family: var(--f-head); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-suave); }
.card__meta span { font-family: var(--f-med); font-size: 15px; color: var(--negro); }
.card__link { font-family: var(--f-head); font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.card__link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.card__link:hover svg { transform: translateX(3px); }
.card__link:hover { text-decoration: underline; }

/* Respaldo */
.respaldo { background: var(--marino); color: #fff; padding: 72px 0; }
.respaldo__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.respaldo__item { padding-left: 24px; border-left: 3px solid var(--verde); display: flex; flex-direction: column; gap: 8px; }
.respaldo__item strong { font-family: var(--f-display); font-size: clamp(28px, 3vw, 38px); line-height: 1.1; font-weight: normal; }
.respaldo__item span { color: #C3D1DC; font-size: 16px; }

/* Promesa y ciclo de vida */
.promesa { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.promesa__lema { font-family: var(--f-script); font-size: clamp(30px, 3vw, 38px); line-height: 1.1; color: var(--azul); margin-top: 18px; }
.ciclo { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.ciclo li { counter-increment: paso; display: grid; grid-template-columns: 56px 1fr; align-items: baseline; padding: 20px 0; border-top: 1px solid #CBD9E2; }
.ciclo li:last-child { border-bottom: 1px solid #CBD9E2; }
.ciclo li::before { content: "0" counter(paso); font-family: var(--f-display); font-size: 15px; color: var(--azul); }
.ciclo b { font-family: var(--f-head); font-weight: normal; font-size: 21px; color: var(--marino); }
.ciclo p { grid-column: 2; color: var(--texto-suave); font-size: 15.5px; margin-top: 2px; }

/* Llamado final */
.cta-final { background: #fff; border-top: 1px solid var(--linea); padding: 88px 0; }
.cta-final .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-final h2 { font-family: var(--f-display); font-size: clamp(26px, 3vw, 36px); line-height: 1.15; max-width: 560px; }
.cta-final p { margin-top: 12px; color: var(--texto-suave); max-width: 520px; }
.cta-final__btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Contacto ---------- */
.page-head { background: var(--marino) url("../assets/img/contacto-ancho.png") right center / cover no-repeat; padding: 80px 0 72px; position: relative; overflow: hidden; }
.page-head .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.page-head .eyebrow { color: #B9C9D6; }
.page-head h1 { color: #fff; font-family: var(--f-display); font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.page-head p { max-width: 560px; color: #D5E0E8; font-size: 18px; }

.contacto { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; padding-top: 80px; padding-bottom: 96px; align-items: start; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--f-head); font-size: 14px; color: var(--marino); }
.field label i { font-style: normal; color: var(--texto-suave); font-family: var(--f-body); }
.field input, .field select, .field textarea {
  font: inherit; font-family: var(--f-med); font-size: 16px; color: var(--negro);
  padding: 14px 16px; border: 1.5px solid #B7C6D2; border-radius: 4px; background: #fff; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; font-family: var(--f-med); line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(55,103,148,.28); border-color: var(--azul); }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.form__nota { font-size: 14px; color: var(--texto-suave); flex: 1 1 260px; }

.datos { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; }
.datos__bar { height: 7px; background: linear-gradient(90deg, var(--azul) 50%, var(--verde) 50%); }
.dato { padding: 22px 28px; border-top: 1px solid var(--linea); display: flex; flex-direction: column; gap: 4px; }
.datos__bar + .dato { border-top: 0; }
.dato small { font-family: var(--f-head); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-suave); }
.dato a, .dato span { font-family: var(--f-med); font-size: 17px; color: var(--negro); text-decoration: none; overflow-wrap: anywhere; }
.dato a:hover { color: var(--azul); text-decoration: underline; }
.dato .mapa { font-family: var(--f-head); font-size: 14.5px; color: var(--azul); margin-top: 6px; }
[hidden] { display: none !important; }

/* ---------- Pie ---------- */
.site-footer { background: #0F2536; color: #B9C7D3; padding: 72px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 56px; padding-bottom: 56px; }
.footer__brand img { height: 44px; width: auto; margin-bottom: 20px; }
.footer__brand .lema { font-family: var(--f-script); font-size: 30px; line-height: 1.1; color: var(--verde); }
.footer__brand p { margin-top: 14px; font-size: 15px; max-width: 320px; }
.site-footer h4 { margin: 0 0 16px; font-family: var(--f-head); font-weight: normal; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8CA0B1; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-family: var(--f-med); font-size: 15px; }
.site-footer a { color: #D5E0E8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: 13.5px; color: #8CA0B1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- Adaptación ---------- */
@media (max-width: 1040px) {
  .hero__bg { background-image: url("../assets/img/hero-movil.png"); background-position: right bottom; }
  .hero__inner { padding-top: 64px; padding-bottom: 300px; }
  .promesa { grid-template-columns: 1fr; gap: 40px; }
  .contacto { grid-template-columns: 1fr; gap: 48px; }
  .page-head { background-position: 70% center; }
}
@media (max-width: 900px) {
  .actividades { grid-template-columns: 1fr; }
  .respaldo__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--linea); padding: 8px 24px 24px; display: none; box-shadow: 0 18px 30px rgba(23,50,74,.10); }
  .nav-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--linea); }
  .nav .btn { margin-top: 18px; }
  .site-header .wrap { position: relative; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .section { padding: 68px 0; }
  .hero__cta .btn, .cta-final__btns .btn { width: 100%; }
  .form { grid-template-columns: 1fr; }
  .form__actions .btn { width: 100%; }
  .logo img { height: 34px; }
  .aviso .wrap { padding-top: 8px; padding-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
