:root {
  --navy: #0b1f4d;
  --blue: #2457d6;
  --cyan: #30bce8;
  --ink: #15213b;
  --muted: #667085;
  --surface: #f4f7fb;
  --line: #dce3ee;
  --green: #14804a;
  --red: #c4314b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--surface);
}
button,
select,
input {
  font: inherit;
}
.site-header {
  position: relative;
  min-height: 168px;
  padding: 28px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  gap: 32px;
  color: #fff;
  background: linear-gradient(120deg, #071631, #123c88);
  box-shadow: 0 8px 30px #07163133;
}






/* =========================
   HEADER COMPACTO
========================= */

.site-header.compact {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 8px 18px;
    min-height: 65px;

   
}

/* Logo */
.site-header.compact .logo {
    width: 95px;
    height: auto;
    flex-shrink: 0;
}

/* Contenedor de textos */
.site-header.compact > div {
    flex: 1;
    min-width: 0;
}

/* Mapa comercial */
.site-header.compact .eyebrow {
    display: block;
    font-size: 11px;
    line-height: 1.1;
    margin-bottom: 2px;
}

/* Áreas de exposición */
.site-header.compact .hero-title {
    font-size: 20px;
    line-height: 1.1;
    margin: 0;
}

/* Descripción */
.site-header.compact p {
    font-size: 12px;
    line-height: 1.2;
    margin: 3px 0 0;
}

/* Botón login */
.site-header.compact .icon-access-link {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
}









.icon-access-link {
  width: 58px;
  height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.access-link,
.access-link:visited {
  color: #fff;
  text-decoration: none;
}
.back-link,
.back-link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #ffffff;
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 8px 20px #07163122;
}
.back-link:hover,
.back-link:focus {
  color: #123c88;
  background: #eef6ff;
}

.login-text {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
.landing {
  width: min(1180px, calc(100% - 32px));
  margin: 48px auto;
}
.hero-copy {
  text-align: center;
  margin-bottom: 28px;
}
.hero-copy h2 {
  font-size: 2rem;
  margin: 0;
}
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.area-card {
  position: relative;
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 25px #1b315014;
  transition: 0.2s;
}
.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px #1b315024;
}
.area-card.featured {
  color: #fff;
  background: linear-gradient(145deg, #133575, #2470d7);
}
.area-card h3 {
  font-size: 1.5rem;
  margin: 32px 0 8px;
}
.area-key {
  position: absolute;
  top: 20px;
  right: 20px;
  font-weight: 900;
  opacity: 0.55;
}
.area-card span:last-child {
  font-weight: 700;
}
footer {
  text-align: center;
  padding: 30px;
  color: var(--muted);
}
.footer-access-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 14px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  text-decoration: none;
  font-weight: 800;
}
.footer-access-link:hover {
  border-color: #2457d6;
  color: #2457d6;
}
.pavilion-layout {
  width: min(1400px, calc(100% - 32px));
  margin: 28px auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
}
.availability,
.map-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.filters {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}
.filters select {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stand-list {
  display: grid;
  gap: 7px;
  max-height: 70vh;
  overflow: auto;
}
.stand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}
.stand-row small {
  display: block;
  color: var(--muted);
}
.stand-row em,
.status {
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 800;
  border-radius: 999px;
  padding: 5px 8px;
}
.free {
  color: var(--green);
  background: #dcfce7;
}
.busy {
  color: var(--red);
  background: #ffe3e8;
}
.public-map {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #edf0f5;
  transform-origin: top left;
}
.public-map > img,
.public-map > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.public-map > img {
  object-fit: fill;
}
.map-stand {
  stroke-width: 2;
  cursor: pointer;
  transition: 0.15s;
  vector-effect: non-scaling-stroke;
}
.map-stand.available {
  fill: #22c55e55;
  stroke: #08783b;
}
.map-stand.occupied {
  fill: #e23a5855;
  stroke: #b11837;
}
.map-stand:hover {
  fill: #20bde899;
  stroke: #fff;
}
.legend {
  display: flex;
  gap: 20px;
  margin-top: 14px;
}
.legend i {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: -3px;
}
.legend .available {
  background: #22c55e;
}
.legend .occupied {
  background: #e23a58;
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 28px;
  min-width: min(380px, 90vw);
  box-shadow: 0 30px 80px #0006;
}
dialog::backdrop {
  background: #071631aa;
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 9px;
  border: 0;
  background: none;
  font-size: 2rem;
  cursor: pointer;
}
.company-logo {
  display: block;
  max-width: 220px;
  max-height: 110px;
  margin: 18px auto;
  object-fit: contain;
}






/* =========================
   MÓVIL
========================= */

@media (max-width: 600px) {

    .site-header.compact {
        display: flex;
        flex-direction: row;
        align-items: center;

        gap: 7px;
        padding: 6px 8px;

        min-height: 52px;

        /* obliga a mantener una sola línea */
        flex-wrap: nowrap;
    }
     /* Logo más pequeño */
    .site-header.compact .logo {
        width: 58px;
        flex-shrink: 0;
    }

    /* Texto ocupa el espacio disponible */
    .site-header.compact > div {
        flex: 1;
        min-width: 0;
    }

    .site-header.compact .eyebrow {
        font-size: 8px;
        margin: 0 0 1px;
        line-height: 1;
    }
    .site-header.compact .hero-title {
        font-size: 14px;
        line-height: 1.05;
        margin: 0;
        white-space: nowrap;
    }

    .site-header.compact p {
        font-size: 8px;
        line-height: 1.1;
        margin: 2px 0 0;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Login a la derecha */
    .site-header.compact .icon-access-link {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }








  .login-text {
    font-size: 0.68rem;
  }
  .footer-access-link {
    display: flex;
    width: fit-content;
    margin: 12px auto 0;
  }
  .pavilion-layout {
    grid-template-columns: 1fr;
  }
  .stand-list {
    max-height: 260px;
  }
}
