/* Harvard Academic Theme Custom Variables */
:root {
    --harvard-primary: #a41034; /* Rojo Harvard */
    --harvard-secondary: #474340; /* Gris Oxford */
    --harvard-accent: #7a5e49; /* Marrón Corteza */
    --harvard-light: #f5f3f2; /* Gris Humo Claro */
    --harvard-background: #f5f3f2; /* Gris Humo Claro */
    --harvard-surface: #ffffff; /* White for cards */
    --harvard-border: #c9c1bd; /* Gris Piedra */
    --harvard-text: #474340; /* Gris Oxford */
    --harvard-text-secondary: #c9c1bd; /* Gris Piedra */
    --harvard-beige: #e8dcc8; /* Beige Académico */
    --harvard-gold: #d8b866; /* Dorado Pergamino */
    --harvard-success: #7a5e49;
    --harvard-warning: #d8b866;
    --harvard-danger: #a41034;
    --harvard-info: #474340;
}

/* Import Charter and fallback fonts */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

/* Harvard Academic Theme Styles */
body {
    background: linear-gradient(135deg, var(--harvard-light) 0%, var(--harvard-beige) 100%);
    font-family: "Charter", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--harvard-text);
    line-height: 1.6;
}

/* Typography - Harvard Case Study Style */
h1, h2, h3, h4, h5, h6 {
    font-family: "Charter", "Merriweather", "Playfair Display", Georgia, serif;
    color: var(--harvard-text);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Harvard-specific elements */
.harvard-hero {
    position: relative;
    overflow: hidden;
}

.harvard-podium {
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(164, 16, 52, 0.2);
}

.harvard-case-card {
    transition: all 0.3s ease;
    position: relative;
}

.harvard-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(164, 16, 52, 0.15);
}

.case-footnotes {
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive improvements for Harvard theme */
@media (max-width: 768px) {
    .harvard-podium {
        clip-path: none;
        padding: 2rem;
    }
    
    .case-footnotes {
        position: static;
        width: 100%;
        opacity: 1 !important;
        background: #f9f7f5;
        border: 1px solid #d8b866;
        border-radius: 5px;
        margin-top: 1rem;
    }
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

/* Custom Navbar Styling - No Icons */
.navbar-harvard {
    background: linear-gradient(90deg, var(--harvard-primary) 0%, #8a0d2b 100%) !important;
    box-shadow: 0 4px 8px rgba(164, 16, 52, 0.3);
    border-bottom: 3px solid var(--harvard-accent);
    padding: 0.75rem 0;
}

.navbar-harvard .navbar-brand,
.navbar-harvard .nav-link {
    color: white !important;
    font-weight: 600;
    font-family: "Merriweather", serif;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

.navbar-harvard .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-harvard .nav-link:hover {
    color: var(--harvard-beige) !important;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transform: translateY(-1px);
}

.navbar-harvard .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
}

.navbar-harvard .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Remove all icons from navbar */
.navbar-harvard .navbar-nav .nav-link i,
.navbar-harvard .navbar-nav .nav-link .bi,
.navbar-harvard .navbar-brand i,
.navbar-harvard .navbar-brand .bi {
    display: none;
}

/* Custom Button Styles */
.btn-harvard-primary {
    background: linear-gradient(45deg, var(--harvard-primary), var(--harvard-accent));
    border: 2px solid var(--harvard-primary);
    color: white;
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-family: "Merriweather", serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(164, 16, 52, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-harvard-primary:hover {
    background: linear-gradient(45deg, var(--harvard-accent), var(--harvard-primary));
    border-color: var(--harvard-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(164, 16, 52, 0.4);
}

.btn-harvard-secondary {
    background: linear-gradient(45deg, var(--harvard-text), var(--harvard-border));
    border: 2px solid var(--harvard-text);
    color: white;
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-family: "Source Sans Pro", sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(71, 67, 64, 0.3);
}

.btn-harvard-secondary:hover {
    background: linear-gradient(45deg, var(--harvard-border), var(--harvard-text));
    border-color: var(--harvard-border);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(71, 67, 64, 0.4);
}

/* Card Enhancements */
.card {
    border: 2px solid var(--harvard-border);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(164, 16, 52, 0.1);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--harvard-surface) 0%, rgba(245, 243, 242, 0.7) 100%);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--harvard-primary), var(--harvard-gold));
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(164, 16, 52, 0.2);
    border-color: var(--harvard-primary);
}

.card-header {
    background: linear-gradient(45deg, var(--harvard-beige), rgba(232, 220, 200, 0.8));
    border-bottom: 2px solid var(--harvard-primary);
    border-radius: 10px 10px 0 0 !important;
    font-weight: 700;
    color: var(--harvard-text);
    font-family: "Merriweather", serif;
}

/* Link Colors */
a {
    color: var(--harvard-accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--harvard-primary);
    text-decoration: underline;
}

/* Form Enhancements */
.form-control {
    border: 2px solid var(--harvard-border);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--harvard-surface);
    font-family: "Source Sans Pro", sans-serif;
}

.form-control:focus {
    border-color: var(--harvard-primary);
    box-shadow: 0 0 0 0.3rem rgba(164, 16, 52, 0.25);
    background: var(--harvard-light);
}

/* Table Enhancements */
.table th {
    background: linear-gradient(45deg, var(--harvard-primary), var(--harvard-accent));
    color: white;
    border: none;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-family: "Merriweather", serif;
}

.table {
    border: 2px solid var(--harvard-border);
    border-radius: 10px;
    overflow: hidden;
}

/* Alert Enhancements */
.alert {
    border-radius: 10px;
    border: 2px solid;
    font-weight: 600;
    font-family: "Source Sans Pro", sans-serif;
}

.alert-primary {
    background: linear-gradient(135deg, rgba(164, 16, 52, 0.1), rgba(122, 94, 73, 0.1));
    color: var(--harvard-primary);
    border-color: var(--harvard-primary);
}

/* Academic Highlights */
.academic-highlight {
    background: linear-gradient(45deg, rgba(164, 16, 52, 0.1), rgba(232, 220, 200, 0.2));
    border: 2px solid var(--harvard-primary);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-family: "Merriweather", serif;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .btn-harvard-primary,
    .btn-harvard-secondary {
        padding: 0.6rem 1.2rem;
    }
}