/* ALS Components */

/* =====================================================
   AIS Header/Footer (migrated from wp_components)
   ===================================================== */

:root {
  --ais-gold: #F2BE1A;
  --ais-black: #0B0B0B;
  --ais-text: #111;
  --ais-max: 1500px;
  --ais-radius: 12px;
  --ais-shadow: 0 10px 24px rgba(0, 0, 0, .06), 0 2px 6px rgba(0, 0, 0, .05);
  --ais-transition: .2s ease;
  --ais-header-h: 72px;
  --ais-gap-desktop: 18px;
  --ais-gap-mobile: 10px;
  --ais-link-py: 12px;
  --ais-link-px: 16px;
  --ais-sub-py: 10px;
  --ais-sub-px: 14px;
  --ais-link-radius: 12px;
}

body.ais-has-header .als-main {
  padding-top: calc(var(--ais-header-h) + 12px);
}

.ais-header {
  font-family: 'Outfit', system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ais-text);
  border-top: 1px solid rgba(0, 0, 0, .04);
  border-bottom: 1px solid rgba(0, 0, 0, .04);
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
  transition: background-color .3s ease, backdrop-filter .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.ais-header.ais-is-scrolled {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  border-color: rgba(0, 0, 0, .06);
}

.ais-navbar {
  max-width: var(--ais-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 20px;
}

.ais-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.ais-brand .ais-logo {
  width: 90px;
  height: auto;
}

.ais-nav {
  display: flex;
  align-items: center;
  gap: var(--ais-gap-desktop);
  list-style: none;
  margin: 0;
  padding: 0;
}

.ais-nav > li { list-style: none; margin: 0; padding: 0; }

.ais-nav > li > a {
  display: block;
  padding: var(--ais-link-py) var(--ais-link-px);
  border-radius: var(--ais-link-radius);
  color: var(--ais-text);
  text-decoration: none;
  font-weight: 600;
  transition: background var(--ais-transition), color var(--ais-transition), opacity var(--ais-transition), box-shadow var(--ais-transition);
}

.ais-header .ais-nav a:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.ais-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ais-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--ais-transition), background var(--ais-transition), color var(--ais-transition), box-shadow var(--ais-transition);
}

.ais-btn--gold { background: var(--ais-gold); color: #000; }
.ais-btn--dark { background: #000; color: #fff; }

.ais-hamburger {
  display: none;
  border: 0;
  background: #000;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background var(--ais-transition), color var(--ais-transition), box-shadow var(--ais-transition);
}

.ais-hamburger:hover { background: #111; }

.ais-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ais-transition);
  z-index: 2000;
}

.ais-backdrop[hidden] { display: none !important; }

.ais-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: 86%;
  max-width: 360px;
  background: #fff;
  box-shadow: var(--ais-shadow);
  transform: translateX(-100%);
  transition: transform var(--ais-transition);
  display: flex;
  flex-direction: column;
  z-index: 2100;
}

.ais-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.ais-drawer__nav {
  padding: 10px 12px;
  overflow: auto;
}

.ais-drawer .ais-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--ais-gap-mobile);
}

.ais-drawer .ais-nav a {
  padding: var(--ais-link-py) var(--ais-link-px);
  border-radius: var(--ais-link-radius);
}

.ais-mobile-open .ais-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.ais-mobile-open .ais-drawer {
  transform: translateX(0);
}

.ais-no-scroll { overflow: hidden; }

/* User dropdown */
.ais-user-dropdown { position: relative; display: inline-block; }

.ais-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
  background: var(--ais-gold);
  color: #000;
  font-weight: 800;
  font-size: 16px;
  border: 2px solid var(--ais-gold);
  cursor: pointer;
  transition: all var(--ais-transition);
}

.ais-user-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

.ais-user-avatar img[hidden] {
  display: none;
}

.ais-user-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: var(--ais-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 12px;
  display: none;
  z-index: 10000;
}

.ais-user-dropdown.ais-is-open .ais-user-menu { display: block; }

.ais-user-menu a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--ais-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--ais-transition);
  margin: 3px 0;
}

.ais-user-menu a i { width: 18px; margin-right: 12px; text-align: center; }

.ais-user-menu a:hover {
  background: var(--ais-gold);
  color: #000;
  transform: translateX(4px);
  text-decoration: none;
}

.ais-user-menu .ais-divider { height: 1px; background: rgba(0, 0, 0, .06); margin: 8px 0; }

/* Responsive */
@media (max-width: 1049px) {
  .ais-header .ais-navbar nav { display: none; }
  .ais-actions { display: none; }
  .ais-hamburger {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    gap: 8px;
  }
  .ais-navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 6px 16px;
  }
  .ais-hamburger { justify-self: start; }
  .ais-brand { justify-self: center; }
}

/* Footer */
#ais-footer {
  --gold: #F2C11C;
  --max: 1300px;
  font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #000;
  color: #fff;
}

#ais-footer .footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  padding: 36px 20px 28px;
}

#ais-footer .brand { display: inline-block; color: inherit; text-decoration: none; }
#ais-footer .brand img { height: 70px; max-width: 100%; width: auto; display: block; margin: 0 auto; }

#ais-footer .footer-nav ul {
  list-style: none;
  margin: 18px 0 8px;
  padding: 0;
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

#ais-footer .footer-nav a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

#ais-footer .footer-nav a:hover { color: var(--gold); }

#ais-footer .footer-contact,
#ais-footer .footer-legal {
  color: #EDEFF2;
}

