/* ===================================
   CÁTEDRA SYLVIA SCHMELKES CSS FRAMEWORK
   ===================================
   
   Consolidated styles for all pages:
   - Home page (index.html)
   - La Cátedra page (catedra.html) 
   - Investigación page (investigacion.html)
   
   =================================== */

/* ===================================
   1. CSS VARIABLES & ROOT SETTINGS
   =================================== */

   @import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Outfit:wght@100..900&display=swap');

   :root {
    --primary-red: #df0134;
    --dark-red: #b10029; /*#c2185b;*/
    --accent-red: #910022; /* #ad1457; */
    --light-gray: #f8f9fa;
    --dark-gray: #333;
    --text-muted: #6c757d;
    --white: #ffffff;
    --black: #000000;
    --dark: #414040;
    
    /* Shadows */
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.2);
    --shadow-red: 0 15px 35px rgba(233, 30, 99, 0.4);
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.3s ease-in-out;
}

/* ===================================
   2. BASE STYLES & GLOBAL SETTINGS
   =================================== */
body {
    padding-top: 80px;
    font-family: "Noto Sans", sans-serif;
    line-height: 1.6;
}

/* ===================================
   3. NAVIGATION STYLES
   =================================== */
.navbar-custom {
    background-color: var(--primary-red);
    padding: 1rem 0;
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 1030;
    transition: transform var(--transition-smooth);
}

/* .navbar-hidden {
    transform: translateY(-100%);
} */

.navbar-brand {
    font-weight: bold;
    font-size: 1.1rem;
}

/* .navbar-brand in mobile */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 0.8rem;
    }
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: opacity var(--transition-fast);
}

.navbar-nav .nav-link:hover {
    opacity: 0.8;
}

.navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.2);
    border-radius: 5px;
}

/* ===================================
   4. HERO SECTIONS
   =================================== */
.hero-section {
    background-size: cover !important;
    background-position: center !important;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
}

/* Home page hero */
.hero-section.home-hero {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url('../img/header_index_hd.webp');
    min-height: 700px;
}

/* .hero-section.home-hero in mobile set a min-heigt to 500px */
@media (max-width: 768px) {
    .hero-section.home-hero {
        min-height: 500px;
    }
}


/* Cátedra page hero */
.hero-section.catedra-hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('../img/la_catedra_header.webp');
    min-height: 350px;
}

/* Investigación page hero */
.hero-section.investigacion-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
        url('../img/investigacion_header.webp');
    min-height: 350px;
}

/* Noticias page hero */
.hero-section.noticias-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
        url('../img/contacto_header.webp');
    min-height: 350px;
}

/* Contacto page hero */
.hero-section.contacto-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
        url('../img/noticias_header.webp');
    min-height: 350px;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-family: "Outfit", sans-serif;
    letter-spacing: 0.05em;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ===================================
   5. SECTION STYLES
   =================================== */
.section-about {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.section-title {
    font-size: 2rem;
    font-family: "Outfit", sans-serif;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    text-align: center;
}

.research-section {
    padding: 4rem 0;
}

.profile-section,
.antecedentes-section,
.research-content {
    padding: 4rem 0;
}

.work-plan-section,
.estancia-section,
.materials-section,
.research-categories,
.researchers-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

/* ===================================
   6. BUTTON STYLES
   =================================== */
.btn-custom {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 25px;
    transition: all var(--transition-fast);
    border: none;
}

.btn-custom:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--white);
    transform: translateY(-2px);
}

/* Filter buttons for materials */
.filter-btn {
    background-color: var(--dark-red);
    border: none;
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    margin: 0 5px 10px 0;
    transition: all var(--transition-fast);
}

.filter-btn:hover, 
.filter-btn.active {
    background-color: var(--accent-red);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===================================
   7. RESEARCH CARDS (HOME PAGE)
   =================================== */
.research-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    /* cursor: pointer; */
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.research-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(252, 0, 59, 0.5), rgba(252, 0, 59, 0.1));
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 1;
}

.research-card:hover::before {
    opacity: 1;
}

.research-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: var(--white);
    z-index: 2;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.research-card h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Research card backgrounds */
.research-card-1 {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.5)), 
                url('../img/inmigrantes2.webp');
    background-size: cover;
    background-position: center;
}

.research-card-2 {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.5)), 
                url('../img/educacion_indigena.webp');
    background-size: cover;
    background-position: right;
}

.research-card-3 {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.5)), 
                url('../img/discapacidad.webp');
    background-size: cover;
    background-position: right;
}

.research-card-4 {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.5)), 
                url('../img/pobreza.webp');
    background-size: cover;
    background-position: center;
}

.research-card-5 {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.5)), 
                url('../img/equidad.webp');
    background-size: cover;
    background-position: center;
}

/* ===================================
   8. RESEARCH CATEGORIES (INVESTIGACIÓN PAGE)
   =================================== */
