/* ============================================================
   LAYOUT — psicologa.co
   Header (nav + dropdowns + mobile) y Footer.
   Copiar este bloque completo en cada página nueva.
   Requiere: tokens.css, base.css
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   NAV — Dropdown desktop
   ════════════════════════════════════════════════════════════ */
.dropdown-menu {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease-out, transform 0.22s ease-out, visibility 0.22s ease-out;
  transform-origin: top center;
}
.dropdown-menu.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
.dropdown-item { transition: background 0.15s ease, color 0.15s ease; }

/* ── Acordeón mobile ── */
.mobile-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-sub.open { max-height: 600px; }

/* ── Flecha rotada cuando acordeón abierto ── */
.accordion-btn.open .arrow-icon { transform: rotate(180deg); }
.arrow-icon { transition: transform 0.2s ease; }


/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.site-footer {
  background: #00254D;
  color: #ffffff;
}

/* ── Cuerpo superior ── */
.footer-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 32px 52px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 960px) { .footer-body { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .footer-body { grid-template-columns: 1fr; gap: 32px; } }

/* ── Col 1: Brand ── */
.footer-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(17px, 1.7vw, 24px);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 28px;
}
.footer-heading em { font-style: italic; color: #60a5fa; }

.footer-cta {
  display: inline-flex; align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 7px 7px 7px 20px;
  text-decoration: none;
  gap: 14px;
  width: fit-content;
  transition: opacity 0.2s;
}
.footer-cta:hover { opacity: 0.9; }
.footer-cta-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600;
  color: #00254D; white-space: nowrap;
}
.footer-cta-arrow {
  width: 32px; height: 32px;
  background: #00254D;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer-cta-arrow svg { color: #ffffff; }

/* ── Cols 2-4: Labels ── */
.footer-col-title {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

/* ── Sedes ── */
.footer-sedes { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-sedes li { display: flex; flex-direction: column; gap: 1px; }
.footer-sede-name {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.footer-sede-addr { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.4; }

.footer-contact { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.footer-contact a { font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: #60a5fa; }

/* ── Horarios ── */
.footer-hours { display: flex; flex-direction: column; gap: 10px; }
.footer-hour-row { display: flex; flex-direction: column; gap: 2px; }
.footer-hour-day { font-size: 12px; color: rgba(255,255,255,0.45); }
.footer-hour-time { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); }
.footer-hour-time.closed { color: rgba(255,255,255,0.35); font-weight: 400; }
.footer-hour-sep { width: 100%; height: 1px; background: rgba(255,255,255,0.08); margin: 2px 0; }

/* ── Links recursos ── */
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 13px; color: rgba(255,255,255,0.7);
  text-decoration: none; transition: color 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.footer-links a::before {
  content: ''; display: block;
  width: 14px; height: 1px;
  background: #1D4ED8; flex-shrink: 0;
  transition: width 0.2s;
}
.footer-links a:hover { color: #ffffff; }
.footer-links a:hover::before { width: 20px; }

/* ── Redes sociales ── */
.footer-social { display: flex; gap: 10px; margin-bottom: 24px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.footer-social a:hover { background: #1D4ED8; border-color: #1D4ED8; color: #ffffff; }

/* ── Separador ── */
.footer-sep {
  max-width: 1100px; margin: 0 auto;
  border: none; border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── Barra inferior ── */
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; align-items: center; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* ── Strip pagos ── */
.footer-payments { background: rgba(0,0,0,0.15); padding: 14px 32px; }
.footer-payments-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap;
}
.footer-payments-text { font-size: 11px; color: rgba(255,255,255,0.35); letter-spacing: 0.5px; }
.footer-payments-text strong { color: rgba(255,255,255,0.55); }
.pay-badge {
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  border-radius: 6px; padding: 3px 9px;
}
