/* ===== DOCUMENTATION STYLES ===== */

/* ===== DOC HERO SECTION ===== */
.doc-hero {
    padding: 100px 20px 60px 20px;
    text-align: center;
    position: relative;
    z-index: auto;
}

/* ===== DOC CONTENT LAYOUT ===== */

.doc-hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #a8edea;
}

.breadcrumb-separator {
    margin: 0 15px;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-current {
    color: #a8edea;
    font-weight: 500;
}

/* ===== TEXT LINKS ===== */
.text-link {
    color: #2a7a7a;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: #4d9191;
    text-decoration: none;
}

.doc-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.doc-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

/* ===== DOC CONTENT LAYOUT ===== */
.doc-content {
    position: relative;
    z-index: auto;
    padding: 60px 20px 100px 20px;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.1) 2%,
        rgba(255, 255, 255, 0.3) 6%,
        rgba(255, 255, 255, 0.6) 12%,
        rgba(255, 255, 255, 0.8) 18%,
        rgba(255, 255, 255, 0.8) 82%,
        rgba(255, 255, 255, 0.6) 88%,
        rgba(255, 255, 255, 0.3) 94%,
        rgba(255, 255, 255, 0.1) 98%,
        transparent 100%
    );
    min-height: 100vh;
}

/* For short content pages - NO gradient */
.doc-content.short-content {
    background: transparent;
    min-height: auto;
}

.doc-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: flex-start;
    position: relative;
}

/* Force perfect alignment */
.doc-sidebar,
.doc-main {
    align-self: flex-start;
    vertical-align: top;
}

/* ===== SIDEBAR ===== */
.doc-sidebar {
    width: 280px;
    flex-shrink: 0;
    height: fit-content;
    /* JavaScript will handle positioning */
    transition: all 0.3s ease;
    margin-top: 0;
    padding-top: 0;
}

/* Sidebar toggle button - hidden by default (desktop) */
.sidebar-toggle {
    display: none;
}

.sidebar-sticky {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px 25px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    margin-top: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* Enhanced style when sidebar is fixed */
.doc-sidebar[style*="position: fixed"] .sidebar-sticky {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Adaptive colors for dark background (top section) */
.doc-sidebar.dark-bg {
    --sidebar-text-color: rgba(255, 255, 255, 0.9);
    --sidebar-link-color: rgba(255, 255, 255, 0.7);
    --sidebar-link-hover-color: rgba(255, 255, 255, 0.9);
    --sidebar-hover-bg: rgba(255, 255, 255, 0.1);
    --sidebar-active-color: #a8edea;
    --sidebar-active-bg: rgba(168, 237, 234, 0.15);
    --sidebar-active-border: #a8edea;
}

/* Default colors for light background (content section) */
.doc-sidebar.light-bg {
    --sidebar-text-color: #2c3e50;
    --sidebar-link-color: rgba(44, 62, 80, 0.7);
    --sidebar-link-hover-color: rgba(44, 62, 80, 0.9);
    --sidebar-hover-bg: rgba(77, 145, 145, 0.1);
    --sidebar-active-color: #4d9191;
    --sidebar-active-bg: rgba(77, 145, 145, 0.15);
    --sidebar-active-border: #4d9191;
}

.sidebar-sticky h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sidebar-text-color, #2c3e50);
    margin-bottom: 20px;
    margin-top: 0;
    transition: color 0.3s ease;
}

.doc-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-nav-link {
    padding: 12px 15px;
    color: var(--sidebar-link-color, rgba(44, 62, 80, 0.7));
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.doc-nav-link:hover {
    background: var(--sidebar-hover-bg, rgba(77, 145, 145, 0.1));
    color: var(--sidebar-link-hover-color, rgba(44, 62, 80, 0.9));
    transform: translateX(5px);
}

.doc-nav-link.active {
    background: var(--sidebar-active-bg, rgba(77, 145, 145, 0.15));
    color: var(--sidebar-active-color, #4d9191);
    border-left-color: var(--sidebar-active-border, #4d9191);
    font-weight: 500;
}

/* ===== MAIN CONTENT ===== */
.doc-main {
    flex: 1;
    min-width: 0;
    padding: 0 30px;
}

.doc-main-full {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

/* Content cards in full-width layout should be wider */
.doc-main-full .content-card {
    max-width: none;
    width: 100%;
    padding: 40px 60px;
    margin: 0 auto;
}

.content-section {
    margin: 0 !important;
    margin-bottom: 50px !important;
    padding: 0 !important;
}

.content-section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.content-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 30px 35px;
    position: relative;
    overflow: hidden;
    margin: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #a8edea, #fed6e3);
    opacity: 0.8;
}

.content-card h2 {
    font-size: clamp(1.8rem, 4vw, 2.1rem);
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    margin-top: 0 !important;
}

.content-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    margin-top: 30px;
}

.content-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4d9191;
    margin-bottom: 10px;
    margin-top: 20px;
}

.content-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(44, 62, 80, 0.85);
    margin-bottom: 20px;
}

.content-card > *:last-child {
    margin-bottom: 0 !important;
}

.content-card .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: rgba(44, 62, 80, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.content-card ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-card li {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(44, 62, 80, 0.8);
    margin-bottom: 8px;
}

/* ===== PROBLEM STATS ===== */
.problem-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.stat-highlight {
    text-align: center;
    padding: 25px 20px;
    background: rgba(44, 62, 80, 0.06);
    border-radius: 15px;
    border: 1px solid rgba(44, 62, 80, 0.1);
}

.stat-highlight .stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 8px;
}

.stat-highlight .stat-label {
    font-size: 0.95rem;
    color: rgba(44, 62, 80, 0.8);
    font-weight: 500;
}

/* ===== CHALLENGE LIST ===== */
.challenge-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.challenge-item {
    padding: 25px;
    background: rgba(44, 62, 80, 0.04);
    border-radius: 15px;
    border-left: 4px solid #ff6b6b;
}

.challenge-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    margin-top: 0;
}