#ais-footer .footer-contact {
  margin: 16px 0 14px;
  font-weight: 600;
}

#ais-footer .footer-contact .sep { opacity: .6; margin: 0 8px; }

#ais-footer .footer-contact a {
  color: #FFFFFF;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, .35);
}

#ais-footer .footer-contact a:hover { border-bottom-color: rgba(255, 255, 255, .6); }

#ais-footer .footer-social {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px;
  display: flex;
  justify-content: center;
  gap: 26px;
}

#ais-footer .footer-social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  border: 3px solid #fff;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  line-height: 0;
}

#ais-footer .footer-social i { font-size: 22px; line-height: 1; display: block; }

#ais-footer .footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

#ais-footer .footer-legal { font-weight: 700; margin: 6px 0 0; }

@media (max-width: 720px) {
  #ais-footer .footer-contact { font-size: 14px; }
  #ais-footer .footer-nav ul { gap: 18px; }
  #ais-footer .footer-social a { width: 40px; height: 40px; }
}

.als-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(247, 244, 238, 0.75);
  border-bottom: 1px solid var(--line);
}

.als-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.als-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.als-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--brand), #ffe9a1);
  border: 1px solid rgba(34, 27, 0, 0.15);
  box-shadow: 0 10px 22px rgba(242, 193, 28, 0.25);
}

.als-brand__name {
  font-weight: 750;
  letter-spacing: 0.2px;
}

.als-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.als-nav__spacer {
  flex: 1;
}

.als-nav-toggle {
  display: none;
  width: 46px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(11, 18, 32, 0.16);
  background: rgba(255, 255, 255, 0.6);
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
}

.als-nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(11, 18, 32, 0.85);
  border-radius: 2px;
}

.als-nav a {
  padding: 8px 10px;
  border-radius: 10px;
}

.als-nav a:hover {
  background: rgba(11, 18, 32, 0.06);
  text-decoration: none;
}

/* .als-main {
  padding: 26px 0 44px;
} */

.als-footer {
  margin-top: 32px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.als-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.als-footer__brand-name {
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.2px;
}

.als-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 18px;
}

.als-footer__col {
  display: grid;
  gap: 10px;
}

.als-footer__title {
  font-weight: 900;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.als-footer__col a {
  color: var(--muted);
  text-decoration: none;
}

.als-footer__col a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.als-footer__bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.als-footer__bottom-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.als-footer__bottom-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
}

.als-footer__bottom-links a:hover {
  background: rgba(11, 18, 32, 0.06);
  color: var(--ink);
  text-decoration: none;
}

@media (max-width: 980px) {
  .als-nav-toggle {
    display: inline-flex;
  }
  .als-nav {
    position: fixed;
    top: 64px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(11, 18, 32, 0.12);
    box-shadow: 0 22px 60px rgba(11, 18, 32, 0.18);
    z-index: 60;
  }
  .als-header.is-open .als-nav {
    display: flex;
  }
  .als-nav__spacer {
    display: none;
  }
  .als-nav a {
    padding: 12px 12px;
  }
}

@media (max-width: 860px) {
  .als-footer__cols {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

.als-hero {
  padding: 22px;
}

.als-hero h1 {
  margin: 0;
  font-family: Fraunces, ui-serif, Georgia, serif;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0.2px;
}

.als-hero p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 56ch;
}

.als-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(242, 193, 28, 0.18);
  border: 1px solid rgba(34, 27, 0, 0.10);
}

.als-form {
  padding: 18px;
}

.als-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.als-field label {
  font-size: 13px;
  color: var(--muted);
}

.als-field input, .als-field textarea {
  border-radius: 12px;
  border: 1px solid rgba(11, 18, 32, 0.16);
  padding: 12px 12px;
  font: inherit;
  background: #fff;
}

.als-field input:focus, .als-field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(242, 193, 28, 0.25);
  border-color: rgba(34, 27, 0, 0.25);
}

.als-kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(11, 18, 32, 0.16);
  background: rgba(255, 255, 255, 0.7);
}

/* DataTables search: improve discoverability */
.dataTables_wrapper :is(.dataTables_filter, .dt-search) {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
}

.dataTables_wrapper :is(.dataTables_filter, .dt-search) label {
  margin: 0;
  width: min(100%, 560px);
  font-weight: 700;
  color: #7a5a00;
}

.dataTables_wrapper :is(.dataTables_filter, .dt-search) input[type="search"] {
  width: 100% !important;
  min-height: 46px;
  margin-left: 8px;
  border: 2px solid #d4a300 !important;
  border-radius: 12px;
  background: #fffef8;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(212, 163, 0, 0.18);
}

.dataTables_wrapper :is(.dataTables_filter, .dt-search) input[type="search"]:focus {
  border-color: #ffc107 !important;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.28);
  outline: 0;
}

/* =====================================================
   Shared UI primitives (Admin / Empresa consistency)
   ===================================================== */

:root {
  --als-card-radius: 16px;
  --als-card-border: rgba(15, 23, 42, 0.10);
  --als-card-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  --als-card-shadow-hover: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.als-card {
  background: #fff;
  border: 1px solid var(--als-card-border);
  border-radius: var(--als-card-radius);
  box-shadow: var(--als-card-shadow);
}

.als-card--flat {
  box-shadow: none;
}

.als-card__title {
  font-family: 'Poppins', 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.als-card__sub {
  font-family: 'Poppins', 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
}

.als-label {
  display: block;
  font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

