/* ====== INVESTIGACIÓN Y DOCENCIA - ESTILOS COMPLETOS ====== */

/* Variables de color consistentes */
:root {
    --primary-teal: #00bec6ff;
    --primary-teal-dark: #009aa0;
    --primary-blue: #004063ff;
    --primary-blue-light: #e8f4f8;
    --bg-light: #f8f9fa;
    --bg-gray: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 14px;
    --border-radius-sm: 10px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== HERO SECTION ====== */
.research-hero {
    background: linear-gradient(135deg, rgba(0, 64, 99, 0.88), rgba(0, 190, 198, 0.85)), 
                url('/static/images/investigacion/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.research-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.research-hero h1 {
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-size: 2.8rem;
    animation: fadeInDown 0.8s ease;
}

.research-hero p {
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto 30px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
    line-height: 1.7;
}

.hero-btn {
    background: white;
    color: var(--primary-blue);
    font-weight: 600;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: inline-block;
    animation: fadeInUp 0.8s ease 0.4s both;
    border: none;
}

.hero-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: var(--primary-blue);
    color: white;
}

/* ====== ANIMACIONES ====== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ====== SECCIÓN DE PROGRAMAS ====== */
.programs-section {
    padding: 70px 0 80px;
    background: var(--bg-light);
}

.programs-section h2 {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

.programs-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal), var(--primary-blue));
    margin: 12px auto 0;
    border-radius: 2px;
}

.program-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    background: white;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal), var(--primary-blue));
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-teal);
}

.program-card:hover::before {
    opacity: 1;
}

.program-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: var(--transition);
}

.program-card:hover img {
    transform: scale(1.03);
}

.program-card .card-body {
    padding: 28px 30px 30px;
}

.program-card .badge {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
    color: white;
    padding: 5px 18px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    display: inline-block;
}

.program-card h3 {
    color: var(--primary-teal);
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.2rem;
}

.program-card p {
    color: #6c757d;
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.program-card .btn-outline-primary {
    color: var(--primary-teal);
    border-color: var(--primary-teal);
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
    transition: var(--transition);
}

.program-card .btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 190, 198, 0.3);
}

/* ====== SECCIÓN DE INVESTIGACIONES ====== */
.research-section {
    padding: 70px 0 80px;
    background: white;
}

.research-section h2 {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

.research-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal), var(--primary-blue));
    margin: 12px auto 0;
    border-radius: 2px;
}

.research-item {
    display: flex;
    margin-bottom: 35px;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.research-item:last-child {
    margin-bottom: 0;
}

.research-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--primary-teal);
}

.research-img {
    flex: 0 0 300px;
    max-width: 300px;
    overflow: hidden;
}

.research-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.research-item:hover .research-img img {
    transform: scale(1.05);
}

.research-content {
    flex: 1;
    padding: 30px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.research-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    color: #6c757d;
    font-size: 0.85rem;
}

.research-meta span {
    margin-right: 25px;
    margin-bottom: 5px;
}

.research-meta i {
    margin-right: 6px;
    color: var(--primary-teal);
}

.research-content h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.2rem;
}

.research-content p {
    color: #6c757d;
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.research-content .btn-primary {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
    border: none;
    border-radius: 50px;
    padding: 8px 28px;
    font-weight: 600;
    transition: var(--transition);
    align-self: flex-start;
}

.research-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 190, 198, 0.35);
}

/* ====== SECCIÓN DE RECURSOS ====== */
.resources-section {
    padding: 70px 0 80px;
    background: var(--bg-gray);
}

.resources-section h2 {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

.resources-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal), var(--primary-blue));
    margin: 12px auto 0;
    border-radius: 2px;
}

.resource-card {
    background: white;
    border-radius: var(--border-radius-sm);
    padding: 30px 28px;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-teal);
}

.resource-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 190, 198, 0.25);
}

.resource-card:hover .resource-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 25px rgba(0, 190, 198, 0.35);
}

.resource-card h3 {
    color: var(--primary-teal);
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 1.15rem;
}

.resource-card p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.resource-card .btn-outline-primary {
    color: var(--primary-teal);
    border-color: var(--primary-teal);
    border-radius: 50px;
    padding: 6px 25px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.resource-card .btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 190, 198, 0.3);
}

/* ====== SECCIÓN DE CONTACTO ====== */
.contact-section {
    padding: 70px 0 80px;
    background: white;
}

.contact-card {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
    color: white;
    border-radius: var(--border-radius);
    padding: 45px 50px;
    box-shadow: 0 10px 35px rgba(0, 190, 198, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}

.contact-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    pointer-events: none;
}