.challenge-item p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

/* ===== SOLUTION COMPONENTS ===== */
.solution-intro {
    font-size: 1.25rem;
    font-weight: 500;
    color: #4d9191;
    margin-bottom: 20px;
    text-align: center;
}

.solution-components {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.component-card {
    text-align: left;
    padding: 35px 30px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.component-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a8edea, #fed6e3);
    opacity: 0.8;
}

.component-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(168, 237, 234, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.component-card:hover::before {
    opacity: 1;
    height: 4px;
}

.component-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.component-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    position: relative;
}

.component-card p {
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.6;
    color: rgba(44, 62, 80, 0.85);
}

/* ===== INNOVATION SECTION ===== */
.innovation-highlight {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 215, 155, 0.15), rgba(25, 84, 123, 0.15));
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 215, 155, 0.2);
}

.innovation-highlight h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    margin-top: 0;
}

.innovation-features {
    margin-top: 20px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.feature-row.reverse {
    grid-template-columns: 300px 1fr;
}

.feature-text h4 {
    font-size: 1.3rem;
    color: #a8edea;
    margin-bottom: 15px;
    margin-top: 0;
}

.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-diagram {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-style: italic;
}

/* ===== IMPACT AREAS ===== */
.impact-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.impact-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.impact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    margin-top: 0;
}

.impact-item ul {
    margin: 0;
    padding-left: 20px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .solution-components {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .doc-hero {
        padding: 120px 15px 60px 15px;
    }
    
    .doc-content {
        padding: 0 15px 80px 15px;
    }
    
    .doc-container {
        flex-direction: column;
        gap: 40px;
    }
    
    /* Botón de sidebar para móvil */
    .sidebar-toggle {
        position: fixed;
        bottom: 30px;
        right: 20px;
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 12px;
        cursor: pointer;
        z-index: 100000;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar-toggle:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }
    
    /* Variante de icono para fondo claro */
    .sidebar-toggle.light-bg .sidebar-icon::before,
    .sidebar-toggle.light-bg .sidebar-icon::after,
    .sidebar-toggle.light-bg .sidebar-icon span {
        background: #000;
    }
    
    /* Icono del botón (3 líneas de diferentes longitudes) */
    .sidebar-icon {
        width: 24px;
        height: 16px;
        position: relative;
    }
    
    /* Primera línea - la más larga */
    .sidebar-icon::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 2px;
        background: #fff;
        border-radius: 1px;
    }
    
    /* Segunda línea - la más corta */
    .sidebar-icon span {
        position: absolute;
        left: 0;
        top: 7px;
        width: 50%;
        height: 2px;
        background: #fff;
        border-radius: 1px;
    }
    
    /* Tercera línea - mediana */
    .sidebar-icon::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 75%;
        height: 2px;
        background: #fff;
        border-radius: 1px;
    }
    
    .doc-sidebar {
        position: fixed !important;
        top: 50%;
        left: -100%;
        width: 80%;
        max-width: 350px;
        height: auto;
        max-height: 70vh;
        transform: translateY(-50%);
        background: none;
        backdrop-filter: none;
        border: none;
        z-index: 99999;
        transition: left 0.3s ease;
        overflow: visible;
        box-shadow: none;
    }
    
    .doc-sidebar.active {
        left: 0;
        transform: translateY(-50%);
    }
    
    .sidebar-sticky {
        padding: 25px 20px;
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(30px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 16px !important;
        margin: 20px;
        box-shadow: none !important;
        overflow: hidden;
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
    }
    
    .doc-sidebar.active .sidebar-sticky {
        opacity: 1;
        transform: translateX(0);
    }
    
    .doc-nav {
        flex-direction: column;
        gap: 8px;
    }
    
    .doc-nav-link {
        padding: 12px 16px;
        font-size: 0.95rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .doc-nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .content-card {
        padding: 35px 25px;
    }
    
    .problem-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .challenge-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .solution-components {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }
    
    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .impact-areas {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .breadcrumb-separator {
        margin: 0 8px;
    }
}

@media (max-width: 480px) {
    .content-card {
        padding: 25px 20px;
    }
    
    .stat-highlight {
        padding: 20px 15px;
    }
    
    .component-card {
        padding: 25px 20px;
    }
    
    .innovation-highlight {
        padding: 30px 20px;
    }
    
    .impact-item {
        padding: 25px 20px;
    }
    
    .doc-main-full {
        padding: 0 10px;
        max-width: none;
        margin: 0;
    }
    
    .doc-main-full .content-card {
        padding: 20px 15px;
    }
}

/* ===== MISSION, VISION, VALUES CARDS ===== */
.mvv-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.mvv-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    position: relative;
}

.mvv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    border-color: rgba(168, 237, 234, 0.6);
}

