:root {
    --primary-color: #9e2628;
    --secondary-color: #721c24;
    --accent-color: #d4af37;
    --bg-dark: #121212;
    --text-white: #ffffff;
    --text-gray: #e0e0e0;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    background-color: #f8f9fa;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.libro-container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
    position: relative;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
}

.hero-content {
    z-index: 2;
    animation: fadeInUp 1.2s ease-out;
}

.main-title {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    margin-top: 10px;
    font-weight: 300;
    letter-spacing: 2px;
}

.divider {
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    margin: 20px auto;
    border-radius: 2px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: -50px auto 50px auto;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

/* Book Showcase */
.book-showcase {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-wrapper {
    perspective: 1000px;
    margin-bottom: 30px;
}

.img-book {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.img-book:hover {
    transform: rotateY(-15deg) scale(1.05);
}

.section-title {
    font-family: 'Cinzel', serif;
    color: var(--primary-color);
    margin: 30px 0 20px;
    text-align: center;
}

.video-container {
    width: 100%;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Form Styling */
/* .form-container {
    No sticky on grid item directly to avoid issues
} */

.form-card {
    background: linear-gradient(135deg, white 0%, #f1f1f1 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary-color);
    position: sticky;
    top: 100px;
}

.form-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.form-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
}

.input-group label i {
    color: var(--primary-color);
    margin-right: 8px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s;
    box-sizing: border-box;
    background-color: white;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(158, 38, 40, 0.1);
    outline: none;
}

.input-group select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

/* File Upload */
.file-upload {
    position: relative;
    height: 50px;
}

.file-upload input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s;
}

.file-upload:hover .file-custom {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.file-custom i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
}

.btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(158, 38, 40, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .hero-section {
        height: 40vh;
    }

    .form-card {
        position: static;
    }
}