* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;

  font-family: Arial, sans-serif;

  background:
    linear-gradient(
      180deg,
      #edf9fd 40%,
      #d9f0f8 48%,
      #b9dfed 55%,
      #7ebbd2 78%,
      #397f9f 100%
    );

  background-attachment: fixed;

  color: #1f2933;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* CONTENEDOR */

.reserva-container {
  width: 100%;
  min-height: 100vh;
}

/* =========================
   LANDING - HEADER
========================= */

.landing-header {
  height: 64px;

  position: relative;

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

  padding: 0 20px;

  background: rgba(255, 255, 255, 0.96);

  z-index: 20;
}

.landing-marca {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.5px;

  color: #0f1b30;
}

.landing-menu {
  width: 44px;
  height: 44px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  border: none;
  background: transparent;

  cursor: pointer;
}

.landing-menu span {
  display: block;

  width: 27px;
  height: 3px;

  border-radius: 999px;

  background: #0f1b30;
}

/* PASO */

.paso-reserva {
  width: calc(100% - 40px);
  max-width: 720px;
  margin: 32px auto 60px;
  background: #ffffff;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.paso-encabezado {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.paso-numero {
  width: 34px;
  height: 34px;
  flex-shrink: 0;

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

  border-radius: 50%;
  background: #1479a8;
  color: white;
  font-weight: bold;
}

.paso-encabezado h2 {
  font-size: 23px;
  margin-bottom: 5px;
}

.paso-encabezado p {
  color: #73808a;
  line-height: 1.4;
}

/* SERVICIOS */