.mvv-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 25px;
}

.mvv-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    background: #b8e6e1;
    padding: 12px 30px;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(184, 230, 225, 0.3);
}

.mvv-content {
    padding: 15px 25px 25px 25px;
    text-align: center;
}

.mvv-content p {
    margin: 0 0 15px 0;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(44, 62, 80, 0.8);
}

.mvv-content p:last-child {
    margin-bottom: 0;
}

.mvv-highlight {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: rgba(44, 62, 80, 0.95) !important;
    margin-bottom: 15px !important;
}

/* ===== SECTION CTA LINKS ===== */
.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 10px;
}

.section-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(168, 237, 234, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(168, 237, 234, 0.3);
    border-radius: 25px;
    color: #2a7a7a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.section-link-btn:hover {
    background: rgba(168, 237, 234, 0.25);
    border-color: rgba(168, 237, 234, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(168, 237, 234, 0.2);
    color: #2a7a7a;
    text-decoration: none;
}

.section-link-btn svg {
    transition: transform 0.3s ease;
}

.section-link-btn:hover svg {
    transform: translateX(3px);
}

/* Responsive design for MVV cards */
@media (max-width: 1024px) {
    .mvv-cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .mvv-card {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .section-cta {
        margin-top: 35px;
    }
    
    .section-link-btn {
        padding: 11px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .mvv-cards {
        margin-top: 30px;
        gap: 20px;
    }
    
    .mvv-header {
        padding: 18px 20px;
    }
    
    .mvv-header h3 {
        font-size: 1.3rem;
        padding: 10px 25px;
    }
    
    .mvv-content {
        padding: 15px 20px 20px 20px;
    }
    
    .mvv-content p {
        font-size: 0.95rem;
    }
    
    .mvv-highlight {
        font-size: 0.95rem !important;
    }
    
    .section-cta {
        margin-top: 30px;
    }
    
    .section-link-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        gap: 8px;
    }
}

/* ===== CONTENT IMAGES ===== */
.mission-diagram,
.solution-diagram {
    margin: 30px 0;
    text-align: center;
}

.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    /* box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1); */
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mission-diagram,
    .solution-diagram {
        margin: 25px 0;
    }
    
    .content-image {
        border-radius: 12px;
    }
}

/* ===== TIMELINE STYLES ===== */
.timeline-container {
    margin: 40px 0;
    padding: 0;
}

.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 100%;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a8edea, #4d9191, #fed6e3);
    border-radius: 2px;
    z-index: 1;
}

.timeline-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.timeline-marker {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 3px solid #4d9191;
    border-radius: 50%;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(77, 145, 145, 0.2);
}

.timeline-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #4d9191;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.1);
    border-color: #a8edea;
    box-shadow: 0 6px 20px rgba(168, 237, 234, 0.3);
}

.timeline-item:hover .timeline-marker::before {
    background: #a8edea;
}

