:root {
    --primary-color: #952f57;
    --secondary-color: #62152d;
    --bg-color: rgb(255, 220, 170);
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lato', sans-serif;
}

/* Configuración General del Body */
body, html {
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 220, 170, 0.8), rgba(149, 47, 87, 0.8));
    font-family: var(--font-primary);
    font-size: 16px;
}

/* Estilo del Header */
header {
    color: #fff;
    padding: 0;
    text-align: center;
    width: 100%;
    top: 0;
}

/* Estilo del Formulario Principal */
.form {
    border-width: 2px;
    border-style: solid;
    border-color: var(--primary-color);
    border-radius: 10px;
    background-color: #ffffff;
    height: 76%;
    width: 70%;
    position: absolute;
    display: flex;
    font-weight: bolder;
    text-align: center;
    justify-content: center;
    box-shadow: -1px -1px 6px 0 rgba(98, 21, 45, 0.5), 4px 4px 16px 2px rgba(149, 47, 87, 0.5);
    animation: fadeIn 0.6s ease-out;
}

/* Animación de Entrada del Formulario */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form h1 {
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

/* Contenedor Principal */
.container {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

/* Contenedores de Campo */
.container13 {
    display: flex;
    width: 90%;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
}

.container11 {
    width: 50%;
    margin-right: 20px;
}

.container12 {
    width: 50%;
    margin-left: 20px;
}

/* Estilos para Campos y Formulario */
.campo, .campo1, .campo2 {
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    position: relative;
}

.campo i, .campo1 i, .campo2 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.campo input, .campo1 input, .campo2 input {
    font-family: var(--font-secondary);
    font-size: 14px;
    width: 100%;
    height: 25px;
    border-radius: 5px;
    text-indent: 5px;
    border: 1px solid #ddd;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Estilos para Agrupaciones de Campos */
.apellidos, .num {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 15px;
}

.ap, .am, .eda, .tel {
    width: 50%;
}

.eda {
    width: 30%;
} 

.tel {
    width: 70%;
}

/* Línea Vertical */
.v-line {
    border-left: 1px solid #62152d;
    height: 90%;
    left: 50%;
    position: absolute;
    animation: lineFadeIn 0.6s ease-out;
}

/* Animación de la Línea Vertical */
@keyframes lineFadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Botones */
.btn {
    font-family: var(--font-secondary);
    margin-top: 15px;
    font-size: 16px;
    align-items: center;
    justify-content: center;
    border: none; 
    color: white; 
    padding: 12px 32px; 
    cursor: pointer; 
    border-radius: 5px;
    background-color: var(--primary-color);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Contenedor de Botones */
.container2 { 
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 10%;
}

/* Estilo del Título */
.form h3 {
    margin-top: 35px;
    font-size: 12px;
}

/* Estilo Específico para Formularios */
.forms {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos Responsivos */
@media(max-width: 1024px) {
    .form .forms {
        width: 100%;
    }
}

@media(max-width: 880px) {
    form {
        width: 100%;
    }

    .form .forms {
        width: 100%;
    }

    .form .forms .container13 {
        width: 90%;
    }

    .form .container .forms .container11,
    .form .container .forms .container12 {
        width: 100%;
    }
}

@media(max-width: 500px) {
    .form {
        padding: 10px;
        width: 90%;
    }

    .form h1 {
        font-size: 22px;
    }

    .campo input {
        font-size: 14px;
        padding-left: 35px;
    }

    .container2 {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        padding: 12px 0;
    }
}
