@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===== TopoBlocks — Header y Footer (marca) ===== */
.tb-header, .tb-footer {
  font-family: 'Inter', -apple-system, system-ui, 'Helvetica Neue', sans-serif;
  color: #222222;
  box-sizing: border-box;
}
.tb-header *, .tb-footer * { box-sizing: border-box; }
.tb-wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

/* ---- Header ---- */
.tb-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid #ececec;
}
.tb-header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
.tb-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #222; }
.tb-logo-ico { color: #222; flex-shrink: 0; }
.tb-logo-word { font-size: 19px; font-weight: 700; letter-spacing: -0.4px; }
.tb-nav { display: flex; align-items: center; gap: 30px; }
.tb-nav a { color: #4a4a4a; text-decoration: none; font-size: 15px; font-weight: 500; transition: color .15s; }
.tb-nav a:hover { color: #111; }
.tb-actions { display: flex; align-items: center; gap: 12px; }
.tb-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #222; text-decoration: none; transition: background .15s; }
.tb-icon-btn:hover { background: #f4f4f4; }
.tb-cta {
  display: inline-flex; align-items: center; height: 42px; padding: 0 20px;
  background: #ff385c; color: #fff; text-decoration: none;
  border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: background .15s;
}
.tb-cta:hover { background: #e00b41; color: #fff; }
.tb-burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.tb-burger span { display: block; width: 20px; height: 2px; background: #222; border-radius: 2px; transition: transform .2s, opacity .2s; }
.tb-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tb-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tb-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.tb-mmenu { border-top: 1px solid #ececec; background: #fff; padding: 8px 22px 16px; }
.tb-mmenu[hidden] { display: none; }
.tb-mmenu a { display: block; padding: 13px 2px; color: #222; text-decoration: none; font-size: 16px; font-weight: 500; border-bottom: 1px solid #f2f2f2; }
.tb-mmenu a:first-child { color: #ff385c; font-weight: 600; }

/* ---- Footer ---- */
.tb-footer { background: #fff; border-top: 1px solid #ececec; padding: 52px 0 34px; margin-top: 40px; }
.tb-fcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tb-fcol h4 { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: #222; }
.tb-fcol ul { list-style: none; margin: 0; padding: 0; }
.tb-fcol li { margin: 0; }
.tb-fcol a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 0; color: #6a6a6a; text-decoration: none; font-size: 14px; transition: color .15s; }
.tb-fcol a:hover { color: #111; }
.tb-fbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #ececec; flex-wrap: wrap; }
.tb-flegal { color: #6a6a6a; font-size: 13px; }
.tb-flegal a { color: #428bff; text-decoration: none; }
.tb-flegal a:hover { text-decoration: underline; }
.tb-fright { display: flex; align-items: center; gap: 16px; }
.tb-lang { display: inline-flex; align-items: center; gap: 6px; color: #222; font-size: 13px; }
.tb-fright a { color: #6a6a6a; display: inline-flex; transition: color .15s; }
.tb-fright a:hover { color: #111; }
.tb-fattr { margin-top: 14px; color: #929292; font-size: 12px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .tb-nav, .tb-header .tb-cta { display: none; }
  .tb-burger { display: flex; }
  .tb-fcols { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
}
@media (max-width: 560px) {
  .tb-fcols { grid-template-columns: 1fr; }
  .tb-fbar { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 861px) {
  .tb-mmenu { display: none !important; }
}
