/* =========================================================
   MÁLAGA STAYS · ÁREA DE HUÉSPEDES
   guest/css/access.css
   ========================================================= */

:root {
  --deep: #073b4c;
  --sea: #0d7187;
  --ink: #12343d;
  --muted: #65777c;
  --foam: #edf8f8;
  --line: #dbe8e8;
  --white: #ffffff;
  --sand: #f7f3eb;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--ink);
  background: #f6fbfb;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}


/* =========================================================
   NAVEGACIÓN
   ========================================================= */

.access-top {
  position: fixed;
  z-index: 100;

  top: 0;
  left: 0;
  right: 0;

  height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 max(22px, 5vw);

  background: rgba(255, 255, 255, .94);

  border-bottom: 1px solid rgba(7, 59, 76, .08);

  backdrop-filter: blur(14px);
}


.brand {
  display: flex;
  align-items: center;

  gap: 12px;

  color: var(--deep);

  font-size: .95rem;
  font-weight: 900;

  letter-spacing: .1em;
}


.mark {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  flex: 0 0 38px;

  border-radius: 50%;

  background: var(--deep);

  color: white;

  font-size: 20px;
  font-weight: 900;
}


.top-right {
  display: flex;
  align-items: center;

  gap: 25px;
}


.home-link {
  color: #60757a;

  font-size: .86rem;
  font-weight: 750;

  transition: color .2s ease;
}


.home-link:hover {
  color: var(--deep);
}


/* =========================================================
   IDIOMAS
   ========================================================= */

.lang {
  display: flex;
  align-items: center;

  padding: 4px;

  border: 1px solid #dce7e7;
  border-radius: 999px;

  background: #edf3f3;
}


.lang button {
  display: flex;
  align-items: center;

  gap: 6px;

  padding: 8px 11px;

  border: 0;
  border-radius: 999px;

  background: transparent;

  color: #748589;

  font-size: .78rem;
  font-weight: 800;

  cursor: pointer;
}


.lang button.active {
  background: white;

  color: var(--deep);

  box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
}


/* =========================================================
   PÁGINA PRINCIPAL
   ========================================================= */

.guest-access {
  position: relative;

  min-height: 100vh;

  display: flex;
  align-items: center;

  padding:
    135px max(24px, 6vw)
    80px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(13, 113, 135, .11),
      transparent 34%
    ),
    radial-gradient(
      circle at 10% 90%,
      rgba(211, 180, 122, .13),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #fafdfd 0%,
      #eef8f8 55%,
      #f8f5ef 100%
    );
}


/* =========================================================
   DECORACIÓN
   ========================================================= */

.guest-access-bg {
  position: absolute;
  inset: 0;

  pointer-events: none;
}


.guest-orb {
  position: absolute;

  display: block;

  border-radius: 50%;
}


.guest-orb-one {
  width: 460px;
  height: 460px;

  top: -220px;
  right: -140px;

  background: rgba(13, 113, 135, .07);
}


.guest-orb-two {
  width: 390px;
  height: 390px;

  left: -170px;
  bottom: -210px;

  background: rgba(211, 180, 122, .09);
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.guest-access-shell {
  position: relative;

  z-index: 2;

  width: min(1080px, 100%);

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    430px;

  gap: clamp(50px, 7vw, 95px);

  align-items: center;
}


/* =========================================================
   COLUMNA IZQUIERDA
   ========================================================= */

.guest-access-intro {
  max-width: 570px;
}


.eyebrow {
  margin-bottom: 16px;

  color: var(--sea);

  font-size: .74rem;
  font-weight: 900;

  letter-spacing: .18em;

  text-transform: uppercase;
}


.guest-access-intro h1 {
  margin: 0;

  color: var(--deep);

  font-size: clamp(3.2rem, 7vw, 5.8rem);

  line-height: .93;

  letter-spacing: -.055em;
}


.guest-access-lead {
  max-width: 540px;

  margin:
    25px 0 0;

  color: var(--muted);

  font-size: 1.08rem;

  line-height: 1.75;
}


/* =========================================================
   BENEFICIOS
   ========================================================= */

.guest-access-benefits {
  width: 100%;
  max-width: 560px;

  margin-top: 34px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 11px;
}


.guest-benefit {
  width: 100%;
  min-height: 46px;

  display: flex;
  align-items: center;

  gap: 9px;

  padding: 10px 14px;

  border: 1px solid rgba(7, 59, 76, .10);
  border-radius: 999px;

  background: rgba(255, 255, 255, .68);

  color: #47656b;

  font-size: .82rem;
  font-weight: 750;

  white-space: nowrap;

  backdrop-filter: blur(5px);
}


.guest-benefit-icon {
  flex: 0 0 auto;

  font-size: .95rem;
}


/* =========================================================
   TARJETA DE ACCESO
   ========================================================= */

.guest-login-card {
  width: 100%;

  padding: 38px;

  background: rgba(255, 255, 255, .97);

  border: 1px solid rgba(214, 231, 231, .95);
  border-radius: 26px;

  box-shadow:
    0 28px 70px rgba(7, 59, 76, .13);
}


/* =========================================================
   CANDADO
   ========================================================= */

.guest-login-icon {
  width: 56px;
  height: 56px;

  display: grid;
  place-items: center;

  margin-bottom: 23px;

  border-radius: 17px;

  background: var(--deep);

  color: white;

  box-shadow:
    0 12px 26px rgba(7, 59, 76, .20);
}


.guest-login-icon svg {
  width: 26px;
  height: 26px;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.7;

  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =========================================================
   TEXTO TARJETA
   ========================================================= */

.guest-login-heading h2 {
  margin: 0 0 8px;

  color: var(--deep);

  font-size: 1.55rem;

  letter-spacing: -.025em;
}


.guest-login-heading p {
  margin: 0;

  color: var(--muted);

  font-size: .9rem;

  line-height: 1.65;
}


/* =========================================================
   FORMULARIO
   ========================================================= */

.guest-access-form {
  margin-top: 28px;
}


.guest-access-form label {
  display: block;

  margin-bottom: 9px;

  color: var(--deep);

  font-size: .82rem;
  font-weight: 850;
}


.guest-code-wrapper {
  position: relative;
}


.guest-code-icon {
  position: absolute;

  top: 50%;
  left: 17px;

  transform: translateY(-50%);

  color: #8b9fa3;

  font-weight: 900;
}


#guestCode {
  width: 100%;
  height: 58px;

  padding:
    0 17px 0 43px;

  outline: 0;

  border: 1px solid #d6e5e5;
  border-radius: 14px;

  background: #f9fcfc;

  color: var(--deep);

  font-size: 1rem;
  font-weight: 800;

  letter-spacing: .06em;

  text-transform: uppercase;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}


#guestCode::placeholder {
  color: #a1b0b3;

  font-weight: 600;

  letter-spacing: .02em;
}