.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 120px;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card.active {
    transform: translateY(-5px);
    box-shadow: var(--shadow-red);
    border: 3px solid var(--primary-red);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.4), rgba(0,0,0,0.1));
    z-index: 1;
}

.category-card.active::before {
    background: linear-gradient(45deg, rgba(233, 30, 99, 0.3), rgba(194, 24, 91, 0.1));
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    color: var(--white);
    z-index: 2;
}

.category-card h5 {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Category backgrounds */
.migrantes-bg {
    background: url('/static/img/inmigrantes2.webp');
    background-size: cover;
}

.educacion-bg {
    background: url('/static/img/educacion_indigena.webp');
    background-size: cover;
}

.discapacidad-bg {
    background: url('/static/img/discapacidad.webp');
    background-size: cover;
}

.pobreza-bg {
    background: url('/static/img/pobreza.webp');
    background-size: cover;
}

.equidad-bg {
    background: url('/static/img/equidad.webp');
    background-size: cover;
}

/* ===================================
   9. CAROUSEL STYLES
   =================================== */
.card-img-top{
    background-size: cover;
    height: 220px; 
}
   
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--primary-red);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.carousel-body{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ===================================
   10. CARD STYLES
   =================================== */
.material-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    margin-bottom: 2rem;
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.material-image {
    height: 200px;
    background-color: #ddd;
    position: relative;
}

.researcher-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.researcher-card:hover {
    transform: translateY(-5px);
}

.researcher-avatar {
    width: 120px;
    height: 120px;
    background-color: #bbb;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

/* ===================================
   11. IMAGE STYLES
   =================================== */
.profile-image,
.classroom-image,
.content-image {
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.estancia-image {
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    max-width: 300px;
}

/* ===================================
   12. COLLABORATIVE NETWORKS
   =================================== */
.collaborative-networks {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.network-logo {
    padding: 1rem;
}

.network-logo .bg-white {
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    transition: transform var(--transition-fast);
}

.network-logo .bg-white:hover {
    transform: translateY(-3px);
}

.vinculacion{
    width: 150px;
    height: auto;
}

/* ===================================
   13. FOOTER STYLES
   =================================== */
footer {
    background-color: #414040 !important;
    color: var(--white);
    padding: 3rem 0 1rem 0;
}

footer h5, footer h6 {
    color: var(--white);
    margin-bottom: 1rem;
}

footer p, footer small {
    color: #adb5bd;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--white);
}

footer .btn-custom {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Social media icons */
.social-icon {
    display: inline-block;
    padding: 8px;
    border-radius: 5px;
    color: var(--white);
    font-size: 1.2rem;
    transition: transform var(--transition-fast);
}

.social-icon:hover {
    transform: translateY(-2px);
    color: var(--white);
}

.social-facebook {
    background-color: #3b5998;
}

.social-twitter {
    background-color: #1da1f2;
}

.social-youtube {
    background-color: #ff0000;
}

/* ===================================
   14. UTILITY CLASSES
   =================================== */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
}

.border-primary {
    border-color: var(--primary-red) !important;
}

.text-primary-custom {
    color: var(--primary-red) !important;
}

/* ===================================
   15. RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .research-card {
        height: 250px;
        margin-bottom: 1.5rem;
    }
    
    .category-card {
        height: 100px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .research-card {
        height: 220px;
        margin-bottom: 1rem;
    }
    
    .category-card {
        height: 90px;
        margin-bottom: 0.5rem;
    }
    
    .profile-image,
    .classroom-image,
    .content-image,
    .estancia-image {
        margin-bottom: 2rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: -20px;
    }
    
    .carousel-control-next {
        right: -20px;
    }
    
    .filter-btn {
        margin: 0 2px 8px 0;
        padding: 6px 15px;
        font-size: 0.875rem;
    }
    
    .material-card {
        margin-bottom: 1.5rem;
    }
    
    .researcher-card {
        padding: 1.5rem;
    }
    
    .researcher-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .research-card {
        height: 200px;
    }
    
    .category-card {
        height: 80px;
    }
    
    .category-card h5 {
        font-size: 1rem;
    }
    
    .btn-custom {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .material-image {
        height: 150px;
    }
}

/* ===================================
   16. ANIMATION KEYFRAMES
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation utility classes */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease-out forwards;
}

/* ===================================
   17. PRINT STYLES
   =================================== */
@media print {
    .navbar-custom,
    .carousel-control-prev,
    .carousel-control-next,
    .filter-btn,
    footer {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .hero-section {
        background: none !important;
        color: var(--black) !important;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .research-card,
    .category-card,
    .material-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===================================
   18. ACCESSIBILITY IMPROVEMENTS
   =================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states */
.btn-custom:focus,
.filter-btn:focus,
.category-card:focus,
.research-card:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-red: #d00;
        --dark-red: #a00;
        --accent-red: #800;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   END OF CSS FRAMEWORK
   =================================== */

   