/* Variables de Color y Fuentes */
:root {
    --primary-dark: #212121;
    --accent-color: #a000ba;
    --bg-light: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--primary-dark);
    background-color: #fdfdfd;
    overflow-x: hidden;
}

/* Tipografía Personalizada */
.serif-font {
    font-family: var(--font-serif);
}

h1, h2, h3 {
    color: var(--primary-dark);
}

.text-muted {
    color: #6c757d !important;
}

/* Layout General */
.main-content {
    margin-left: 280px; /* Ancho de la barra lateral */
    transition: all 0.3s ease;
}

/* Sidebar Navigation */
.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid rgba(0,0,0,0.05);
    padding: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 15px rgba(0,0,0,0.02);
}

.logo-img {
    max-width: 180px;
    height: auto;
}

.main-menu .nav-link {
    color: var(--primary-dark);
    font-weight: 500;
    padding: 12px 0;
    font-size: 1.1rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.main-menu .nav-link:hover, .main-menu .nav-link.active {
    color: var(--accent-color);
    padding-left: 10px;
}

.main-menu i {
    width: 25px;
    color: #999;
}

.main-menu .nav-link:hover i, .main-menu .nav-link.active i {
    color: var(--accent-color);
}

.small-text {
    font-size: 0.85rem;
    color: #666;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.1);
}

.border-start-accent {
    border-left: 4px solid var(--accent-color);
}

/* Botones Personalizados */
.btn-custom-fb {
    background-color: #1877F2;
    color: white;
    border: none;
    transition: opacity 0.3s;
}

.btn-custom-fb:hover {
    background-color: #1465d1;
    color: white;
    opacity: 0.9;
}

.btn-primary-custom {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: #800096;
    color: white;
    transform: scale(1.05);
}

.btn-outline-custom {
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-custom:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* Estilos de Imágenes Documentary-Style */
.hero-img {
    border-radius: 0 100px 0 0; /* Forma asimétrica moderna */
    object-fit: cover;
    width: 100%;
    height: 600px;
    filter: contrast(1.1) saturate(0.9);
}

.documentary-figure img {
    border-radius: 4px;
    filter: grayscale(20%) contrast(1.05);
    transition: filter 0.5s ease;
}

.documentary-figure:hover img {
    filter: grayscale(0%) contrast(1);
}

.figure-caption {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent-color);
}

/* Badge personalizado */
.badge-custom {
    background-color: rgba(160, 0, 186, 0.1);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Footer Styles */
.footer-section {
    background: linear-gradient(to bottom, #fdfdfd, #f0f0f0);
}

.final-cta-box {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(160, 0, 186, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .sidebar-nav {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding: 1rem;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .nav-bottom {
        display: none; /* Ocultar CTA lateral en móvil para limpiar header */
    }

    .hero-img {
        height: 300px;
        border-radius: 0 0 50px 0;
        margin-bottom: 2rem;
    }
    
    .order-lg-2 { order: 1 !important; }
    .order-lg-1 { order: 2 !important; }
}