.timeline-content {
    max-width: 280px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.timeline-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.timeline-content p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(44, 62, 80, 0.8);
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

.timeline-content strong {
    color: #4d9191;
    font-weight: 600;
}

/* Responsive Timeline */
@media (max-width: 1024px) {
    .timeline {
        flex-direction: column;
        gap: 30px;
    }
    
    .timeline::before {
        top: 0;
        left: 20px;
        right: auto;
        bottom: 0;
        width: 3px;
        height: 100%;
        background: linear-gradient(180deg, #a8edea, #4d9191, #fed6e3);
    }
    
    .timeline-item {
        flex-direction: row;
        text-align: left;
        align-items: center;
        padding-left: 60px;
    }
    
    .timeline-marker {
        position: absolute;
        left: 0;
        margin-bottom: 0;
        margin-right: 20px;
    }
    
    .timeline-content {
        max-width: none;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .timeline-container {
        margin: 30px 0;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-marker {
        width: 30px;
        height: 30px;
    }
    
    .timeline-marker::before {
        width: 8px;
        height: 8px;
    }
    
    .timeline-content {
        padding: 12px;
    }
    
    .timeline-content h4 {
        font-size: 1rem;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
    }
}

/* ===== BIBLIOGRAPHY SECTION ===== */
.bibliography-list {
    margin-top: 20px;
}

.bibliography-list ul {
    list-style: none;
    padding-left: 0;
}

.bibliography-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
    font-size: 0.95rem;
    color: rgba(44, 62, 80, 0.85);
}

.bibliography-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: #4d9191;
    font-size: 1.2rem;
}

.bibliography-list li em {
    font-style: italic;
    color: rgba(44, 62, 80, 0.9);
}

.bibliography-list li a {
    color: #4d9191;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bibliography-list li a:hover {
    color: #3a7373;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .bibliography-list li {
        padding-left: 15px;
        font-size: 0.9rem;
    }
}

/* ===== IMAGE CAPTIONS ===== */
.image-caption {
    font-size: 0.9rem;
    color: rgba(44, 62, 80, 0.7);
    text-align: center;
    margin: 10px 0 0 0;
    padding: 0 20px;
    line-height: 1.4;
    font-style: italic;
}

.brain-comparison,
.prevalence-map,
.patent-trends,
.epo-trends,
.mission-diagram, 
.solution-diagram {
    margin: 25px 0;
    text-align: center;
}

@media (max-width: 768px) {
    .image-caption {
        font-size: 0.85rem;
        padding: 0 10px;
    }
}

/* ===== WHY NOW CARDS ===== */
.why-now-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 25px 0 30px 0;
}

.why-now-card {
    background: rgba(77, 145, 145, 0.1);
    border: 1px solid rgba(77, 145, 145, 0.2);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.why-now-card:hover {
    background: rgba(77, 145, 145, 0.15);
    border-color: rgba(77, 145, 145, 0.3);
    transform: translateY(-2px);
}

.why-now-card h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4d9191;
    line-height: 1.3;
}

