/* =============================================================================
   BLOCKS.CSS — Bloques compartidos: CTA final + Footer institucional
   Fuente única para index.html, henkel.html y actega.html.
   Los tokens viven en tokens.css, que debe cargarse antes que esta hoja.
   Debe cargarse DESPUÉS de la hoja propia de cada página.
   ========================================================================== */

/* ==========================================================
   CTA FINAL
   ========================================================== */
.cta{
  background:var(--ink);
  color:var(--white);
  text-align:center;
  position:relative;
  overflow:hidden;
  padding:74px 0;
}
.cta::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 50% 0%,rgba(229,0,20,.18),transparent 62%);
}
.cta .wrap{position:relative; z-index:2;}
.cta h2{
  font-family:'Big Shoulders Display',sans-serif;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.01em;
  line-height:1;
  font-size:clamp(30px,4.4vw,52px);
  color:#fff;
  max-width:22ch;
  margin:0 auto 16px;
}
.cta p{
  color:rgba(251,250,246,.75);
  max-width:58ch;
  margin:0 auto 30px;
  font-size:16px;
  line-height:1.55;
}
.cta-actions{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}
/* Botón fantasma sobre fondo oscuro. Vive aquí y no en la sección de
   compatibilidad porque el CTA lo usa en las tres páginas, y style.css
   (index) no lo define en ningún lado. */
.btn-ghost-light{
  background:transparent;
  border:1.5px solid rgba(255,255,255,.35);
  color:var(--white);
}
.btn-ghost-light:hover{
  background:#fff;
  color:var(--ink);
  border-color:#fff;
}
.cta-contact{
  margin-top:22px;
  font-family:'IBM Plex Mono',monospace;
  font-size:11.5px;
  letter-spacing:.06em;
  color:rgba(251,250,246,.8);
  line-height:1.9;
}
.cta-contact a{
  color:#FF8A6B;
  border-bottom:1px solid rgba(255,138,107,.45);
  padding-bottom:1px;
}
.cta-contact a:hover{color:#fff; border-color:#fff;}

/* ==========================================================
   FOOTER INSTITUCIONAL
   ========================================================== */
footer.site-footer{
  background:var(--graphite);
  color:rgba(251,250,246,.72);
  padding:58px 0 26px;
}
.site-footer a{color:inherit; text-decoration:none;}

.foot-grid{
  display:grid;
  grid-template-columns:1.4fr repeat(4,1fr);
  gap:36px;
  padding-bottom:38px;
  border-bottom:1px solid rgba(255,255,255,.12);
}

/* ---------- Columna de marca ---------- */
.foot-brand p{
  font-size:13px;
  line-height:1.55;
  max-width:34ch;
  margin-bottom:18px;
}
/* Logotipo del footer. Vive aquí y no en la sección de compatibilidad
   porque ninguna de las tres hojas de página lo cubre por completo:
   style.css (index) ya no lo define y actega.css usa .daka-logo-img. */
.foot-brand .daka-logo{
  height:38px;
  width:auto;
  object-fit:contain;
}
.foot-contact{
  margin:16px 0 18px;
  font-size:13px;
  line-height:1.9;
  font-style:normal;
}
.foot-contact a{border-bottom:1px solid rgba(255,255,255,.25);}
.foot-contact a:hover{color:#fff; border-bottom-color:#fff;}
.foot-contact span{display:block; color:rgba(251,250,246,.62);}

/* ---------- Columnas de enlaces ---------- */
.foot-col h2,
.foot-col h5{
  font-family:'IBM Plex Mono',monospace;
  font-size:10px;
  line-height:1.55;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#FF8A6B;
  font-weight:600;
  margin-bottom:14px;
}
.foot-col a{
  display:block;
  font-size:13.5px;
  padding:8px 0;                      /* 8px, no 5px: objetivo táctil WCAG 2.5.8 */
  color:rgba(251,250,246,.82);        /* contraste 7:1 sobre --graphite */
  transition:color .18s var(--ease), padding-left .18s var(--ease);
}
.foot-col a:hover{color:#fff; padding-left:5px;}

/* ---------- Barra inferior ---------- */
.foot-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding-top:22px;
  flex-wrap:wrap;
}
.foot-bottom p,
.foot-bottom a{
  font-family:'IBM Plex Mono',monospace;
  font-size:10.5px;
  letter-spacing:.08em;
  color:rgba(251,250,246,.74);        /* contraste 7.4:1 */
}
.foot-bottom a:hover{color:#fff;}
.foot-legal{display:flex; gap:20px; flex-wrap:wrap;}

/* ---------- Redes sociales ---------- */
.social{display:flex; gap:8px;}
.social a{
  width:40px;                         /* 40px, no 32px: objetivo táctil WCAG 2.5.8 */
  height:40px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:var(--radius);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-family:'IBM Plex Mono',monospace;
  transition:all .2s var(--ease);
}
.social a:hover{background:#fff; color:var(--graphite); border-color:#fff;}

/* ---------- Foco visible (WCAG 2.4.7) ---------- */
.cta :focus-visible,
.site-footer :focus-visible{
  outline:3px solid #FF8A6B;
  outline-offset:3px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width:1080px){
  .foot-grid{grid-template-columns:1fr 1fr 1fr;}
  .foot-brand{grid-column:1/-1;}
  .foot-brand p{max-width:60ch;}
}
@media (max-width:900px){
  .cta{padding:54px 0;}
  .cta-actions .btn{flex:1 1 auto; justify-content:center;}
  .foot-grid{grid-template-columns:1fr 1fr; gap:28px;}
}
@media (max-width:620px){
  .foot-grid{grid-template-columns:1fr;}
  .foot-brand .daka-logo{height:30px;}
}

/* ==========================================================
   COMPATIBILIDAD — SOLO ACTEGA
   actega.css no define estas piezas, que index.html (style.css) y
   henkel.html (henkel.css) sí traen en su hoja propia.
   Se acotan con [data-page="actega"] para que block.css pueda cargarse
   en las tres páginas sin pisar los estilos de las otras dos.
   El atributo vive en <html data-page="actega"> de actega.html.
   ========================================================== */

/* actega.css convierte el .wrap del footer en flex para su footer de
   una línea. El footer nuevo necesita un contenedor normal. */
[data-page="actega"] footer.site-footer .wrap{
  display:block;
  justify-content:initial;
  align-items:initial;
  flex-wrap:initial;
  gap:initial;
}


/* Variantes de botón que actega.css no define (usa .btn-orange). */
[data-page="actega"] .btn-primary{
  background:var(--orange);
  color:var(--white);
  border-color:var(--orange);
}
[data-page="actega"] .btn-primary:hover{
  background:#C7440F;
  border-color:#C7440F;
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(226,87,28,.32);
}

/* =============================================================================
   PANTALLAS MUY ESTRECHAS (≤360 px)
   El correo de contacto del CTA es una cadena de 31 caracteres sin espacios;
   a 320 px sobresalía de .cta, que tiene overflow:hidden, y se leía cortado
   («…dakaquimicos.»). Se le permite partir solo en este ancho.
   ========================================================================== */
@media (max-width:360px){
  .cta-contact{overflow-wrap:anywhere}
}
