
.popup-container {
  float: right; /* Flota hacia la derecha y es ignorado por otros divs. */
    z-index: 10;
    width: 100%;
    height: 120%;
    background: rgba(0, 0, 0, 0.618);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.popup-container.active {
    opacity: 1;
    pointer-events: auto;
    transition: .4s ease;
}

.popup-container .popup-box {
    width: 600px;
    height: 50%;
    float: right; /* Flota hacia la derecha y es ignorado por otros divs. */
    background-color: white;
    border-radius: 10px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.47);
    transform: scale(0);
    padding: 18px 40px
}

.popup-box {
    background-image: url("../m/img/Xploded!.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.popup-container.active .popup-box {
    transform: scale(1);
    transition: .4s ease;
    transition-delay: .25s;
}


.popup-box .close-btn {
    position: relative; /* RELATIVE: Su posición inicial es referencia, pero no es afectado por padding. */
    float: right; /* Flota hacia la derecha y es ignorado por otros divs. */
    left: 25px; /* A partir de su punto inicial, se mueve a la izquierda. */
    bottom: 5px; /* A partir de su punto inicial, se mueve hacia abajo. */
    width: 30px;
    height: 30px;
    font-size: 20px;
    border-radius: 5px;
    border: none; /* Bordes */
    outline: none; /* Delineado del contenedor */
    background: rgb(255, 47, 0);
    color: white;
    cursor: pointer;
}

.popup-box .send-btn {
    left: 25px; /* A partir de su punto inicial, se mueve a la izquierda. */
    bottom: 5px; /* A partir de su punto inicial, se mueve hacia abajo. */
    width: 150px;
    height: 50px;
    font-size: 20px;
    border-radius: 5px;
    border: none; /* Bordes */
    outline: none; /* Delineado del contenedor */
    background: rgba(114, 1, 1, 0.749);
    color: white;
    cursor: pointer;
}

.grid-parent {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(6, 1fr);
grid-column-gap: 0px;
grid-row-gap: 0px;
height: 450px;

}

.title-section { grid-area: 1 / 1 / 2 / 5; padding: 5px 5px;}
.name-section { grid-area: 2 / 1 / 3 / 3; padding: 5px 5px;}
.lstname-section { grid-area: 2 / 3 / 3 / 5; padding: 5px 5px;}
.phone-section { grid-area: 3 / 1 / 4 / 3; padding: 5px 5px;}
.mail-section { grid-area: 3 / 3 / 4 / 5; padding: 5px 5px;}
.message-section { grid-area: 4 / 1 / 7 / 3; padding: 5px 5px;}
.confirm-section { grid-area: 4 / 3 / 5 / 5; padding: 5px 5px;}
.btn-section { grid-area: 5 / 3 / 7 / 5; padding: 5px 5px;}

.message-container {
    height: 20px;
    width: 20px;
    resize: none;

}

.name-container {
    position: relative; 
    width: 180px;
    height: fit-content;
}

.lstname-container {
    position: relative; 
    width: 180px;
    height: fit-content;
}

.phone-container {
    position: relative; 
    width: 180px;
    height: fit-content;
}

.mail-container {
    position: relative; 
    width: 180px;
    height: fit-content;
}

.confirm-section {
    display: flex;
    gap: 7px;
    color: white;
}

textarea {
    resize: none;
    border: none;
    outline: none;
    color: white;
    margin-top: 10px;
    padding: 5px;
    border-radius: 5px;
    border: none; /* Bordes */
    outline: none; /* Delineado del contenedor */
    background: rgba(0, 0, 0, 0.46);
}

input {
    border: none;
    position: relative;
    outline: none;
    width: fit-content;
    height: fit-content;
    padding: 5px;
    color: white;
    border-radius: 5px;
    border: none;
    outline: none;
    background: rgba(0, 0, 0, 0.46);
}

input::placeholder {
    color: rgb(255, 116, 116);
}

textarea::placeholder {
    color: rgb(255, 116, 116);
}

.checkbox-container {
  display: flex;
  gap: 20px;
  padding: 20px;
  margin: 15px;
  background: #f8fafc;
  border-radius: 16px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.ios-checkbox {
  --checkbox-size: 28px;
  --checkbox-color: #3b82f6;
  --checkbox-bg: #dbeafe;
  --checkbox-border: #93c5fd;

  top: 17px;
  position: relative;
  display: inline-block;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ios-checkbox input {
  display: none;
}

.checkbox-wrapper {
  position: relative;
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.checkbox-bg {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 3px solid var(--checkbox-border);
  background: rgba(255, 0, 0, 0.129);
  transition: all 0.2s ease;
}

.checkbox-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 80%;
  height: 80%;
  color: rgb(255, 0, 0);
  transform: scale(0);
  transition: all 0.2s ease;
}

.check-path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0.3s ease 0.1s;
}

/* Checked State */
.ios-checkbox input:checked + .checkbox-wrapper .checkbox-bg {
  background: var(--checkbox-color);
  border-color: var(--checkbox-color);
}

.ios-checkbox input:checked + .checkbox-wrapper .checkbox-icon {
  transform: scale(1);
}

.ios-checkbox input:checked + .checkbox-wrapper .check-path {
  stroke-dashoffset: 0;
}

/* Hover Effects */
.ios-checkbox:hover .checkbox-wrapper {
  transform: scale(1.05);
}

/* Active Animation */
.ios-checkbox:active .checkbox-wrapper {
  transform: scale(0.95);
}

/* Focus Styles */
.ios-checkbox input:focus + .checkbox-wrapper .checkbox-bg {
  box-shadow: 0 0 0 4px var(--checkbox-bg);
}

/* Color Themes */

.ios-checkbox.red {
  --checkbox-color: #ad0000;
  --checkbox-bg: #ff0000;
  --checkbox-border: #000000;
}

/* Animation */
@keyframes bounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.ios-checkbox input:checked + .checkbox-wrapper {
  animation: bounce 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media screen and (max-width: 800px) /* Hace que el estilo cambie cuando es movil */ {
  .left, .main, .right {
    width: 100%; /* The width is 100%, when the viewport is 800px or smaller */
  }

  .grid-parent {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr) 3fr 2fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
  }

    .title-section { grid-area: 1 / 1 / 2 / 5; padding: 5px 5px;}
    .name-section { grid-area: 2 / 1 / 3 / 5; padding: 5px 5px;}
    .lstname-section { grid-area: 3 / 1 / 4 / 5; padding: 5px 5px;}
    .phone-section { grid-area: 4 / 1 / 5 / 5; padding: 5px 5px;}
    .mail-section { grid-area: 5 / 1 / 6 / 5; padding: 5px 5px;}
    .message-section { grid-area: 6 / 1 / 7 / 3; padding: 5px 5px;}
    .confirm-section { grid-area: 7 / 1 / 8 / 2; padding: 75px 5px;}
    .btn-section { grid-area: 7 / 2 / 8 / 3; padding: 85px 5px;}

    .popup-container.active .popup-box {
    transform: scale(0.75);
    transition: .4s ease;
    transition-delay: .25s;
  }
  .message-container {
    position: relative; 
    height: 25px;
    width: 20px;
    resize: none;

}

.name-container {
    position: relative; 
    width: 180px;
    height: fit-content;
}

.lstname-container {
    position: relative; 
    width: 180px;
    height: fit-content;
}

.phone-container {
    position: relative; 
    width: 180px;
    height: fit-content;
}

.mail-container {
    position: relative; 
    width: 180px;
    height: fit-content;
}

textarea {
    resize: none;
    border: none;
    outline: none;
    color: white;
    margin-top: 10px;
    padding: 5px;
    border-radius: 5px;
    width: 300px;
    border: none; /* Bordes */
    outline: none; /* Delineado del contenedor */
    background: rgba(0, 0, 0, 0.46);
}

.popup-container {
    height: 135%;
}

input {
    border: none;
    outline: none;
    padding: 5px;
    width: 300px;
    height: 35px;
    color: white;
    border-radius: 5px;
    border: none;
    outline: none;
    background: rgba(0, 0, 0, 0.46);
}

.popup-container h1 {
    padding: 0%;
}

}