/* Fonts */
@font-face {
    font-family: "DMSans-Medium";
    src: url(../font/DMSans-Medium.ttf);
}

@font-face {
    font-family: "DMSans-Regular";
    src: url(../font/DMSans-Regular.ttf);
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    color: #000;
    text-decoration: none;
    outline: none;
}

ul {
    list-style: none;
}

/* Variables */
:root {
    --red-highlight: #8F00FF;
    --light: #0be2ff;
    --dark-light: #232323;
    --dark: #000;
    font-size: 62.5%;
}

body {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1300px;
    padding: 40px;
    margin: 0 auto;
}

.header-logo img{
    width: clamp(16rem, 15vw, 20rem);
}

/* Navbar */
.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    
}

.list {
    display: flex;
    gap: 10px;
    text-align: center;
    font-family: "DMSans-Medium", sans-serif;
}

.list_item a {
    padding: 12px;
    font-size: clamp(1.2rem, 1.6vw, 1.8rem);
}

.list_item a span {
    position: relative;
}

.list_item a span::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--light);
    transition: width 0.3s ease-in-out;
}

.list_item a:hover span::after {
    width: 100%;
}

.list_item a:hover,
.list_item a.active,
.list_item a:focus {
    background-color: var(--red-highlight);
    color: var(--light);
    border-radius: 15px;
}

#btn_hamb {
    display: none;
    color: var(--red-highlight);
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.8rem;
}

/* Modal form */
.form_wrapper,
.modal_success {
    display: none;    
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(26, 39, 156, 0.4);
}

.form_wrapper_content,
.modal_content{
    width: 95%;
    border-radius: 10px;
    background: var(--dark-light);
    color: var(--light);
    animation: modalopen .4s ease-in-out;
}

.form_wrapper_content {
    position: relative;
    padding: 40px 40px 20px;
    max-width: 500px;
}

.modal_content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px;
    max-width: 600px;
}

.modal_content h2{
    text-align: center;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 100;
    font-family: "DMSans-Regular", sans-serif;
}

.form_data {
    margin-bottom: 5px;
}

label, .text-label{
    margin-bottom: 10px;
    font-size: clamp(1.4rem, 1.5vw, 1.6rem);
    font-family: "DMSans-Regular", sans-serif;
}

label {
    display: inline-block;
}

input {
    padding: 8px;
    border-radius: 8px;
    font-size: clamp(1.2rem, 1.4vw, 1.4rem);
    height: clamp(40px, 5vw, 50px);
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    outline: none;
    border: 0.8px solid #ccc;
    font-family: "DMSans-Regular", sans-serif;
}

.form_data[data-error]::after {
    content: attr(data-error);
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: var(--red-highlight);
    display: block;
    margin-top: 7px;
    margin-bottom: 7px;
    line-height: 1;
    opacity: 0;
    transition: 0.3s;
    font-family: "Roboto", sans-serif;
}

.form_data[data-error-visible="true"]::after {
    opacity: 1;
}

.form_data[data-error-visible="true"] .text-control {
    border: 2px solid var(--red-highlight);
}

.checkbox-label,
.checkbox2-label {
    position: relative;
    margin-left: 36px;
    font-size: clamp(1.2rem, 1.3vw, 1.4rem);
    cursor: pointer
}

.checkbox-label .checkbox-icon,
.checkbox2-label .checkbox-icon {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #279e7a;
    border-radius: 50%;
    text-indent: 29px;
    white-space: nowrap;
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.3s;
}

.checkbox-label .checkbox-icon::after,
.checkbox2-label .checkbox-icon::after {
    content: "";
    width: 13px;
    height: 13px;
    background-color: #279e7a;
    border-radius: 50%;
    text-indent: 29px;
    white-space: nowrap;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: 0.3s;
    opacity: 0;
}

.checkbox-input {
    display: none;
}

.checkbox-input:checked + .checkbox-label .checkbox-icon::after,
.checkbox-input:checked + .checkbox2-label .checkbox-icon::after {
    opacity: 1;
}

.checkbox-input:checked + .checkbox2-label .checkbox-icon {
    background: #279e7a;
}

.checkbox2-label .checkbox-icon {
    border-radius: 4px;
    border: 0;
    background: #c4c4c4;
}

.checkbox2-label .checkbox-icon::after {
    width: 7px;
    height: 4px;
    border-radius: 2px;
    background: transparent;
    border: 2px solid transparent;
    border-bottom-color: var(--light);
    border-left-color: var(--light);
    transform: rotate(-55deg);
    left: 21%;
    top: 19%;
}

.btn-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 32px;
    height: 32px;
    opacity: 1;
    cursor: pointer;
    transform: scale(0.7);
}

.btn-close::before,
.btn-close::after {
    position: absolute;
    left: 15px;
    content: " ";
    height: 33px;
    width: 3px;
    background-color: var(--light);
}

.btn-close::before {
    transform: rotate(45deg);
}

.btn-close::after {
    transform: rotate(-45deg);
}

/* ***************** */
.btn {
    min-width: 17rem;
    width: 50%;
    border-radius: 10px;
    outline: none;
    border: none;
    cursor: pointer;
    padding: 15px 0;
    font-size: clamp(1.8rem, 2.2vw, 2rem);
    color: var(--light);
    background: var(--red-highlight);
    font-family: "DMSans-Medium", sans-serif;
}