@media (max-width: 1200px) {
    .why-now-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .why-now-card {
        padding: 16px 12px;
    }
    
    .why-now-card h4 {
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {
    .doc-main-full {
        padding: 0 30px;
        max-width: none;
        margin: 0;
    }
    
    .doc-main-full .content-card {
        padding: 35px 30px;
    }
}

@media (max-width: 768px) {
    .why-now-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .why-now-card {
        padding: 18px 15px;
    }
    
    .why-now-card h4 {
        font-size: 0.95rem;
    }
    
    .doc-main-full {
        padding: 0 15px;
        max-width: none;
        margin: 0;
    }
    
    .doc-main-full .content-card {
        padding: 25px 15px;
    }
}

/* ===== PDF EMBED STYLES ===== */
.pdf-container {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-container h3 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.pdf-embed {
    background: #fff;
    border-radius: 12px;
    border: 2px solid rgba(77, 145, 145, 0.2);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.pdf-embed iframe {
    border: none;
    border-radius: 10px;
    display: block;
}

/* General iframe styles for better responsiveness */
.content-card iframe {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(77, 145, 145, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .pdf-container {
        padding: 20px 15px;
        margin-top: 30px;
    }
    
    .pdf-embed iframe {
        height: 600px;
    }
    
    /* General iframe responsiveness for mobile */
    .content-card iframe {
        height: 300px !important;
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    /* Extra small screens - make iframes even smaller */
    .content-card iframe {
        height: 250px !important;
        min-height: 200px;
    }
}

/* ===== RESULTS PAGE STYLES ===== */
.figure-container {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.results-figure {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.figure-caption {
    font-size: 0.9rem;
    color: #999999 !important;
    line-height: 1.5;
    text-align: left;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #4d9191;
}

.figure-caption strong {
    color: #4d9191 !important;
    font-weight: 600;
}

.figure-caption,
.figure-caption * {
    color: #999999 !important;
}

.figure-caption strong {
    color: #4d9191 !important;
    font-weight: 600;
}

@media (max-width: 768px) {
    .figure-container {
        padding: 15px;
        margin: 20px 0;
    }
    
    .figure-caption {
        font-size: 0.85rem;
        padding: 12px;
    }
}

/* ===== PARTS PAGE STYLES ===== */
.table-container {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow-x: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.parts-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    margin: 0;
}

.parts-table th,
.parts-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #333333 !important;
    font-size: 0.9rem;
    line-height: 1.4;
}

.parts-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: #4d9191 !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.parts-table td {
    color: #666666 !important;
    background: rgba(255, 255, 255, 0.9);
}

.parts-table tr:hover {
    background: rgba(168, 237, 234, 0.1) !important;
}

.parts-table td:first-child {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #4d9191 !important;
    background: rgba(77, 145, 145, 0.1) !important;
}

/* Protein Images */
.protein-images {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.protein-figure {
    max-width: 45%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.protein-figure:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .table-container {
        padding: 15px;
        margin: 20px 0;
    }
    
    .parts-table th,
    .parts-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .parts-table th {
        font-size: 0.75rem;
    }
    
    .protein-images {
        flex-direction: column;
        align-items: center;
    }
    
    .protein-figure {
        max-width: 90%;
    }
}

/* ===== SAFETY PAGE STYLES ===== */
.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.safety-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #4d9191;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.safety-card h3,
.safety-card h4 {
    color: #4d9191 !important;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(77, 145, 145, 0.3);
    padding-bottom: 8px;
}

.safety-card ul {
    padding-left: 20px;
    line-height: 1.5;
    margin: 0;
    color: #333333;
}

.safety-card li {
    margin-bottom: 8px;
    color: #666666;
}

.safety-card strong {
    color: #4d9191;
}

/* Safety Table Styles */
.safety-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-size: 0.85rem;
}

.safety-table th,
.safety-table td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid rgba(77, 145, 145, 0.3);
    color: #333333 !important;
    line-height: 1.3;
}

.safety-table th {
    background: rgba(77, 145, 145, 0.15);
    font-weight: 600;
    color: #4d9191 !important;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.safety-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #4d9191 !important;
}

.safety-table tr:nth-child(even) {
    background: rgba(77, 145, 145, 0.05);
}

.safety-table tr:hover {
    background: rgba(77, 145, 145, 0.1) !important;
}

@media (max-width: 768px) {
    .safety-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 0;
    }
    
    .safety-card {
        padding: 15px;
    }
    
    .safety-card h3,
    .safety-card h4 {
        font-size: 1rem;
    }
    
    .safety-table {
        font-size: 0.75rem;
    }
    
    .safety-table th,
    .safety-table td {
        padding: 6px 4px;
    }
    
    .safety-table th {
        font-size: 0.7rem;
    }
}

/* Biomarker Exploration Specific Styles */
.biomarker-conclusions {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.biomarker-conclusions li {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.biomarker-conclusions li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 178, 178, 0.3);
    transform: translateX(4px);
}

.biomarker-conclusions li strong {
    color: #66b2b2;
    font-weight: 600;
}

.biomarker-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.biomarker-figure {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.biomarker-figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .biomarker-images {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .biomarker-conclusions li {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Fix: Ensure candidates section is visible on mobile */
    #candidates {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        height: auto !important;
    }
    
    #candidates .content-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Fix: Ensure customers and feasibility sections are visible on mobile */
    #customers, #feasibility {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        height: auto !important;
    }
    
    #customers .content-card, #feasibility .content-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Model Page Specific Styles */
.glossary-container {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.glossary-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(102, 178, 178, 0.2);
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.glossary-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 178, 178, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.glossary-item dt {
    color: #66b2b2;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
    font-size: 1.1rem;
}

.glossary-item dd {
    margin: 0;
    line-height: 1.7;
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Software tools section styling */
.doc-main h3 {
    color: #66b2b2;
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(102, 178, 178, 0.3);
}

/* Ordered lists styling */
.doc-main ol {
    margin: 1.5rem 0;
    padding-left: 0;
    counter-reset: custom-counter;
    list-style: none;
}

.doc-main ol li {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #2c3e50;
    font-weight: 500;
    position: relative;
    padding-left: 3rem;
    counter-increment: custom-counter;
}

.doc-main ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #66b2b2, #4d9191);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(102, 178, 178, 0.3);
}

@media (max-width: 768px) {
    .glossary-item {
        padding: 1rem;
    }
    
    .glossary-item dt {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .glossary-item dd {
        font-size: 0.9rem;
        color: #2c3e50;
    }
    
    .doc-main h3 {
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }
    
    .doc-main ol li {
        padding-left: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .doc-main ol li::before {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.8rem;
    }
}

/* Members Page Specific Styles */
.team-photo-section {
    padding: 4rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-photo-container {
    text-align: center;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
}

.team-photo-frame {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.members-frame {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.team-group-photo {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.team-photo-caption {
    color: #ffffff;
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 500;
    margin: 1.5rem 0 0 0;
    text-align: center;
}

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

.members-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3f51;
    margin-bottom: 3rem;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem 1.5rem; /* vertical horizontal */
    margin-bottom: 4rem;
    justify-items: center;
}

/* Member Card Styles with Flip Effect */
.member-card {
    background: transparent;
    width: 100%;
    max-width: 280px;
    height: 420px;
    perspective: 1000px;
    margin: 0 auto;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.member-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-front {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    justify-content: flex-start;
    padding-top: 2rem;
}

.card-back {
    background: linear-gradient(135deg, rgba(102, 178, 178, 0.9), rgba(77, 145, 145, 0.9));
    transform: rotateY(180deg);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.member-photo-placeholder {
    width: 95%;
    height: 240px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 3px solid rgba(102, 178, 178, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.photo-icon {
    font-size: 3rem;
    opacity: 0.6;
}

.member-photo {
    width: 95%;
    height: 240px;
    border-radius: 16px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.member-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00000087 !important;
    margin-bottom: 0.3rem;
    text-align: center;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.member-card h3.member-name {
    color: #00000087 !important;
}

.member-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: #00000087;
    margin-bottom: 0.3rem;
    text-align: center;
    line-height: 1.3;
}

.member-occupation {
    font-size: 0.8rem;
    color: #00000087;
    text-align: center;
    line-height: 1.3;
}

.card-back-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.member-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #00000087;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 500;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.linkedin-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.linkedin-icon {
    width: 28px;
    height: 28px;
    background-image: url('https://static.igem.wiki/teams/5754/footer/linkedin-sf.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
    color: transparent;
}

/* Individual Member Card Colors */

/* Team Leaders - Rosa */
.member-card.estel-gubianes .card-front,
.member-card.estel-massip .card-front {
    background: rgba(255, 184, 201, 0.7);
    border-color: rgba(255, 184, 201, 0.9);
}

.member-card.estel-gubianes .card-back,
.member-card.estel-massip .card-back {
    background: linear-gradient(135deg, rgba(255, 184, 201, 1), rgba(255, 164, 181, 1));
}

/* Other Team Members - Verde agua */
.member-card.andrea-fuentes .card-front,
.member-card.andreu-boix .card-front,
.member-card.roger-solsona .card-front,
.member-card.lucia-badenas .card-front,
.member-card.julianna-colchado .card-front,
.member-card.mariona-frigola .card-front,
.member-card.claudia-fernandez .card-front,
.member-card.xavi-bernal .card-front,
.member-card.martina-paganuzzi .card-front,
.member-card.mireia-cortes .card-front {
    background: rgba(183, 220, 216, 0.7);
    border-color: rgba(183, 220, 216, 0.9);
}

.member-card.andrea-fuentes .card-back,
.member-card.andreu-boix .card-back,
.member-card.roger-solsona .card-back,
.member-card.lucia-badenas .card-back,
.member-card.julianna-colchado .card-back,
.member-card.mariona-frigola .card-back,
.member-card.claudia-fernandez .card-back,
.member-card.xavi-bernal .card-back,
.member-card.martina-paganuzzi .card-back,
.member-card.mireia-cortes .card-back {
    background: linear-gradient(135deg, rgba(183, 220, 216, 1), rgba(163, 200, 196, 1));
}

/* UIC Mentors - Amarillo */
.member-card.miguel-baena .card-front,
.member-card.rosalia-rodriguez .card-front,
.member-card.luis-ruiz .card-front {
    background: rgba(233, 213, 140, 0.7);
    border-color: rgba(233, 213, 140, 0.9);
}

.member-card.miguel-baena .card-back,
.member-card.rosalia-rodriguez .card-back,
.member-card.luis-ruiz .card-back {
    background: linear-gradient(135deg, rgba(233, 213, 140, 1), rgba(213, 193, 120, 1));
}

/* External Mentors - Lila */
.member-card.fran-antequera .card-front,
.member-card.jaume-ros .card-front {
    background: rgba(226, 188, 237, 0.7);
    border-color: rgba(226, 188, 237, 0.9);
}

.member-card.fran-antequera .card-back,
.member-card.jaume-ros .card-back {
    background: linear-gradient(135deg, rgba(226, 188, 237, 1), rgba(206, 168, 217, 1));
}

/* Advisors - Azul claro */
.member-card.miguel-rubio .card-front,
.member-card.cristina-tarrago .card-front {
    background: rgba(178, 214, 229, 0.7);
    border-color: rgba(178, 214, 229, 0.9);
}

.member-card.miguel-rubio .card-back,
.member-card.cristina-tarrago .card-back {
    background: linear-gradient(135deg, rgba(178, 214, 229, 1), rgba(158, 194, 209, 1));
}

/* Specific grid layouts for different sections */
.team-members-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1300px;
    margin: 0 auto;
}

.mentors-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    max-width: 1100px;
    margin: 0 auto 4rem auto;
    gap: 2.5rem 1.5rem;
}

/* Primera fila: 3 cards ocupando 2 columnas cada una */
.mentors-grid .member-card:nth-child(1) {
    grid-column: 1 / span 2;
}

.mentors-grid .member-card:nth-child(2) {
    grid-column: 3 / span 2;
}

.mentors-grid .member-card:nth-child(3) {
    grid-column: 5 / span 2;
}

/* Segunda fila: 2 cards centradas ocupando 2 columnas cada una */
.mentors-grid .member-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.mentors-grid .member-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.advisors-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto 4rem auto;
    gap: 2.5rem 4rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .team-members-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
    
    .mentors-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
    
    .mentors-grid .member-card:nth-child(4),
    .mentors-grid .member-card:nth-child(5) {
        grid-column: span 1;
        justify-self: center;
    }
    
    .advisors-grid {
        max-width: 700px;
        gap: 2.5rem 3rem;
    }
}

@media (max-width: 1024px) {
    .team-members-grid {
        max-width: 800px;
    }
    
    .mentors-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
    
    .advisors-grid {
        max-width: 600px;
        gap: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .team-photo-container {
        padding: 0 1rem;
    }
    
    .team-photo-frame,
    .members-frame {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .members-grid,
    .team-members-grid,
    .advisors-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 350px;
        margin: 0 auto 3rem auto;
    }
    
    .mentors-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        max-width: 350px !important;
        margin: 0 auto 3rem auto !important;
    }
    
    /* Reset all mentor card positioning for tablet/mobile */
    .mentors-grid .member-card:nth-child(1),
    .mentors-grid .member-card:nth-child(2),
    .mentors-grid .member-card:nth-child(3),
    .mentors-grid .member-card:nth-child(4),
    .mentors-grid .member-card:nth-child(5) {
        grid-column: auto !important;
        justify-self: center !important;
    }
    
    .mentors-grid .member-card:nth-child(4),
    .mentors-grid .member-card:nth-child(5) {
        grid-column: span 1;
        justify-self: center;
    }
    
    .member-card {
        width: 100%;
        height: 400px;
    }
    
    .card-front,
    .card-back {
        padding: 1.25rem;
    }
    
    .member-photo-placeholder {
        width: 95%;
        height: 200px;
        margin-bottom: 0.2rem;
    }
    
    .member-photo {
        width: 95%;
        height: 200px;
        margin-bottom: 0.2rem;
    }
    
    .member-name {
        font-size: 1.1rem;
    }
    
    .member-quote {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .members-container {
        padding: 0 1rem;
    }
    
    .member-card {
        height: 380px;
    }
    
    .card-front,
    .card-back {
        padding: 1rem;
    }
    
    .member-photo-placeholder {
        width: 95%;
        height: 180px;
        margin-bottom: 0.15rem;
    }
    
    .member-photo {
        width: 95%;
        height: 180px;
        margin-bottom: 0.15rem;
    }
    
    .member-name {
        font-size: 1.1rem;
    }
    
    .member-role {
        font-size: 0.9rem;
    }
    
    .member-occupation {
        font-size: 0.8rem;
    }
    
    .member-quote {
        font-size: 0.95rem;
    }
}

/* Extra specific rule for mentors on small screens */
@media (max-width: 600px) {
    .mentors-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        max-width: 300px !important;
        margin: 0 auto 3rem auto !important;
    }
    
    .mentors-grid .member-card {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        grid-column: auto !important;
    }
    
    /* Reset all specific positioning rules for mobile */
    .mentors-grid .member-card:nth-child(1),
    .mentors-grid .member-card:nth-child(2),
    .mentors-grid .member-card:nth-child(3),
    .mentors-grid .member-card:nth-child(4),
    .mentors-grid .member-card:nth-child(5) {
        grid-column: auto !important;
        justify-self: center !important;
    }
}

/* ===== ENTREPRENEURSHIP PAGE STYLES ===== */

.quote-section {
    margin: 40px 0;
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-section blockquote {
    font-size: 1.3rem;
    font-style: italic;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.quote-section cite {
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
}

.accordion-section {
    margin: 30px 0;
}

.accordion-item {
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.accordion-header {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #007C7A;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    outline: none;
    transition: all 0.3s ease;
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
}

.accordion-header:hover {
    background: rgba(0, 124, 122, 0.1);
}

.accordion-header::marker {
    display: none;
}

.accordion-header::before {
    content: "▼";
    font-size: 0.8rem;
    color: #007C7A;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-right: 15px;
}

.accordion-item[open] .accordion-header::before {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 20px 20px 20px;
    line-height: 1.6;
}

.accordion-content p {
    margin: 12px 0;
}

.pdf-container {
    margin: 30px 0;
    text-align: center;
}

.pdf-fallback {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.pdf-fallback p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.mission-vision-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.mvv-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.mvv-item h3 {
    color: #007C7A;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.dual-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.dual-image-container .content-image {
    width: 48%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.inline-link {
    color: #007C7A;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.inline-link:hover {
    color: #005a5a;
}

/* Responsive design for entrepreneurship page */
@media (max-width: 768px) {
    .quote-section blockquote {
        font-size: 1.1rem;
    }
    
    .accordion-header {
        font-size: 1rem;
        padding: 15px;
    }
    
    .dual-image-container {
        flex-direction: column;
    }
    
    .dual-image-container .content-image {
        width: 100%;
        max-width: 400px;
    }
    
    .mission-vision-values {
        grid-template-columns: 1fr;
    }
}

/* ===== PUBLIC ENGAGEMENT PAGE STYLES ===== */

.pe-navigation-section {
    margin: 40px 0;
    text-align: center;
}

.pe-navigation-section h4 {
    font-weight: bold;
    color: #ff4f87;
    margin-bottom: 30px;
    font-size: 1.2rem;
    text-align: center;
}

.pe-nav-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.pe-nav-card {
    display: block;
    padding: 25px;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.pe-nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #333;
}

.pe-nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.nav-card-content {
    position: relative;
    z-index: 1;
}

.nav-card-content h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
    color: #2c3e50;
}

.nav-card-content p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    opacity: 0.8;
    color: #34495e;
}

/* Card color themes - Updated to match page colors */
.bridges-card {
    background: linear-gradient(135deg, #a8edea, #7dd3c0);
}

.social-card {
    background: linear-gradient(135deg, #fed6e3, #f7b3d1);
}

.communication-card {
    background: linear-gradient(135deg, #b8e6e1, #a8edea);
}

.events-card {
    background: linear-gradient(135deg, #f0f1cc, #e3e4c1);
}

.social-media-summary-card {
    background: linear-gradient(135deg, #fed6e3, #f7b3d1);
    padding: 30px;
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.social-media-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.social-media-summary-card p {
    position: relative;
    z-index: 1;
    color: #2c3e50;
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 20px;
}

.social-media-summary-card p:last-child {
    margin-bottom: 0;
}

.event-details {
    margin: 30px 0;
}

.event-subsection {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #007C7A;
}

.event-subsection h4 {
    color: #007C7A;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.event-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.gallery-image {
    width: 30%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.social-media-overview {
    text-align: center;
    margin: 30px 0;
}

.clickable-map {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

.social-platforms-section {
    margin: 40px 0;
}

.platform-overview {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.platform-image {
    flex: 0 0 35%;
}

.platform-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.platform-description {
    flex: 1;
    text-align: justify;
}

.platform-details {
    margin: 40px 0;
}

.platform-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 40px 0;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-section:last-child {
    border-bottom: none;
}

.platform-content {
    flex: 1;
    text-align: justify;
}

.platform-content h4 {
    color: #007C7A;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.influencer-section {
    margin: 40px 0;
}

.influencer-details {
    margin: 30px 0;
}

.influencer-card {
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #5ebdaa;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.influencer-card h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
}

.influencer-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #000;
    text-align: justify;
}

.influencer-image-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 30px 0;
}

.influencer-image {
    flex: 0 0 35%;
    text-align: center;
}

.influencer-thanks {
    flex: 1;
    text-align: justify;
}

.influencer-links {
    font-size: 1.1rem;
    color: #ff4f87;
    margin-top: 20px;
    text-align: center;
}

.event-header {
    display: flex;
    align-items: center;
    margin: 40px 0 20px 0;
    gap: 15px;
}

.event-logo {
    flex: 0 0 80px;
}

.event-logo-img {
    width: 80px;
    height: auto;
    border-radius: 8px;
}

.event-title {
    flex: 1;
}

.event-title h3 {
    margin: 0;
    color: #007C7A;
    font-size: 1.2rem;
}

.event-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.info-card {
    padding: 20px;
    border: 2px solid #f8a8c3;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    text-align: justify;
}

.info-card h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
}

.info-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #000;
    line-height: 1.5;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 600px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    display: none;
}

.carousel-slide.active-slide {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.carousel-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%);
    border: none;
    outline: none;
}

.carousel-btn.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive design for public engagement page */
@media (max-width: 768px) {
    /* Forzar visibilidad de la sección social */
    #social {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    #social .content-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Deshabilitar animaciones que puedan interferir en móviles */
    #social.scroll-fade,
    #social .fade-in-up {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .platform-overview,
    .platform-section,
    .influencer-image-section {
        flex-direction: column;
    }
    
    .platform-image,
    .influencer-image {
        flex: none;
        margin-bottom: 20px;
    }
    
    .event-header {
        flex-direction: column;
        text-align: center;
    }
    
    .event-info-cards {
        grid-template-columns: 1fr;
    }
    
    .gallery-image {
        width: 45%;
        max-width: 150px;
    }
    
    .carousel-container {
        max-width: 90%;
    }
    
    .pe-nav-cards {
        max-width: 95%;
        gap: 15px;
    }
    
    .pe-nav-card {
        padding: 20px;
    }
    
    .nav-card-content h5 {
        font-size: 1rem;
    }
    
    .nav-card-content p {
        font-size: 0.9rem;
    }
    
    .social-media-summary-card {
        margin: 30px 0;
        padding: 25px;
    }
    
    .social-media-summary-card p {
        font-size: 1rem;
        text-align: left;
    }
    
    .social-media-overview {
        margin: 20px 0;
    }
    
    .clickable-map {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
    
    .social-platforms-section {
        margin: 30px 0;
    }
    
    .platform-overview {
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .platform-details {
        margin: 30px 0;
    }
    
    .platform-section {
        gap: 15px;
        margin: 30px 0;
        padding: 20px 0;
    }
    
    .platform-content h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .platform-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Asegurar que todos los elementos de social media sean visibles */
    .social-platforms-section,
    .platform-overview,
    .platform-details,
    .platform-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .platform-image,
    .platform-description,
    .platform-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px;
    }
    
    /* Estilos específicos para imágenes en móviles */
    .platform-image img,
    .content-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }
}

@media (min-width: 769px) {
    .pe-nav-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}