#guestCode:focus {
  border-color: #73bbc6;

  background: white;

  box-shadow:
    0 0 0 4px rgba(13, 113, 135, .10);
}


.guest-code-help {
  display: block;

  margin-top: 8px;

  color: #839497;

  font-size: .74rem;

  line-height: 1.5;
}


/* =========================================================
   BOTÓN
   ========================================================= */

.guest-access-button {
  width: 100%;
  min-height: 56px;

  margin-top: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  border: 0;
  border-radius: 14px;

  background: var(--deep);

  color: white;

  font-size: .9rem;
  font-weight: 850;

  cursor: pointer;

  box-shadow:
    0 12px 25px rgba(7, 59, 76, .18);

  transition:
    transform .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}


.guest-access-button svg {
  width: 18px;
  height: 18px;

  fill: none;

  stroke: currentColor;
  stroke-width: 2;

  stroke-linecap: round;
  stroke-linejoin: round;
}


.guest-access-button:hover {
  background: #095166;

  transform: translateY(-2px);

  box-shadow:
    0 16px 30px rgba(7, 59, 76, .22);
}


.guest-access-button:disabled {
  opacity: .65;

  cursor: wait;

  transform: none;
}


/* =========================================================
   MENSAJES
   ========================================================= */

.guest-access-message {
  min-height: 21px;

  margin-top: 12px;

  text-align: center;

  font-size: .8rem;
  font-weight: 750;
}


.guest-access-message.error {
  color: #a43d3d;
}


.guest-access-message.success {
  color: #247158;
}


/* =========================================================
   AYUDA
   ========================================================= */

.guest-login-divider {
  margin: 24px 0;

  height: 1px;

  background: #e3ecec;
}


.guest-login-divider span {
  display: none;
}


.guest-access-help {
  display: flex;

  gap: 12px;

  align-items: flex-start;
}


.guest-access-help-icon {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  flex: 0 0 38px;

  border-radius: 12px;

  background: var(--foam);

  font-size: .95rem;
}


.guest-access-help strong {
  display: block;

  color: var(--deep);

  font-size: .82rem;
}


.guest-access-help p {
  margin:
    3px 0 0;

  color: var(--muted);

  font-size: .77rem;

  line-height: 1.55;
}


/* =========================================================
   FOOTER
   ========================================================= */

.access-footer {
  padding: 35px 24px;

  background: #052f3b;

  color: #a9c4c9;

  text-align: center;
}


.access-footer .footbrand {
  color: white;

  font-size: .95rem;
  font-weight: 900;

  letter-spacing: .12em;
}


.access-footer p {
  margin:
    7px 0 3px;

  font-size: .82rem;
}


.access-footer small {
  font-size: .74rem;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .guest-access {
    padding:
      125px 24px 70px;
  }


  .guest-access-shell {
    max-width: 620px;

    grid-template-columns: 1fr;

    gap: 42px;
  }


  .guest-access-intro {
    max-width: none;

    text-align: center;
  }


  .guest-access-lead {
    margin:
      22px auto 0;
  }


  .guest-access-benefits {
    margin-left: auto;
    margin-right: auto;
  }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

  .access-top {
    height: 68px;

    padding: 0 15px;
  }


  .brand {
    gap: 9px;

    font-size: .76rem;
  }


  .mark {
    width: 34px;
    height: 34px;

    flex-basis: 34px;
  }


  .home-link {
    display: none;
  }


  .lang-name {
    display: none;
  }


  .lang button {
    padding: 7px 9px;

    font-size: 1rem;
  }


  .guest-access {
    min-height: auto;

    padding:
      105px 17px 52px;
  }


  .guest-access-shell {
    gap: 32px;
  }


  .guest-access-intro h1 {
    font-size:
      clamp(2.75rem, 14vw, 4rem);
  }


  .guest-access-lead {
    font-size: .96rem;
  }


  .guest-access-benefits {
    display: none;
  }


  .guest-login-card {
    padding: 27px 21px;

    border-radius: 21px;
  }


  .guest-login-icon {
    width: 50px;
    height: 50px;

    margin-bottom: 20px;

    border-radius: 15px;
  }


  .guest-login-heading h2 {
    font-size: 1.35rem;
  }


  #guestCode {
    height: 55px;
  }


  .guest-access-button {
    min-height: 54px;
  }

}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #64becb;
  outline-offset: 3px;
}


@media (prefers-reduced-motion: reduce) {

  * {
    transition: none !important;
  }

}