.btn:hover,
.btn:focus {
    background: #3876ac;
}

.btn_signup{
    text-transform: capitalize;
}

.btn_submit {
    display: block;
    margin: 0 auto;
}

/* Style the arrow inside the select element: */
.select-selected:after {
    position: absolute;
    content: "";
    top: 10px;
    right: 13px;
    width: 11px;
    height: 11px;
    border: 3px solid transparent;
    border-bottom-color: var(--red-highlight);
    border-left-color: var(--red-highlight);
    transform: rotate(-48deg);
    border-radius: 5px 0 5px 0;
}

/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
    transform: rotate(135deg);
    top: 13px;
}

.select-items div,
.select-selected {
    color: var(--dark);
    padding: 11px 16px;
    border: 1px solid transparent;
    border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
    cursor: pointer;
    border-radius: 8px;
    height: 48px;
}

/* Style items (options): */
.select-items {
    position: absolute;
    background-color: var(--light);
    top: 89%;
    left: 0;
    right: 0;
    z-index: 99;
}

/* Hide the items when the select box is btn-closed: */
.select-hide {
    display: none;
}

.select-items div:hover,
.same-as-selected {
    background-color: rgba(0, 0, 0, 0.1);
}

.hero-section {
    display: flex;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 7px 2px rgba(0, 0, 0, 0.2);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 60px;
    background: var(--dark-light);
    color: var(--light);
    position: relative;
    text-align: left;
    width: 40%;
}

.hero-headline {
    font-size: clamp(3rem, 6.5vw, 9.1rem);
    font-weight: normal;
    white-space: nowrap;
    font-family: "DMSans-Medium", sans-serif;
    margin: 0;
}

.hero-text {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-family: "DMSans-Regular", sans-serif;
}

.hero-img {
    width: 60%;
    background-image: url(../assets/bg_img.jpg);
    background-size: cover;
    background-position: center;
}

.hero-section > .btn_signup {
    display: none;
}

/* Footer */
.copyrights {
    color: var(--red-highlight);
    padding: 0;
    margin: 0;
    font-size: clamp(1rem, 1.6vw, 1.6rem);
    font-weight: bolder;
    font-family: "Roboto", sans-serif;
    text-align: center;
}

.footer {
    font-family: "DMSans-Medium", sans-serif;
}

/* Animation */

@keyframes modalopen {
    from {
        opacity: 0;
        transform: translateY(-150px);
    }

    to {
        opacity: 1;
    }
}

/* Responsive */

@media screen and (max-width: 1150px) {
    
    #btn_hamb {
        display: block;
    }
    
    .list {
        flex-direction: column;
        z-index: 1;
        position: absolute;
        top: 50px;
        right: 0;
        text-align: left;
        padding: 10px;
        gap: 0;
        border-radius: 10px;
        visibility: hidden;
        opacity: 0;
        box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);
        background-color: var(--light);
        transition: all .1s ease-in-out;
    }

    .list_item a {
        display: inline-block;
        width: 100%;
    }

    .menu_toggle {
        visibility: visible;
        opacity: 1;
    }

}

@media screen and (max-width: 980px) {
    body {
        gap: 30px;
    }

    .hero-section {
        flex-direction: column;
        box-shadow: unset;
    }

    .hero-content {
        background: var(--light);
        color: var(--dark);
        padding: 0;
        gap: 20px;
        width: 100%;
        text-align: left;
    }

    .hero-content::after {
        content: unset;
    }

    .hero-content .btn_signup {
        display: none;
    }

    .hero-headline {
        white-space: normal;
        text-align: center;
    }

    .hero-text {
        width: unset;
    }

    .hero-img {
        border-radius: 10px;
        margin-top: 30px;
        height: 500px;
        width: 100%;
    }

    .hero-section > .btn_signup {
        display: block;
        margin: 30px auto 0;
    }

    .copyrights {
        text-align: center;
    }
    

    
}

@media screen and (max-width: 540px) {

    body {
        padding: 20px;
    }

    .form_wrapper_content {
        overflow: auto;
        max-height: 100%;
        padding: 30px 20px 20px;
    }

    .modal_content{
        padding: 20px;
        gap: 20px;
    }

    .hero-img {
        height: 250px;
    }

    .hero-headline{
        text-align: left;
    }

    .btn{
        padding: 10px 0;
    }
}


body {
    background-color: black; /* Establece el color de fondo en negro */
    color: white; /* Cambia el color del texto a blanco para que sea legible en fondo negro */
}


/* Estilos para mostrar el formulario en dispositivos móviles */
@media screen and (max-width: 768px) {
    .form_wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.8); /* Fondo semitransparente oscuro */
        z-index: 9999; /* Asegura que el modal esté en la parte superior */
    }

    .form_wrapper_content {
        width: 90%; /* Ajusta el ancho del contenido del formulario */
        max-width: 400px; /* Define el ancho máximo del formulario */
        padding: 20px; /* Ajusta el espacio interno del formulario */
        background: var(--dark-light);
        color: var(--light);
        border-radius: 10px;
    }

    .btn-close {
        right: 10px;
        top: 10px;
    }

    /* Puedes ajustar otros estilos según tus preferencias */
}
