/* Contacto y Formulario */
.contact {
    background-color: var(--secondary-color);
}

.contact h2 {
    margin-top: 1rem;
}

.contact p {
    font-size: 1rem;
    color: var(--dark-text-color);
    margin-bottom: 2rem;
}

.contact form {
    max-width: 600px;
    max-height: 800px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.contact input,
.contact textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--body-font);
    background-color: var(--white-color);
    color: var(--dark-text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 114, 90, 0.2);
}

.contact textarea {
    resize: vertical;
    min-height: 100px;
}

.contact button {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 1.1rem 1.4rem;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 550;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Campo de Subida de Archivos --- */
.file-label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 550;
    color: var(--dark-text-color);
    text-align: left;
}

.file-input {
    /* Estilos para que el input file se parezca a un boton o campo de entrada */
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    background-color: var(--white-color);
    color: var(--primary-color);
    font-size: 1rem;
    font-family: var(--body-font);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input:hover,
.file-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(104, 199, 41, 0.2); /* Sombra suave al foco */
    outline: none; /* Elimina el contorno de foco por defecto del navegador */
}

.file-names {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--dark-text-color);
    text-align: center;
    padding: 0.5rem;
    border: 1px dashed #ccc;
    border-radius: 5px;
    background-color: #f0f0f0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Por si hay muchos nombres de archivo */
    word-break: break-word; /* Para que los nombres largos no desborden */
}

/* --- ESTILO DROP ZONE --- */
.drop-zone {
    border: 2px dashed #68c729;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.drop-zone.drag-over {
    border-color: var(--accent-color);
    background-color: rgba(104, 199, 41, 0.05);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.drop-icon {
    font-size: 3rem;
    color: #68c729;
}

.drop-zone {
    border: 2px dashed #68c729;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.drop-or {
    font-size: 1.1rem;
    color: #888;
}

.drop-btn {
    color: #68c729;
    font-weight: bold;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.file-list-container {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.file-item {
    background: #eef9e8;
    color: #01725a;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #68c729;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 5px;
}

.file-item i {
    color: #e74c3c; /* El icono del PDF en rojo para que se reconozca rapido */
}

/* Animacion de error en la caja */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.drop-zone.error {
    border-color: #e74c3c;
    animation: shake 0.3s ease-in-out;
}

/* --- Mensajes de Formulario --- */
.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    display: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}