/* Footer único de Hyperconectado (templates/footer.html). Se aplica con tools/aplicar-footer.py */
.hf { background:#0d0d0d; color:#e8e8e8; font-family:'Matter SQ Regular',sans-serif; border-top:4px solid #000; }
.hf a { color:#e8e8e8; text-decoration:none; }
.hf a:hover { color:#fff; text-decoration:underline; text-decoration-color:#CD3334; text-underline-offset:4px; }
.hf-wrap { max-width:1200px; margin:0 auto; padding:0 24px; }
.hf-cta { background:#CD3334; border-bottom:4px solid #000; }
.hf-cta-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:28px 24px; flex-wrap:wrap; }
.hf-cta-texto { margin:0; font-size:clamp(18px,2.4vw,26px); font-weight:800; color:#fff; line-height:1.3; text-transform:uppercase; }
.hf-cta-texto span { font-weight:400; text-transform:none; font-size:.8em; }
.hf-cta-btn { background:#fff; color:#000 !important; font-weight:800; padding:14px 22px; border:4px solid #000; box-shadow:6px 6px 0 #000; text-transform:uppercase; white-space:nowrap; }
.hf-cta-btn:hover { text-decoration:none !important; transform:translate(2px,2px); box-shadow:4px 4px 0 #000; }
.hf-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; padding:48px 24px 40px; }
.hf h3 { color:#fff; font-size:15px; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; margin:0 0 16px; padding-bottom:10px; border-bottom:3px solid #E28413; display:inline-block; }
.hf ul { list-style:none; margin:0; padding:0; }
.hf li { margin:0 0 10px; font-size:15px; line-height:1.4; }
.hf-logo { display:inline-block; background:#F3F3F3; border:4px solid #000; box-shadow:6px 6px 0 #CD3334; padding:12px 18px; margin-bottom:18px; }
.hf-logo { display:inline-flex; align-items:center; gap:12px; }
.hf-logo img { height:48px; width:auto; display:block; }
.hf-logo span { color:#000; font-weight:800; font-size:20px; text-transform:uppercase; letter-spacing:1px; }
.hf-marca p { font-size:14px; line-height:1.6; color:#bdbdbd; margin:0; }
.hf-contacto li { display:flex; gap:10px; align-items:baseline; }
.hf-contacto i { color:#E28413; width:16px; }
.hf-base { border-top:1px solid #2a2a2a; }
.hf-base-inner { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 24px; flex-wrap:wrap; }
.hf-base p { margin:0; font-size:13px; color:#9a9a9a; }
.hf-base p a { color:#9a9a9a; }
.hf-redes { display:flex; gap:10px; }
.hf-redes a { width:34px; height:34px; display:flex; align-items:center; justify-content:center; border:2px solid #555; font-size:14px; }
.hf-redes a:hover { border-color:#CD3334; text-decoration:none; }
@media (max-width:900px){ .hf-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .hf-grid{ grid-template-columns:1fr; gap:28px; } .hf-cta-btn{ width:100%; text-align:center; } }

/* Recuadro "¿Necesitas ayuda con esto?" al final de las guías del Editorial */
.hs-box { margin:40px 0 10px; background:#F3F3F3; border:4px solid #000; box-shadow:8px 8px 0 #CD3334; padding:26px 28px; font-family:'Matter SQ Regular',sans-serif; }
.hs-box h3 { margin:0 0 6px; font-size:22px; font-weight:800; text-transform:uppercase; color:#000; }
.hs-box > p { margin:0 0 16px; color:#333; }
.hs-servicios { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.hs-servicio { display:block; background:#fff; border:3px solid #000; padding:14px 16px; color:#000 !important; text-decoration:none !important; }
.hs-servicio:hover { background:#000; color:#fff !important; }
.hs-servicio strong { display:block; font-size:16px; }
.hs-servicio span { display:block; margin-top:4px; font-size:14px; color:#CD3334; font-weight:700; }
.hs-servicio:hover span { color:#E28413; }
.hs-contacto { margin:18px 0 0 !important; display:flex; gap:12px; flex-wrap:wrap; }
.hs-contacto a { display:inline-block; font-weight:800; padding:12px 20px; border:3px solid #000; text-decoration:none !important; }
.hs-wa { background:#25D366; color:#fff !important; }
.hs-form { background:#CD3334; color:#fff !important; }

/* Bloque Reputación y Crisis del home */
.hr-section { background:#F3F3F3; border-top:4px solid #000; border-bottom:4px solid #000; padding:64px 0; font-family:'Matter SQ Regular',sans-serif; }
.hr-wrap { max-width:1200px; margin:0 auto; padding:0 24px; }
.hr-label { display:inline-block; background:#000; color:#fff; font-size:12px; font-weight:800; letter-spacing:2px; text-transform:uppercase; padding:6px 12px; }
.hr-h2 { margin:16px 0 10px; font-size:clamp(28px,4vw,46px); font-weight:900; text-transform:uppercase; line-height:1.05; color:#000; }
.hr-intro { max-width:720px; font-size:18px; color:#333; margin:0 0 28px; }
.hr-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.hr-card { display:block; background:#fff; border:4px solid #000; box-shadow:8px 8px 0 #CD3334; padding:28px; color:#000 !important; text-decoration:none !important; transition:transform .15s; }
.hr-card:hover { transform:translate(3px,3px); box-shadow:5px 5px 0 #CD3334; }
.hr-card-dark { background:#0d0d0d; color:#fff !important; box-shadow:8px 8px 0 #E28413; }
.hr-card-dark:hover { box-shadow:5px 5px 0 #E28413; }
.hr-num { display:block; font-size:44px; font-weight:900; opacity:.25; }
.hr-card strong { display:block; font-size:26px; font-weight:900; text-transform:uppercase; margin:4px 0 10px; }
.hr-txt { display:block; font-size:16px; line-height:1.55; opacity:.85; }
.hr-precio { display:inline-block; margin-top:18px; font-weight:800; color:#CD3334; }
.hr-card-dark .hr-precio { color:#E28413; }
@media (max-width:768px){ .hr-grid{ grid-template-columns:1fr; } }

/* WhatsApp flotante discreto (templates/whatsapp-flotante.html) */
.wa-flot { position:fixed; right:18px; bottom:18px; z-index:9999; display:flex; align-items:center; gap:8px; background:#1faa53; color:#fff !important; text-decoration:none !important; border:3px solid #000; box-shadow:4px 4px 0 #000; border-radius:999px; padding:10px; opacity:0; transform:translateY(16px); pointer-events:none; transition:opacity .25s, transform .25s, padding .2s; font-family:'Matter SQ Regular',sans-serif; font-weight:800; font-size:14px; }
.wa-flot.wa-visible { opacity:1; transform:none; pointer-events:auto; }
.wa-flot-txt { max-width:0; overflow:hidden; white-space:nowrap; transition:max-width .25s; }
.wa-flot:hover .wa-flot-txt, .wa-flot:focus .wa-flot-txt { max-width:120px; padding-right:6px; }
@media (min-width:900px){ .wa-flot-txt { max-width:120px; padding-right:6px; } }

/* Página de contacto */
.ct-section { background:#F3F3F3; padding:56px 0 72px; font-family:'Matter SQ Regular',sans-serif; }
.ct-wrap { max-width:1200px; margin:0 auto; padding:0 24px; display:grid; grid-template-columns:1fr 1.4fr; gap:32px; align-items:start; }
.ct-card { background:#fff; border:4px solid #000; box-shadow:8px 8px 0 #CD3334; padding:30px; }
.ct-wa { background:#0d0d0d; color:#fff; box-shadow:8px 8px 0 #1faa53; }
.ct-card h2 { margin:0 0 10px; font-size:26px; font-weight:900; text-transform:uppercase; }
.ct-card p { margin:0 0 16px; line-height:1.55; }
.ct-wa p { color:#d6d6d6; }
.ct-btn-wa { display:block; text-align:center; background:#1faa53; color:#fff !important; font-weight:800; font-size:18px; padding:16px; border:3px solid #fff; text-decoration:none !important; margin:18px 0; }
.ct-btn-wa:hover { background:#178a43; }
.ct-lista { list-style:none; padding:0; margin:18px 0 0; border-top:1px solid #333; }
.ct-lista li { padding:10px 0; border-bottom:1px solid #333; font-size:15px; }
.ct-lista a { color:#fff !important; }
.ct-form label { display:block; font-weight:800; font-size:13px; text-transform:uppercase; letter-spacing:1px; margin:0 0 6px; }
.ct-form input, .ct-form select, .ct-form textarea { width:100%; border:3px solid #000; padding:12px; font-size:16px; font-family:inherit; background:#fff; border-radius:0; margin:0 0 16px; }
.ct-form input:focus, .ct-form select:focus, .ct-form textarea:focus { outline:none; box-shadow:4px 4px 0 #E28413; }
.ct-fila { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.ct-enviar { background:#CD3334; color:#fff; font-weight:800; font-size:17px; text-transform:uppercase; padding:14px 28px; border:3px solid #000; box-shadow:5px 5px 0 #000; cursor:pointer; }
.ct-enviar:hover { transform:translate(2px,2px); box-shadow:3px 3px 0 #000; }
.ct-nota { font-size:13px; color:#555; margin-top:12px !important; }
@media (max-width:900px){ .ct-wrap{ grid-template-columns:1fr; } .ct-fila{ grid-template-columns:1fr; gap:0; } }

/* Interruptor Humano / Máquina (lleva a /ia/) */
.hf-vista { display:inline-flex; border:2px solid #4ECDC4; font-family:ui-monospace,Menlo,Consolas,monospace; font-size:12px; font-weight:700; text-decoration:none !important; }
.hf-vista span { padding:6px 10px; color:#4ECDC4; }
.hf-vista span.on { background:#4ECDC4; color:#0d0d0d; }
.hf-vista:hover span:not(.on) { background:#1c2b2c; }
