/* contacto.css */
/* Estilos específicos de la página Contacto */

/* ==================================
   SECCIÓN CONTACTO
   ================================== */

.contacto {
    margin: 40px auto 60px;
    padding: 30px;

    max-width: 720px;
    width: 100%;

    background-color: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;

    color: #ffffff;
}

/* Título */

.contacto h2 {
    font-family: 'Inconsolata', monospace;
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
    color: rgb(232, 73, 0);
}

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

#formContacto {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Campo genérico */

.campo {
    display: flex;
    flex-direction: column;
}

/* Labels */

.campo label {
    font-size: 14px;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.85);
}

/* Inputs, select y textarea */

.campo input,
.campo select,
.campo textarea {
    background-color: #111;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;

    padding: 10px 12px;
    font-size: 14px;
    border-radius: 4px;

    font-family: 'Inconsolata', monospace;
}

/* Focus accesible */

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    outline: none;
    border-color: rgb(232, 73, 0);
    box-shadow: 0 0 0 1px rgba(232, 73, 0, 0.6);
}

/* Textarea */

.campo textarea {
    resize: vertical;
    min-height: 130px;
}

/* ==================================
   BOTÓN ENVIAR
   ================================== */

.campo button {
    align-self: center;
    margin-top: 10px;

    padding: 12px 32px;
    font-size: 15px;
    font-family: 'Big Shoulders', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;

    background-color: rgb(232, 73, 0);
    color: #000;

    border: none;
    border-radius: 4px;
    cursor: pointer;

    transition:
        background-color 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.campo button:hover {
    background-color: rgb(255, 95, 30);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 73, 0, 0.35);
}

.campo button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ==================================
   CAMPO TROVADOR (CONTROLADO POR JS)
   ================================== */

#campoTrovador {
    transition: opacity 0.3s ease;
}

/* ==================================
   MODAL ÉXITO
   ================================== */

.modal {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #111;
    color: #ffffff;

    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;

    text-align: center;
}

.modal-content button {
    margin-top: 20px;
    padding: 10px 20px;
    cursor: pointer;
}
