/* Namespaced navigation keeps each module's forms, maps and actions independent. */
#ds-header, #ds-header * { box-sizing: border-box; }
#ds-header {
  position: fixed; inset: 0 0 auto; z-index: 1500; margin: 0;
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center;
  justify-content: space-between; gap: clamp(12px, 1.4vw, 28px); width: 100%; min-height: 96px;
  padding: 14px clamp(16px, 2vw, 40px); background: #080b12; color: #fff;
  border-bottom: 1px solid #ffffff20; box-shadow: 0 8px 24px #00000020;
  font-family: Arial, Helvetica, sans-serif; text-align: left; line-height: 1.4;
}
#ds-header .ds-logo {
  position: relative; display: block; flex: 0 0 auto; padding: 0 0 13px;
  color: #3b46f5; font: 700 clamp(30px, 2vw, 40px)/1.15 Arial, Helvetica, sans-serif;
  letter-spacing: 0; text-decoration: none; white-space: nowrap;
}
#ds-header .ds-logo::before, #ds-header .ds-logo::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2px; background: #fdc500;
}
#ds-header .ds-logo::before { bottom: 0; }
#ds-header .ds-logo::after { bottom: 7px; }
#ds-navigation {
  display: flex; flex: 0 1 auto; flex-direction: row; align-items: center;
  justify-content: flex-end; gap: clamp(3px, .4vw, 8px); margin: 0; padding: 0; width: auto;
}
#ds-navigation a, #ds-navigation summary, #ds-header button {
  display: flex; align-items: center; justify-content: flex-start; gap: 8px;
  min-height: 48px; width: auto; margin: 0; padding: 12px clamp(8px, .7vw, 14px);
  border: 1px solid transparent; border-radius: 12px; background: transparent;
  color: #f1f5f9; font: 600 clamp(15px, 1.1vw, 20px)/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0; text-transform: none; text-decoration: none; text-align: left;
  cursor: pointer; box-shadow: none; transform: none; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
