/* ===== Google Font Import - Poppins ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

#zona-verde {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container-libro {
    max-width: 80%;
    width: 70%;
    border-radius: 0;
    padding: 30px;
    padding-top: 50px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

:root {
    --primary: #00426f;
    --secondary: #667eea;
    --success: #0e9f6e;
    --danger: #e02424;
    --warning: #f05252;
    --info: #3f83f8;
    --light: #f9fafb;
    --dark: #1f2d3d;
}

.tit-libro {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #B1EA00;
    color: #00426f;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tit-libro h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.tit-libro p {
    font-size: 1.5rem;
    opacity: 0.9;
}

.form-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.form-section h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.form-section h2 span {
    background-color: var(--primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea,
input[type="date"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.2);
}

.file-upload {
    position: relative;
    margin-top: 10px;
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    background-color: #f9fafb;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.file-upload-label:hover {
    border-color: var(--primary);
}

.file-upload-label i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.file-name {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #6b7280;
}

.required {
    color: #e53e3e;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #1e4bb6;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #9ca3af;
    color: white;
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: #6b7280;
}

.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

.alert-success {
    background-color: #def7ec;
    color: #046c4e;
    border: 1px solid #bcf0da;
}

.alert-error {
    background-color: #fde8e8;
    color: #e53e3e;
    border: 1px solid #f8b4b4;
}

.legal-text {
    background-color: #f3f4f6;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #4b5563;
}

.legal-text p {
    line-height: 1.6rem;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.form-footer button {
    width: 48%;
    line-height: 60px;
    font-size: 20px;
}

.loading {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .container-libro {
        max-width: 95%;
        width: 95%;
        padding: 15px;
    }

    .form-footer {
        flex-direction: column;
        gap: 15px;
    }

    .form-footer button {
        width: 100%;
        margin: 5px 0;
    }

    .tit-libro h1 {
        font-size: 2rem;
    }
}