.servicios-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.servicio-card {
  width: 100%;
  border: 1px solid #dce5ea;
  background: white;
  border-radius: 14px;

  padding: 18px;

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

  text-align: left;
  cursor: pointer;

  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.servicio-card:hover {
  border-color: #1479a8;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.servicio-contenido {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.servicio-contenido strong {
  font-size: 17px;
  color: #27343c;
}

.servicio-contenido span {
  color: #76838c;
  font-size: 14px;
  line-height: 1.4;
}

.servicio-flecha {
  font-size: 30px;
  color: #1479a8;
  line-height: 1;
}

/* CELULAR */

@media (max-width: 600px) {
  .paso-reserva {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .paso-encabezado h2 {
    font-size: 21px;
  }

  .servicio-card {
    padding: 17px 15px;
  }
}

.oculto {
  display: none;
}

/* =========================
   LANDING - PORTADA
========================= */

.inicio-reserva {
  position: relative;

  width: 100%;

  min-height: calc(100svh - 64px);

  overflow: hidden;

  background-image:
    url("assets/pileta-fondo-mobile.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.inicio-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(0, 37, 67, 0.05),
      rgba(0, 26, 48, 0.24) 55%,
      rgba(0, 17, 33, 0.72) 100%
    );

  pointer-events: none;
}

.inicio-contenido {
  position: relative;
  z-index: 2;

  width: 100%;
  min-height: calc(100svh - 76px);

  padding: 34px 20px 20px;

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


/* TARJETA PRINCIPAL */

.inicio-card {
  width: 100%;
  max-width: 500px;

  padding: 22px 18px 20px;

  text-align: center;

  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 26px;

  background: rgba(14, 89, 126, 0.35);

  box-shadow:
    0 20px 50px rgba(0, 24, 45, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.inicio-card h1 {
  margin-bottom: 10px;

  color: #ffffff;

  font-size: clamp(32px, 9vw, 46px);
  line-height: 1.03;
  letter-spacing: -1.5px;
}

.inicio-card p {
  max-width: 330px;

  margin: 0 auto 18px;

  color: rgba(255, 255, 255, 0.9);

  font-size: 16px;
  line-height: 1.45;
}


/* CTA */

.btn-iniciar-reserva {
  width: 100%;

  border: 1px solid rgba(90, 221, 245, 0.8);

  background: #082a5e;
  color: #ffffff;

  padding: 13px 20px;
  border-radius: 15px;

  font-size: 17px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.4px;

  cursor: pointer;

  box-shadow:
    0 10px 24px rgba(2, 24, 58, 0.28);

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.btn-iniciar-reserva:hover {
  transform: translateY(-2px);
  background: #0b3675;
}


/* MARCA INFERIOR */

.inicio-marca-inferior {
  width: 100%;

  margin-top: 26px;

  display: flex;
  flex-direction: column;
  align-items: center;

  color: #ffffff;
  text-align: center;
}

.inicio-logo {
  width: 95px;
  height: auto;

  display: block;

  margin-bottom: 8px;
}

.inicio-marca-inferior > p {
  margin-bottom: 14px;

  color: rgba(255, 255, 255, 0.92);

  font-size: 17px;
  font-weight: 600;
}

.inicio-redes {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 18px;
}

.inicio-red-social {
  width: 27px;
  height: 27px;

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

  color: white;

  transition: transform 0.2s ease;
}

.inicio-red-social:hover {
  transform: translateY(-2px);
}

.inicio-red-social img,
.inicio-red-social svg {
  width: 100%;
  height: 100%;
}

.inicio-red-social img {
  object-fit: contain;
}

.inicio-firma {
  margin-top: 12px;

  display: flex;
  flex-direction: column;
  align-items: center;

  color: rgba(255, 255, 255, 0.72);
}

.inicio-firma span {
  font-size: 11px;
  font-weight: 600;
}

.inicio-firma small {
  margin-top: 1px;

  font-size: 9px;
  color: rgba(255, 255, 255, 0.6);
}

/* FORMULARIOS */

.form-reserva {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-reserva label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 600;
  color: #33434d;
}

.campo-reserva {
  width: 100%;
  padding: 13px 14px;

  border: 1px solid #d5e0e6;
  border-radius: 10px;

  background: white;
  color: #27343c;

  outline: none;
}

.campo-reserva:focus {
  border-color: #1479a8;
}

.btn-volver {
  margin-top: 22px;
  border: none;
  background: transparent;
  color: #1479a8;

  font-weight: 600;
  cursor: pointer;
}

/* HORARIOS */

.horarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.btn-horario {
  border: 1px solid #d5e0e6;
  background: white;
  color: #27343c;

  padding: 13px 10px;
  border-radius: 10px;

  font-weight: 600;
  cursor: pointer;
}

.btn-horario:hover:not(.seleccionado) {
  border-color: #1479a8;
  color: #1479a8;
  background: #eef7fa;
}

.btn-horario.seleccionado {
  background: #1479a8;
  border-color: #1479a8;
  color: #ffffff;
}

.mensaje-horarios {
  padding: 15px;
  border-radius: 10px;
  background: #f4f7f9;
  color: #66737d;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .horarios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* SELECTOR VERTICAL DE FECHAS */
/* =========================
   CALENDARIO DE RESERVA
========================= */

.calendario-reserva {
  width: 100%;
  margin-top: 8px;

  border: 1px solid #dce5ea;
  border-radius: 16px;

  background: #ffffff;

  padding: 18px;
}


/* CABECERA DEL MES */

.calendario-header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;

  margin-bottom: 18px;
}

.calendario-header h3 {
  text-align: center;
  font-size: 19px;
  color: #27343c;

  text-transform: capitalize;
}

.calendario-flecha {
  width: 38px;
  height: 38px;

  border: none;
  border-radius: 10px;

  background: #f4f7f9;
  color: #1479a8;

  font-size: 28px;
  line-height: 1;

  cursor: pointer;
}

.calendario-flecha:hover {
  background: #eaf4f8;
}

.calendario-flecha:disabled {
  opacity: 0.3;
  cursor: default;
}


/* DÍAS DE LA SEMANA */

.calendario-semana {
  display: grid;
  grid-template-columns: repeat(7, 1fr);

  margin-bottom: 8px;
}

.calendario-semana span {
  text-align: center;

  font-size: 12px;
  font-weight: 700;

  color: #7a8790;
}


/* GRILLA */

.calendario-dias {
  display: grid;
  grid-template-columns: repeat(7, 1fr);

  gap: 6px;
}


/* DÍA */

.calendario-dia {
  position: relative;

  aspect-ratio: 1;

  border: none;
  border-radius: 10px;

  background: transparent;

  color: #33434d;

  font-weight: 600;
  font-size: 14px;

  cursor: pointer;

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

.calendario-dia:hover:not(:disabled):not(.seleccionado) {
  background: #eef7fa;
  color: #1479a8;
}

.calendario-dia.hoy.seleccionado::after {
  color: white;
}
/* HOY */

.calendario-dia.hoy::after {
  content: "Hoy";

  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);

  font-size: 9px;
  font-weight: 700;
  line-height: 1;

  color: #1479a8;
}

@media (max-width: 768px) {
  .calendario-dia.hoy::after {
    top: 2px;
  }
}
/* SELECCIONADO */

.calendario-dia.seleccionado {
  background: #1479a8;
  color: #ffffff;
}


/* NO DISPONIBLE */

.calendario-dia:disabled {
  color: #c5cdd2;
  cursor: default;
}


/* ESPACIOS VACÍOS DEL MES */

.calendario-vacio {
  aspect-ratio: 1;
}


/* BOTÓN CONTINUAR */

.btn-continuar-fecha {
  width: 100%;
  margin-top: 18px;
}

.btn-continuar-fecha:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}


/* CELULAR */

@media (max-width: 480px) {

  .calendario-reserva {
    padding: 14px;
  }

  .calendario-dia {
    font-size: 13px;
    border-radius: 8px;
  }

  .calendario-dias {
    gap: 4px;
  }

}

/* CARGA DE RESERVA */

.spinner-reserva {
  width: 18px;
  height: 18px;

  display: inline-block;

  margin-right: 8px;

  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;

  vertical-align: middle;

  animation: girar-spinner 0.7s linear infinite;
}

.spinner-reserva.oculto {
  display: none;
}

@keyframes girar-spinner {
  to {
    transform: rotate(360deg);
  }
}

#btn-finalizar-reserva:disabled {
  cursor: wait;
  opacity: 0.8;
}

/* =========================
   MENÚ PÚBLICO
========================= */

.menu-publico {
  position: fixed;
  inset: 0;

  z-index: 100;

  pointer-events: none;
}

.menu-publico-overlay {
  position: absolute;
  inset: 0;

  background: rgba(5, 18, 35, 0.48);

  opacity: 0;

  transition: opacity 0.25s ease;
}

.menu-publico-panel {
  position: absolute;
  top: 0;
  right: 0;

  width: min(78vw, 340px);
  height: 100%;

  padding: 24px 22px;

  display: flex;
  flex-direction: column;

  background: #ffffff;

  box-shadow:
    -12px 0 35px rgba(15, 27, 48, 0.18);

  transform: translateX(100%);

  transition: transform 0.25s ease;
}


/* ESTADO ABIERTO */

.menu-publico.abierto {
  pointer-events: auto;
}

.menu-publico.abierto
.menu-publico-overlay {
  opacity: 1;
}

.menu-publico.abierto
.menu-publico-panel {
  transform: translateX(0);
}


/* HEADER DEL MENÚ */

.menu-publico-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 34px;
}

.menu-publico-header span {
  font-size: 20px;
  font-weight: 700;

  color: #0f1b30;
}

#cerrar-menu-publico {
  width: 40px;
  height: 40px;

  border: none;
  background: transparent;

  color: #0f1b30;

  font-size: 30px;
  line-height: 1;

  cursor: pointer;
}


/* NAVEGACIÓN */

.menu-publico-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-publico-nav button,
.menu-publico-nav a {
  width: 100%;

  padding: 14px 4px;

  border: none;
  background: transparent;

  color: #0f1b30;

  font-family: inherit;
  font-size: 17px;
  font-weight: 600;

  text-align: left;
  text-decoration: none;

  cursor: pointer;

  border-bottom: 1px solid #e7edf2;
}

.menu-publico-nav button:hover,
.menu-publico-nav a:hover {
  color: #1479a8;
}


/* FIRMA */

.menu-publico-firma {
  margin-top: auto;
  padding-top: 22px;

  display: flex;
  flex-direction: column;

  border-top: 1px solid #e7edf2;

  color: #52627a;
}

.menu-publico-firma span {
  font-size: 13px;
  font-weight: 600;
}

.menu-publico-firma small {
  margin-top: 2px;

  font-size: 10px;
  color: #7a8797;
}

