/* === Reset === */ 
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Montserrat', sans-serif;
  background: #EDE9D1;
  overflow-x: hidden;
}
/* === Contenedor principal (alto completo en escritorio) === */
.baston-box {
  position: relative;
  background: #EDE9D1;
  padding: 25px;
  z-index: 1;
  overflow: visible;
  /*height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;*/
}
.baston-box::before {
  content: "";
  position: absolute;
  inset: -20px; /* sobresale para cubrir bordes */
  background-image: repeating-linear-gradient(
    45deg,
    #E72331 0 40px,
    #EDE9D1 40px 80px
  );
  z-index: -1;
}
.baston-box::after {
  content: "";
  position: absolute;
  inset: 25px; /* grosor del borde bastón */
  background: #EDE9D1;
  z-index: -1;
}
/*.container {
  width: 100%;
  height: 100%;
  border: 2px solid #E72331;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 20px;
  overflow: hidden;
}
.container > * {
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}*/
.container{
  position: relative;
  width: 100%;
  /*max-width: 1200px;*/
  margin: 0 auto;
  height: auto;
  display: flow-root;
}
.left{
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
}
.right{
  position: relative;
  top: 0;
  right: 1%;
  width: 50%;
  margin-left: auto;
  height: auto;
  z-index: 2;
  padding: 4% 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 2vw, 22px);
}
.logo{
  left: 8%;
  position: absolute;
  top: 3%;
  width: 68%;
}
.monster{
  height: 100%;
  /*width: 100%;*/
}
.monsterM{
  display: none;
}
.title {
  font-size: clamp(32px, 4vw, 50px);
  margin-top: 0;
  line-height: 1.1;

  color: #C20508;
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  /*font-size: 50px;
  margin-top: 8%;*/
  text-align: center;
}
.title span{
  display: block;
}
.ribbon{
  background-image: url("../img/cinta.png");
  background-position: center;
  background-repeat: no-repeat;
  color: #FFF;
  /*font-size: 20px;*/
  /*margin: 16px auto 0;
  padding: 8px 40px 64px;*/
  text-align: center;
  /*width: 82%;*/

  font-size: clamp(14px, 1.6vw, 20px);
  padding: clamp(8px, 1.5vw, 14px)
           clamp(24px, 3vw, 40px)
           clamp(40px, 5vw, 64px);
  width: 100%;
  max-width: 520px;
}
#formulario{
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vw, 18px);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: bold;
  color: #C20508;
}
/* Filas */
.row1,.row2{
  display: flex;
  gap: clamp(8px, 1.5vw, 16px);
}
.row1 label,.row1 select,.row2 label{
  width: 50%;
}
#formulario input,#formulario select,#formulario textarea{
  background-color: #fff;
  border: 0;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  border-radius: 15px;
  width: 100%;
  font-size: clamp(14px, 1.4vw, 18px);
  padding: clamp(10px, 1.5vw, 15px);
  /*font-size: 18px;
  padding: 15px;*/
}
textarea{
  height: clamp(140px, 22vh, 226px);
  /*height: 226px;
  margin: 20px 0 0;
  width: 100%;*/
}
.check{
  font-size: clamp(13px, 1.2vw, 16px);
}
#publicityCheckbox{
  width: 4% !important;
}
.btn{
  background-color: #E72331;
  border: 3px solid #7E0217;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  border-radius: 15px;
  color: #FFF;
  display: block;
  /*font-size: 18px;*/
  font-weight: 600;
  margin: 0 auto;
  /*padding: 15px;*/

  font-size: clamp(15px, 1.4vw, 18px);
  padding: clamp(12px, 1.6vw, 16px);
  padding: clamp(12px, 1.6vw, 16px) clamp(56px, 6vw, 60px);
  max-width: 320px;
}
/*.row1 label{
  display: inline-block;
  width: 48%;
}
.row1 input{
  width: 100%;
}
.row2 label{
  display: inline-block;
}
.row2 label:first-of-type{
  width: 59%;
}
.row2 label:last-of-type{
  width: 39%;
}
.row2 input{
  width: 100%;
}
input{
  margin: 14px 0;
}
.check label{
  font-weight: 500;
}*/
/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.modal.active {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

/* Caja del modal */
.modal-content {
  position: relative;
  max-width: 520px;
  margin: 10vh auto;
  background: #EFEED6;
  border: 10px solid transparent;
  border-image: repeating-linear-gradient(
    45deg,
    #2F5E1B 0 15px,
    #EFEED6 15px 30px
  ) 20;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
/* Botón cerrar */
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #2F5E1B;
}

/* Imagen */
.modal-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Texto */
.modal-text {
  color: #C20508;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  position: absolute;
  top: 62%;
}
/* Móvil */
@media (max-width: 768px) {
  body {
    overflow: auto;
  }
  .baston-box {
    height: auto;
    min-height: 100vh;
    display: block;
    padding: 25px;
  }
  .container {
    position: relative;
    max-width: 100%;
    height: auto;
  }
  .left,.right {
    position: relative;
    width: 100%;
    height: auto;
    left: 0;
    right: 0;
  }
  .logo {
    display: block;
    left: 0;
    margin: 0 auto;
    position: relative;
    width: 70%;
  }
  .monster{
    display: none;
  }
  .monsterM{
    display: block;
    width: 100%;
  }
  .right {
    margin-top: -28%;
  }
  .row1,.row2{
    display: block;
  }
  .title {
    font-size: 54px;
    margin-top: 0;
  }
  .ribbon {
    padding: 12px 84px 65px;
  }
  #formulario{
    padding: 20px 40px 50px;
  }
  #formulario label{
    width: 100% !important;
  }
  textarea {
    height: 180px;
  }
  .modal {
    width: 95%;
  }
  .modal-text{
    font-size: 16px;
  }
}
