/*
 * Rentabia · cabecera y pie de la web. Archivo aparte y autocontenido (sin reglas globales) para que
 * el panel (api.rentabia.es/app) cargue el mismo menú y pie sin heredar los estilos de la web.
 */
.site-header, .site-footer {
  --c-blue: #16a34a; --c-blue-soft: #f0fdf4; --c-navy: #0b2e1f; --c-line: #e2ece5; --c-header-h: 72px;
  font-family: "Open Sans", system-ui, sans-serif; line-height: 1.65;
}
.site-header *, .site-footer * { box-sizing: border-box; }
.site-header .wrap, .site-footer .wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Cabecera */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.site-header.scrolled { border-color: var(--c-line); box-shadow: 0 6px 20px -16px rgba(11, 46, 31, 0.4); }
.site-header .header-inner { height: var(--c-header-h); display: flex; align-items: center; gap: 24px; }
.site-header .brand img { display: block; height: 32px; width: auto; max-width: none; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.site-nav ul a { color: var(--c-navy); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav ul a:hover, .site-nav ul a.active { color: var(--c-blue); }
.site-nav ul a.active { font-weight: 600; }
.site-nav .account { color: var(--c-navy); font-size: 26px; line-height: 1; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.site-nav .account span { font-size: 0; }
.site-nav .account:hover { color: var(--c-blue); }
/* Menú del icono de usuario */
.site-nav .account-menu { position: relative; }
.site-nav .account { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.site-header .account-dropdown {
  position: absolute; right: 0; top: calc(100% + 12px); min-width: 220px; z-index: 60;
  background: #fff; border: 1px solid var(--c-line); border-radius: 14px; padding: 6px;
  box-shadow: 0 18px 40px -18px rgba(11, 46, 31, 0.45);
}
.site-header .account-dropdown[hidden], .site-header .account-dropdown [hidden] { display: none; }
.site-header .account-dropdown a, .site-header .account-dropdown button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px;
  background: none; color: var(--c-navy); font: inherit; font-size: 15px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer;
}
.site-header .account-dropdown a:hover, .site-header .account-dropdown button:hover { background: var(--c-blue-soft); color: var(--c-blue); }
.site-header .account-dropdown i { font-size: 17px; }
.site-header .menu-toggle { display: none; margin-left: auto; border: 0; background: var(--c-blue-soft); color: var(--c-navy); width: 44px; height: 44px; border-radius: 12px; font-size: 24px; cursor: pointer; }

/* Pie */
.site-footer { background: var(--c-navy); color: #c5dccd; padding: 48px 0 24px; font-size: 15px; }
.site-footer .footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer .footer-brand strong { font-family: "Poppins", system-ui, sans-serif; font-weight: 600; font-size: 22px; color: #fff; }
.site-footer .footer-logo { display: block; height: 32px; width: auto; max-width: none; }
.site-footer .footer-brand p { margin: 6px 0 14px; max-width: 460px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .footer-wa { display: block; margin-top: 4px; }
.site-footer .footer-wa i { color: #34d36b; }
.site-footer .footer-wa .bi-envelope-fill { color: #c5dccd; }
.site-footer .footer-links, .site-footer .footer-langs { display: flex; flex-direction: column; gap: 8px; }
.site-footer .footer-langs a[aria-current="true"] { font-weight: 700; text-decoration: underline; }
.site-footer .footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; color: #8fab9a; }

@media (max-width: 980px) {
  .site-footer .footer-inner { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-brand { grid-column: 1 / -1; }
  .site-header .menu-toggle { display: grid; place-items: center; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--c-line); padding: 8px 24px 20px; box-shadow: 0 20px 30px -20px rgba(11, 46, 31, 0.35);
    display: none;
  }
  .site-header.open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--c-line); }
  .site-nav ul a.active { box-shadow: none; }
  .site-nav .account { padding: 14px 0 0; font-size: 22px; }
  .site-nav .account span { font-size: 16px; font-weight: 600; }
  .site-header .account-dropdown { position: static; box-shadow: none; border: 0; padding: 4px 0 0; min-width: 0; }
  .site-header .account-dropdown a, .site-header .account-dropdown button { padding: 10px 0; }
}
@media (max-width: 640px) {
  .site-header .wrap, .site-footer .wrap { padding: 0 20px; }
  .site-footer .footer-inner { grid-template-columns: 1fr; }
}
