/* =========================================
   VIDEO FONDO
========================================= */

.video-background {
    position: fixed;
    top: 9.5rem;
    bottom: 0.2rem;
    left: 1rem;
    right: 1rem;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 1rem;
}

body {
    font-family: 'Cocos-Regular', sans-serif;
    background-size: cover;
    letter-spacing: 0.2rem;
    height: 100vh;
    overflow: hidden;
}

/* =========================================
   NOSOTROS — CONTENIDO
========================================= */

.nosotros-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - 9.5rem);
    gap: 0.75rem;
    padding: 1.5rem 0 5rem 0;
    position: relative;
    z-index: 1;
}

.nosotros-item-1 {
    padding: 1.2rem 2rem;
    border-radius: 0.75rem;
    color: white;
    font-size: 3rem;
    letter-spacing: 0.2rem;
    text-shadow: 0.625rem 0.625rem 1.25rem #000000;
    background-color: rgba(31, 31, 31, 0.9);
    width: 70%;
    animation: fadeInUp 0.7s ease 0.1s both;
}

.nosotros-item-2 {
    padding: 1.2rem 2rem;
    border-radius: 0.75rem;
    color: white;
    font-size: 1.7rem;
    letter-spacing: 0.2rem;
    text-shadow: 0.625rem 0.625rem 1.25rem #000000;
    background-color: rgba(31, 31, 31, 0.9);
    width: 70%;
    animation: fadeInUp 0.7s ease 0.2s both;
   

}

/* =========================================
   CONTACTO
========================================= */

.contacto {
    padding: 1.2rem 2rem;
    border-radius: 0.75rem;
    color: white;
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
    text-shadow: 0.625rem 0.625rem 1.25rem #000000;
    background-color: rgba(31, 31, 31, 0.9);
    width: 50%;
    text-align: center;
    animation: fadeInUp 0.7s ease 0.3s both;
}

.contact-container {
    background: transparent;
    border-radius: 1rem;
    margin-left: 3rem;
    margin-right: 3rem;
    position: relative;
}

/* =========================================
   FORMULARIO
========================================= */

#form-contacto {
    margin-top: 1rem;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

h2 {
    text-align: center;
    margin-bottom: 1.25rem;
    color: white;
}

form {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
}

label {
    margin: 0.625rem 0 0.3125rem;
    color: white;

    
}

input, textarea {
    padding: 0.625rem;
    border: 0.125rem solid rgba(255, 255, 255, 0.4);
    border-radius: 1rem;
    font-size: 0.875rem;
    background: transparent;
    color: white;
    font-family: 'Roboto-Medium', sans-serif;
    font-weight: bold;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

input:focus, textarea:focus {
    border-color: rgba(46, 150, 255, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(46, 150, 255, 0.15);

}

textarea {
    min-height: 4rem;
    resize: vertical;
    
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);

}

#form-contacto button {
    margin-top: 0.9375rem;
    padding: 0.625rem;
    background-color: transparent;
    border: 0.125rem solid rgba(255, 255, 255, 0.4);
    color: white;
    border-radius: 1rem;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Cocos-Regular', sans-serif;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

#form-contacto button:hover {
    background-color: #2e96ff;
    border-color: #2e96ff;
}

/* =========================================
   MENSAJE ÉXITO
========================================= */

.mensaje-exito {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    color: #ffffff;
    font-size: 1.5rem;
    font-family: 'Cocos-Regular', sans-serif;
    text-shadow: 0.2rem 0.2rem 0.5rem rgba(0, 0, 0, 0.8);
    animation: aparecerMensaje 0.5s ease forwards;
    font-style: italic;
    margin: 0;
    padding: 0;
    z-index: 10;
}

.mensaje-exito span {
    color: white;
    font-family: 'Cocos-Regular', sans-serif;
    font-size: 1.4rem;
    display: block;
    margin-top: 1rem;
}

@keyframes aparecerMensaje {
    from { opacity: 0; transform: translate(-50%, -50%) translateY(0.5rem); }
    to   { opacity: 1; transform: translate(-50%, -50%) translateY(0); }
}

/* =========================================
   LISTA DE CONTACTOS
========================================= */

.lista-contactos {
    list-style: none;
    padding-left: 0;
    font-size: 1rem;
    text-align: center;
}

.lista-contactos li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-top: 1rem;
    margin-bottom: 0rem;
    letter-spacing: 0.1rem;
}

.icono {
    width: 1.7rem;
    height: 1.7rem;
    object-fit: contain;
    display: block;
    margin: 0;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.lista-contactos li:hover .icono {
    opacity: 1;
}

/* =========================================
   RESPONSIVE — TABLETS Y MÓVIL (max 768px)
========================================= */

@media (max-width: 768px) {

    body {
        height: auto;
        overflow: auto;
    }

    .nosotros-wrapper {
        min-height: auto;
        padding: 1rem 0 6rem 0;
        justify-content: flex-start;
    }

    .nosotros-item-1 {
        width: 92% !important;
        padding: 1.5rem;
        font-size: 2.5rem;
        text-align: left;
    }

    .nosotros-item-2 {
        width: 92% !important;
        padding: 1.5rem;
        font-size: 1.8rem;
        text-align: left;
    }

    .contacto {
        width: 92% !important;
        padding: 1.5rem;
        font-size: 1.8rem;
        text-align: center;
    }

    .contact-container {
        width: 100%;
        margin: 0;
    }

}

@media (max-width: 480px) {

    .video-background {
        top: 7.5rem;
        bottom: 4.5rem;
        left: 0.5rem;
        right: 0.5rem;
    }

}
