:root {
  --color-1: #8c5e44;
  --color-2: #b49073;
  --color-3: #d68b75;
  --color-4: #fdfcf4;

  --fuente-1: "Playfair Display", serif;
  --fuente-2: "Open Sans", sans-serif;
}

/* BODY */
body.welcome-page {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--color-4);

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

/* CONTENEDOR PRINCIPAL */
.welcome-page .modal-dialog {
  width: 100%;
  max-width: 620px;
  margin: -40px auto 0 auto;
}

/* QUITAR CAJA BLANCA */
.welcome-page .modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* CUERPO */
.welcome-page .modal-body {
  text-align: center;
  padding: 30px 20px;
}

/* TEXTO */
.welcome-page .modal-body p {
  position: relative;
  top: -15px;

  text-align: center;
  font-family: var(--fuente-1);
  text-transform: uppercase;
  font-size: 64px;
  line-height: 70px;
  padding: 5px 0;
  color: var(--color-1);
  margin: 0;
  width: 100%;

  background: url("../img/ampersand.svg") center center no-repeat;
  background-size: 104px;
  background-position-y: 108px;
}

/* SUBTEXTO */
.welcome-page .modal-body p span {
  display: inline-block;
  font-size: 24px;
  line-height: 24px;
  font-family: var(--fuente-2);
  color: var(--color-3);
  text-transform: none;
  margin-bottom: 15px;
}

/* IMAGENES */
.welcome-page .adorno {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.welcome-page .adorno-1 {
  border-bottom: 1px solid var(--color-2);
  margin-bottom: 20px;
}

.welcome-page .adorno-2 {
  border-top: 1px solid var(--color-2);
  margin-top: 20px;
}

.btn-continuar {
  display: inline-block;
  padding: 14px 45px;
  border-radius: 40px;
  background: var(--color-3);
  color: white;
  font-family: var(--fuente-2);
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: 0.3s;
}

.btn-continuar:hover {
  background: var(--color-2);
  color: white;
  text-decoration: none;
}

.custom-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(253, 252, 244, 0.92);
  z-index: 9999;

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

.custom-modal.active {
  display: flex;
}

.hidden {
  display: none !important;
}

.custom-modal-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.custom-modal-content h2 {
  font-family: var(--fuente-1);
  color: var(--color-1);
  margin-bottom: 25px;
}

.custom-modal-content select {
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  border: 1px solid var(--color-2);
  font-family: var(--fuente-2);
  margin-bottom: 20px;
  font-size: 16px;
}

.custom-modal-content button {
  padding: 14px 35px;
  border: none;
  border-radius: 30px;
  background: var(--color-3);
  color: white;
  font-size: 16px;
  cursor: pointer;
}

#mensajeBienvenida {
  font-family: var(--fuente-1);
  color: var(--color-1);
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#mensajeBienvenida {
  display: none;
  font-size: 32px;
  color: var(--color-1);
  text-align: center;
  padding: 40px 20px;
  font-family: "Playfair Display", serif;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* 🔥 FORMULARIO VERTICAL (FIX REAL) */
.welcome-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}

/* INPUT */
.welcome-select {
  width: 100%;
  max-width: 260px;
  padding: 14px;
  border-radius: 25px;
  border: 1px solid var(--color-2);
  text-align: center;
  font-size: 16px;
  font-family: var(--fuente-2);
  color: var(--color-1);
}

/* BOTÓN */
.welcome-button {
  width: 100%;
  max-width: 200px;
  padding: 14px;
  border-radius: 30px;
  border: none;
  background: var(--color-3);
  color: white;
  font-size: 16px;
  cursor: pointer;
}

/* 👇 IMPORTANTE: evita que herede el estilo genérico */
.welcome-form .welcome-button {
  padding: 14px !important;
}

@media (max-width: 767px) {
  .welcome-page .modal-body p {
    font-size: 52px;
    line-height: 56px;
    background-size: 110px;
    background-position-y: 75px;
  }

  .welcome-page .modal-body p span {
    font-size: 22px;
    line-height: 24px;
  }

  .welcome-page .adorno {
    max-width: 320px;
  }

  .custom-modal {
    padding: 16px;
    box-sizing: border-box;
  }

  .custom-modal-content {
    width: 100%;
    max-width: 100%;
    padding: 24px 18px;
    border-radius: 18px;
    box-sizing: border-box;
  }

  .custom-modal-content p {
    font-family: var(--fuente-2);
    color: var(--color-1);
  }

  .custom-modal-content h2 {
    font-size: 26px;
    margin-bottom: 18px;
  }

  .custom-modal-content select {
    font-size: 16px;
    padding: 14px 16px;
  }

  .custom-modal-content button {
    width: 35%;
    padding: 14px;
    font-size: 16px;
  }

  #mensajeBienvenida {
    font-size: 26px;
    padding: 20px 10px;
    line-height: 1.3;
    max-width: 100%;
    overflow-wrap: break-word;
  }
}