.contact-card h2 {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

.contact-card p {
    font-size: 1.05rem;
    opacity: 0.95;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.contact-card a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    font-weight: 500;
    display: inline-block;
    margin: 0 10px;
    padding: 8px 0;
}

.contact-card a:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.contact-card a i {
    margin-right: 8px;
}

/* ====== RESPONSIVE ====== */

/* Tablets grandes */
@media (max-width: 992px) {
    .research-hero {
        padding: 80px 0 60px;
    }
    
    .research-hero h1 {
        font-size: 2.3rem;
    }
    
    .research-hero p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .research-item {
        flex-direction: column;
    }
    
    .research-img {
        flex: 0 0 100%;
        max-width: 100%;
        height: 220px;
    }
    
    .research-content {
        padding: 25px 30px;
    }
    
    .program-card img {
        height: 180px;
    }
    
    .contact-card {
        padding: 35px 30px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .research-hero {
        padding: 60px 0 50px;
    }
    
    .research-hero h1 {
        font-size: 1.8rem;
    }
    
    .research-hero p {
        font-size: 0.95rem;
    }
    
    .hero-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    
    .programs-section,
    .research-section,
    .resources-section,
    .contact-section {
        padding: 50px 0 60px;
    }
    
    .programs-section h2,
    .research-section h2,
    .resources-section h2 {
        font-size: 1.7rem;
    }
    
    .programs-section h2::after,
    .research-section h2::after,
    .resources-section h2::after {
        width: 60px;
        height: 3px;
    }
    
    .program-card img {
        height: 200px;
    }
    
    .program-card .card-body {
        padding: 22px 25px 25px;
    }
    
    .program-card h3 {
        font-size: 1.1rem;
    }
    
    .research-img {
        height: 200px;
    }
    
    .research-content {
        padding: 22px 25px;
    }
    
    .research-content h3 {
        font-size: 1.1rem;
    }
    
    .research-meta span {
        margin-right: 15px;
        font-size: 0.8rem;
    }
    
    .resource-card {
        padding: 25px 20px;
    }
    
    .resource-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .resource-card h3 {
        font-size: 1.05rem;
    }
    
    .contact-card {
        padding: 30px 25px;
    }
    
    .contact-card h2 {
        font-size: 1.4rem;
    }
    
    .contact-card p {
        font-size: 0.95rem;
    }
    
    .contact-card a {
        display: block;
        margin: 8px 0;
    }
}

/* Móviles pequeños */
@media (max-width: 576px) {
    .research-hero {
        padding: 50px 0 40px;
    }
    
    .research-hero h1 {
        font-size: 1.5rem;
    }
    
    .research-hero p {
        font-size: 0.85rem;
        padding: 0 10px;
    }
    
    .hero-btn {
        padding: 10px 24px;
        font-size: 0.85rem;
    }
    
    .programs-section,
    .research-section,
    .resources-section,
    .contact-section {
        padding: 40px 0 50px;
    }
    
    .programs-section h2,
    .research-section h2,
    .resources-section h2 {
        font-size: 1.4rem;
    }
    
    .programs-section h2::after,
    .research-section h2::after,
    .resources-section h2::after {
        width: 50px;
        height: 3px;
    }
    
    .program-card {
        border-radius: var(--border-radius-sm);
        margin-bottom: 20px;
    }
    
    .program-card img {
        height: 170px;
    }
    
    .program-card .card-body {
        padding: 18px 18px 22px;
    }
    
    .program-card h3 {
        font-size: 1rem;
    }
    
    .program-card p {
        font-size: 0.85rem;
    }
    
    .program-card .badge {
        font-size: 0.65rem;
        padding: 4px 14px;
    }
    
    .program-card .btn-outline-primary {
        padding: 6px 20px;
        font-size: 0.8rem;
    }
    
    .research-item {
        border-radius: var(--border-radius-sm);
        margin-bottom: 25px;
    }
    
    .research-img {
        height: 170px;
    }
    
    .research-content {
        padding: 18px 18px 22px;
    }
    
    .research-content h3 {
        font-size: 1rem;
    }
    
    .research-content p {
        font-size: 0.85rem;
    }
    
    .research-meta {
        font-size: 0.75rem;
    }
    
    .research-meta span {
        margin-right: 12px;
    }
    
    .research-content .btn-primary {
        padding: 6px 22px;
        font-size: 0.8rem;
    }
    
    .resource-card {
        padding: 20px 16px;
        border-radius: 8px;
        margin-bottom: 15px;
    }
    
    .resource-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .resource-card h3 {
        font-size: 0.95rem;
    }
    
    .resource-card p {
        font-size: 0.82rem;
    }
    
    .resource-card .btn-outline-primary {
        padding: 5px 18px;
        font-size: 0.75rem;
    }
    
    .contact-card {
        padding: 25px 20px;
        border-radius: var(--border-radius-sm);
    }
    
    .contact-card h2 {
        font-size: 1.2rem;
    }
    
    .contact-card p {
        font-size: 0.85rem;
    }
    
    .contact-card a {
        font-size: 0.85rem;
    }
}

/* Móviles muy pequeños */
@media (max-width: 400px) {
    .research-hero h1 {
        font-size: 1.3rem;
    }
    
    .research-hero p {
        font-size: 0.8rem;
    }
    
    .hero-btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
    
    .program-card img {
        height: 150px;
    }
    
    .research-img {
        height: 150px;
    }
    
    .contact-card h2 {
        font-size: 1rem;
    }
}