css

/* Configuración global de la pantalla */

* {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}

 

body {

    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 20px;

}

 

/* Tarjeta contenedora del formulario */

.contenedor-principal {

    width: 100%;

    max-width: 500px;

}

 

.tarjeta-contacto {

    background: #ffffff;

    padding: 40px 30px;

    border-radius: 16px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);

}

 

.encabezado {

    text-align: center;

    margin-bottom: 30px;

}

 

.encabezado h1 {

    color: #1a2a6c;

    font-size: 28px;

    margin-bottom: 10px;

}

 

.encabezado p {

    color: #5c6b73;

    font-size: 14px;

    line-height: 1.5;

}

 

/* Estilos de los campos de texto */

.grupo-input {

    margin-bottom: 20px;

}

 

.grupo-input label {

    display: block;

    color: #1a2a6c;

    font-weight: 600;

    font-size: 14px;

    margin-bottom: 8px;

}

 

.grupo-input input,

.grupo-input textarea {

    width: 100%;

    padding: 12px 16px;

    border: 2px solid #e2e8f0;

    border-radius: 8px;

    font-size: 15px;

    color: #2d3748;

    transition: all 0.3s ease;

    outline: none;

}

 

.grupo-input input:focus,

.grupo-input textarea:focus {

    border-color: #0052cc;

    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);

}

 

/* Botón de envío */

button {

    width: 100%;

    background-color: #0052cc;

    color: white;

    border: none;

    padding: 14px;

    font-size: 16px;

    font-weight: 600;

    border-radius: 8px;

    cursor: pointer;

    transition: background-color 0.3s ease;

    margin-top: 10px;

}

 

button:hover {

    background-color: #003d99;

}

 

/* Alertas de JavaScript */

.alerta {

    margin-top: 15px;

    padding: 12px;

    border-radius: 6px;

    font-size: 14px;

    text-align: center;

    font-weight: 500;

}

 

.alerta.error {

    background-color: #fed7d7;

    color: #c53030;

    border: 1px solid #feb2b2;

}

 

.oculto {

    display: none;

}