* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    height: 100vh;
    overflow: hidden
}

.page-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% izquierda / 50% derecha */
    overflow: hidden;
}


/* ===== LADO IZQUIERDO - FORMULARIO ===== */

.formulario-section {
    background-image: url(/static/paginaprincipal/img/fondoform1.png);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}


.formulario-section h2 {
    font-size:40px;
    color: #111;
    margin-bottom: 30px;
    text-align: center;
    margin-top: 20px;

}



.formulario-section p.subtitle {
    color: #1e1a1a;
    margin-bottom: 20p;
    padding: 10px ;
    padding-bottom: 30px ;
    margin-top: 20px;
    font-size: 30px ;
}


form {

    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 600px;
    width: 80%;
    align-items: center;

}



form p {

    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    width: 80%;
}



form label {
    font-weight: 600;
    color: #151515;
    font-size: 0.95rem;
}



form input,
form textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;

}



form input:focus,
form textarea:focus {
    outline: none;
    border-color: rgb(130, 42, 42);
    box-shadow: 0 0 0 3px rgba(130, 42, 42, 0.1);
}



form textarea {
    max-width: 600px;
    min-height: 200px;
    resize: horizontal;
    width: 100%;
}


button[type="submit"] {
    padding: 15px 30px;
    background-color: rgb(130, 42, 42);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
    margin-bottom: 15px;
}



button[type="submit"]:hover {
    background-color: rgb(100, 32, 32);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(130, 42, 42, 0.3);

}


/* ===== LADO DERECHO - NOSOTROS ===== */

.info-section {
    background-image: url(/static/paginaprincipal/img/fondoW.jpg);
    padding: 40px 50px;
    color: white;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;

}



.info-content {

    max-width: 500px;
}



.info-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    margin-top: 30px ;
    text-align: center;

}


.info-content h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
}



.info-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);

}

.info-item {

    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}


.info-item-icon {
    font-size: 1.3rem;
    min-width: 25px;

}

.info-item p {
    margin: 0;

}

/* ===== FOOTER ===== */

footer {
    background: #111;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.btn-volver {

    padding: 10px 25px;
    background-color: rgb(130, 42, 42);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;

}


.btn-volver:hover {
    background-color: rgb(222, 146, 146);
    transform: translateY(-2px);

}

/* ===== MENSAJES DE ÉXITO/ERROR ===== */
.messages-container {
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Errores de campos */
.error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}


@media (max-width: 968px) {

    .main-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        overflow-y: auto;
        align-items: center;

    }

    body {
        overflow: auto;

    }

    .page-container {
        height: auto;
        min-height: 100vh;
    }

    .formulario-section h2 {
        display: hidden;
    }


    .formulario-section,
    .info-section {
        padding: 20px 20px;
        overflow-y: visible;
        color: black;
        font-size: 40px;
    }

    .formulario-section p.subtitle {
        text-align: center;
    }


    form {
        max-width: 80%;
    }



    .info-content {
    max-width: 80%;
    }

    .info-content h1 {
        font-size: 2rem;
    }

}


@media (max-width: 480px) {

    .formulario-section,
    .info-section {
        padding: 20px 10px;
    }

    .formulario-section p.subtitle {
        text-align: center;
        font-size: large;
    }


    .formulario-section h2 {
        font-size: 2rem;

    }

    .info-content h1 {
        font-size: 2em;

    }



    form input,
    form textarea {

        padding: 10px 12px;
    }

    button[type="submit"] {
        padding: 12px 25px;
        font-size: 1.5rem;
    }
}