#ds-navigation a:hover, #ds-navigation summary:hover, #ds-header button:hover {
  color: #fdc500; background: #ffffff12; border-color: #ffffff20; transform: none; box-shadow: none;
}
#ds-header :is(a, button, summary):focus-visible { outline: 3px solid #fdc500; outline-offset: 3px; }
#ds-navigation a[aria-current="page"], #ds-navigation .ds-current-group > summary { color: #fdc500; background: #fdc50012; }
#ds-navigation .ds-nav-cta { border-color: #fdc500; background: #fdc500; color: #101622; margin-left: 8px; font-weight: 750; box-shadow: 0 4px 16px #fdc50020; }
#ds-navigation .ds-nav-cta:hover { background: #ffe16b; border-color: #ffe16b; color: #080b12; box-shadow: 0 6px 20px #fdc50030; }
#ds-navigation .ds-logout { border-color: #667085; }
#ds-header .ds-dropdown { position: relative; margin: 0; padding: 0; }
#ds-header summary { list-style: none; }
#ds-header summary::-webkit-details-marker { display: none; }
#ds-header summary span { margin-left: auto; transition: transform .15s; }
#ds-header details[open] > summary span { transform: rotate(180deg); }
#ds-header .ds-dropdown-links {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 1;
  width: 320px; max-width: calc(100vw - 32px); padding: 10px; border: 1px solid #ffffff24; border-radius: 16px;
  background: #101622; box-shadow: 0 16px 32px #0004;
}
#ds-header .ds-dropdown-links a { white-space: normal; }
#ds-header .ds-menu-toggle { display: none; }
#ds-header:not(.ds-nav-ready) { position: relative; }
body.ds-page { margin: 0; padding-top: 96px; display: flex; flex-direction: column; min-height: 100vh; }
body.ds-page > main, body.ds-page > .shell { min-width: 0; }
body.ds-page :is(input, select, textarea) { max-width: 100%; }
body.ds-page :is(.layout, .grid, .editor, .dashboard-grid) > * { min-width: 0; }
body.ds-page :is(h1, h2) { max-width: 100%; overflow-wrap: anywhere; }
body.ds-page .services-grid > .service { width: auto; min-width: 0; }
body.ds-page[data-ds-page="JOIN_OUR_TEAM"] .hero-titles { width: 100%; max-width: 100%; min-width: 0; }
body.ds-page[data-ds-page="JOIN_OUR_TEAM"] .hero-titles div { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
body.ds-page > main.shell, body.ds-page[data-ds-page="CAPTURE_EMPLOYEE_ADM"] > main { margin-top: 24px; }
body.ds-page[data-ds-page="LOGIN"] > .hero { padding-top: 36px; }
/* The shared header already reserves its height; service heroes need no second offset. */
body.ds-page:is([data-ds-page="RETIREMENT_HOME_SERVICE"], [data-ds-page="PRIVATE_EVENTS"], [data-ds-page="RESTAURANT_VALET_SERVICE"]) > br { display: none; }
body.ds-page:is([data-ds-page="RETIREMENT_HOME_SERVICE"], [data-ds-page="PRIVATE_EVENTS"], [data-ds-page="RESTAURANT_VALET_SERVICE"]) > .hero { margin-top: 0; padding-top: 20px; }
body.ds-page:is([data-ds-page="GET_OUT_VALET_PS"], [data-ds-page="ABOUT"], [data-ds-page="JOIN_OUR_TEAM"]) > br { display: none; }
body.ds-page:is([data-ds-page="GET_OUT_VALET_PS"], [data-ds-page="ABOUT"]) > .hero { margin-top: 0; padding: 24px 20px 48px !important; }
body.ds-page:is([data-ds-page="GET_OUT_VALET_PS"], [data-ds-page="ABOUT"]) > .hero > .hero-sub1 { margin: 0 0 24px !important; }
body.ds-page[data-ds-page="JOIN_OUR_TEAM"] > .hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 24px; width: min(1120px, 100%); margin: 0 auto; padding: 24px 20px 48px; }
body.ds-page[data-ds-page="JOIN_OUR_TEAM"] .hero-titles { gap: 16px; margin: 0; padding: 24px; background: #080b12e8; border: 1px solid #ffffff30; border-radius: 16px; }
body.ds-page[data-ds-page="JOIN_OUR_TEAM"] .hero-titles > br { display: none; }
body.ds-page[data-ds-page="JOIN_OUR_TEAM"] .hero-sub1 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; color: #fdc500; text-shadow: none; }
body.ds-page[data-ds-page="JOIN_OUR_TEAM"] .join-text { font: 400 17px/1.6 Arial, Helvetica, sans-serif; color: #f1f5f9; text-shadow: none; }
body.ds-page[data-ds-page="JOIN_OUR_TEAM"] .ds-join-contact { width: 100%; margin-top: 0 !important; font: 400 14px/1.6 Arial, Helvetica, sans-serif !important; }
body.ds-page[data-ds-page="JOIN_OUR_TEAM"] .ds-join-contact > div { display: block !important; }
body.ds-page[data-ds-page="JOIN_OUR_TEAM"] .ds-join-contact span { display: none; }
body.ds-page[data-ds-page="JOIN_OUR_TEAM"] #contactForm { margin-top: 0 !important; max-width: none !important; text-align: left; }
@media (max-width: 800px) {
  body.ds-page[data-ds-page="JOIN_OUR_TEAM"] > .hero { grid-template-columns: minmax(0, 1fr); padding: 20px 14px 36px; gap: 20px; }
  body.ds-page[data-ds-page="JOIN_OUR_TEAM"] .hero-titles { padding: 20px 16px; }
}
body.ds-page[data-ds-page="filtros_boletin"] { height: auto; min-height: 100vh; padding: 112px 16px 24px; }
/* A single footer layout and brand treatment for every module. */
#ds-footer, #ds-footer * { box-sizing: border-box; }
#ds-footer {
  /* Override legacy footer flex layouts so the grid and bottom line stack like LOGIN. */
  display: block; position: relative; flex: 0 0 auto; align-self: stretch;
  width: 100%; min-width: 0;
  margin: auto 0 0; padding: 44px clamp(20px, 4vw, 64px) 0;
  background: #080b12; color: #cbd5e1; border-top: 3px solid #fdc500;
  font: 400 14px/1.7 Arial, Helvetica, sans-serif; text-align: center;
  text-shadow: none; letter-spacing: normal; text-transform: none;
}
/* Older pages apply flex: 1 and min-width: 180px to every footer div. */
#ds-footer div { flex: initial; min-width: 0; }
#ds-footer .ds-footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 4vw, 72px); width: 100%; max-width: 1700px; margin: 0 auto; justify-items: stretch; align-items: start; }
#ds-footer .ds-footer-column { min-width: 0; width: 100%; text-align: center; }
#ds-footer h2 { margin: 0 0 16px; padding: 0; color: #fdc500; font: 700 15px/1.5 Arial, Helvetica, sans-serif; text-shadow: none; text-transform: none; letter-spacing: 0; }
#ds-footer p { max-width: 28ch; margin: 0 auto 14px; padding: 0; color: #cbd5e1; font: inherit; text-shadow: none; overflow-wrap: anywhere; }
#ds-footer a { display: block; width: fit-content; max-width: 100%; margin: 0 auto; padding: 7px 0; color: #cbd5e1; font: inherit; text-decoration: none; overflow-wrap: anywhere; word-break: normal; }
#ds-footer a:hover { color: #fdc500; text-decoration: underline; }
#ds-footer a:focus-visible { outline: 3px solid #fdc500; outline-offset: 4px; border-radius: 3px; }
#ds-footer .ds-footer-logo { position: relative; display: inline-block; padding: 0 0 13px; margin: 0 auto 20px; color: #3b46f5; font: 700 32px/1.15 Arial, Helvetica, sans-serif; text-decoration: none; white-space: nowrap; }
#ds-footer .ds-footer-logo::before, #ds-footer .ds-footer-logo::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: #fdc500; }
#ds-footer .ds-footer-logo::before { bottom: 0; }
#ds-footer .ds-footer-logo::after { bottom: 7px; }
#ds-footer .ds-footer-bottom { width: 100%; max-width: 1700px; margin: 30px auto 0; padding: 20px 0; border-top: 1px solid #ffffff20; color: #94a3b8; font-size: 12px; text-align: center; white-space: nowrap; }
#ds-footer .ds-footer-bottom span { padding: 0 8px; color: #fdc500; }
body.ds-page[data-ds-page="EMPLOYEE_TIME_CLOCK"] > main { width: 100%; }
body.ds-page[data-ds-page="filtros_boletin"] { padding-inline: 0; padding-bottom: 0; justify-content: flex-start; }
body.ds-page[data-ds-page="filtros_boletin"] > .card { width: calc(100% - 32px); margin-bottom: 32px; }
.ds-existing-contact { width: min(620px, calc(100% - 32px)); margin: 32px auto; padding: 24px; border-radius: 16px; background: #fff; }
.ds-existing-contact form { display: grid; gap: 12px; }
@media (max-width: 1000px) { #ds-footer .ds-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1240px) {
  #ds-header { min-height: 84px; gap: 12px; padding: 12px 20px; flex-wrap: wrap; }
  #ds-header .ds-logo { font-size: 28px; }
  #ds-footer .ds-footer-logo { font-size: 28px; }
  #ds-navigation { flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  #ds-navigation a, #ds-navigation summary, #ds-navigation .ds-logout { min-height: 56px; padding: 15px 18px; font-size: clamp(18px, 2.2vw, 21px); white-space: normal; overflow-wrap: anywhere; }
  #ds-navigation > a, #ds-navigation > .ds-dropdown > summary, #ds-navigation > .ds-logout { border: 1px solid #ffffff14; border-radius: 14px; background: #ffffff06; }
  #ds-navigation > a:hover, #ds-navigation > .ds-dropdown > summary:hover, #ds-navigation > .ds-logout:hover { background: #ffffff12; border-color: #ffffff30; }
  #ds-navigation > a[aria-current="page"], #ds-navigation > .ds-current-group > summary { color: #ffe16b; background: #fdc50012; border-color: #fdc50050; box-shadow: inset 4px 0 #fdc500; }
  #ds-header summary span { font-size: 24px; line-height: 1; }
  #ds-header.ds-nav-ready .ds-menu-toggle { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 16px; font-size: 17px; font-weight: 700; border: 1px solid #fdc50070; border-radius: 14px; background: #fdc5000d; color: #ffe16b; }
  #ds-header.ds-menu-open .ds-menu-toggle { background: #fdc500; color: #101622; border-color: #fdc500; }
  #ds-header.ds-nav-ready #ds-navigation { display: none; }
  #ds-header.ds-nav-ready.ds-menu-open #ds-navigation {
    display: flex; position: absolute; top: calc(100% + 8px); left: 12px; right: 12px;
    width: calc(100% - 24px); max-height: calc(100vh - 108px); max-height: calc(100dvh - 108px);
    overflow-y: auto; overscroll-behavior: contain;
    padding: 16px 16px max(20px, env(safe-area-inset-bottom)); background: linear-gradient(155deg, #18253b, #080b12 75%);
    border: 1px solid #ffffff26; border-radius: 22px; box-shadow: 0 24px 60px #0009;
  }
  #ds-header .ds-dropdown-links { position: static; width: 100%; max-width: none; margin: 8px 0 0; padding: 6px; background: #00000024; border-color: #ffffff14; border-radius: 14px; box-shadow: none; }
  #ds-header .ds-dropdown-links a { min-height: 52px; font-size: 17px; padding: 13px 16px; }
  #ds-navigation > .ds-nav-cta { margin: 6px 0 0; justify-content: center; background: #fdc500; border-color: #fdc500; color: #101622; }
  #ds-navigation > .ds-nav-cta:hover { background: #ffe16b; border-color: #ffe16b; color: #080b12; }
  #ds-header .ds-menu-icon { display: flex; flex-direction: column; gap: 4px; }
  #ds-header .ds-menu-icon i { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
  #ds-header.ds-menu-open .ds-menu-icon i:first-child { transform: translateY(6px) rotate(45deg); }
  #ds-header.ds-menu-open .ds-menu-icon i:nth-child(2) { opacity: 0; }
  #ds-header.ds-menu-open .ds-menu-icon i:last-child { transform: translateY(-6px) rotate(-45deg); }
  body.ds-page { padding-top: 84px; }
}
@media (max-width: 600px) {
  #ds-header { padding-inline: 14px; }
  #ds-header .ds-logo { font-size: 25px; }
  #ds-footer .ds-footer-logo { font-size: 25px; }
  #ds-footer .ds-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #ds-footer { padding-inline: 16px; }
  body.ds-page :is(.panel-head, .welcome, .admin-welcome-card) { flex-wrap: wrap; gap: 12px; }
  body.ds-page :is(.footer-wrapper) { grid-template-columns: minmax(0, 1fr); }
  body.ds-page[data-ds-page="CAPTURE_SCHEDULE_ADM"] .employee-grid { grid-template-columns: minmax(0, 1fr); }
  body.ds-page[data-ds-page="filtros_boletin"] > .card { padding: 24px 18px; }
  body.ds-page[data-ds-page="filtros_boletin"] h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { #ds-header * { transition: none !important; } }
@media print { #ds-header, #ds-footer { display: none; } body.ds-page { padding-top: 0; } }
