/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a4d7a;
    --secondary-color: #2563a8;
    --accent-color: #0ea5e9;
    --dark-bg: #0f1419;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --border-color: #cbd5e1;
    --medical-red: #b91c1c;
    --medical-green: #047857;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    color: var(--text-primary);
    background: linear-gradient(to bottom, #e2e8f0 0%, #f1f5f9 100%);
    min-height: 100vh;
    padding: 30px 20px;
    letter-spacing: 0.01em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.header {
    background: linear-gradient(to right, #0f172a 0%, #1e3a5f 100%);
    color: white;
    padding: 50px 60px;
    text-align: center;
    position: relative;
    border-bottom: 4px solid var(--accent-color);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.02) 10px,
        rgba(255, 255, 255, 0.02) 20px
    );
    opacity: 0.5;
}

.header > * {
    position: relative;
    z-index: 1;
}

.header-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 30px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Segoe UI', sans-serif;
}

.main-title {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    font-family: 'Georgia', serif;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 35px;
    opacity: 0.93;
    font-family: 'Georgia', serif;
    font-style: italic;
}

.authors {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    border-radius: 6px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.25);
    max-width: 90%;
}

.authors p {
    font-size: 0.95rem;
    line-height: 1.7;
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 0.3px;
}

/* Main Content */
.content {
    padding: 60px 40px;
}

.section {
    margin-bottom: 50px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.section-icon {
    font-size: 2rem;
    margin-right: 18px;
    opacity: 0.8;
}

.section-header h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 700;
    font-family: 'Georgia', serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 1.4rem;
}

.section-content {
    padding-left: 60px;
}

.section-content p {
    margin-bottom: 18px;
    font-size: 1.05rem;
    line-height: 1.9;
    text-align: justify;
    color: var(--text-primary);
}

.section-content h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 35px;
    margin-bottom: 18px;
    font-weight: 700;
    font-family: 'Georgia', serif;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.section-content h5 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
}

/* Info Box */
.info-box {
    background: #f8fafc;
    border-left: 5px solid var(--secondary-color);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--secondary-color);
    padding: 25px 35px;
    border-radius: 6px;
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
}

.info-box h4 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.info-box h5 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.info-box p {
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1rem;
}

.info-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Result Box */
.result-box {
    background: #fef2f2;
    border: 2px solid var(--medical-red);
    border-left: 6px solid var(--medical-red);
    padding: 30px 35px;
    border-radius: 6px;
    text-align: left;
    box-shadow: var(--shadow);
}

.result-box p {
    font-size: 1.05rem;
    color: #7f1d1d;
    margin: 0;
    line-height: 1.8;
}

.result-box strong {
    font-weight: 700;
    color: var(--medical-red);
}

.result-box ol {
    margin: 0;
    padding-left: 30px;
    color: #7f1d1d;
}

.result-box li {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 15px;
    font-family: 'Georgia', serif;
}

/* Histopathology Image */
.histopathology-image {
    margin-top: 40px;
    padding: 25px;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.histo-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 4px;
    border: 4px solid var(--primary-color);
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow);
}

.histo-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.image-caption {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    font-style: italic;
    margin: 0;
    padding: 12px 25px;
    background: var(--light-bg);
    border-radius: 4px;
    display: inline-block;
    border-left: 4px solid var(--accent-color);
    font-family: 'Segoe UI', sans-serif;
}

/* Figures Grid */
.figures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.figure-item {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 18px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.figure-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.figure-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
    display: block;
    object-fit: cover;
    max-height: 400px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    border: 1px solid var(--border-color);
}

.figure-image:hover {
    opacity: 0.9;
}

.figure-caption {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin: 0;
    padding: 10px 15px;
    background: var(--light-bg);
    border-radius: 4px;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.5;
}

/* Conclusion */
.conclusion {
    background: #fffbeb;
    padding: 35px 40px;
    border-radius: 8px;
    border: 2px solid #f59e0b;
    border-left: 6px solid #f59e0b;
    box-shadow: var(--shadow);
}

.conclusion .section-content {
    padding-left: 0;
}

.conclusion p {
    font-size: 1.05rem;
    color: #78350f;
    font-weight: 500;
    line-height: 1.9;
    font-family: 'Georgia', serif;
}

/* References */
.references {
    list-style: none;
    counter-reset: reference-counter;
    padding-left: 0;
    background: #f8fafc;
    padding: 30px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.references li {
    counter-increment: reference-counter;
    position: relative;
    padding-left: 45px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-family: 'Georgia', serif;
}

.references li:last-child {
    margin-bottom: 0;
}

.references li::before {
    content: "[" counter(reference-counter) "]";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.references a {
    color: var(--secondary-color);
    text-decoration: none;
    word-break: break-word;
    border-bottom: 1px dotted var(--secondary-color);
}

.references a:hover {
    border-bottom: 1px solid var(--secondary-color);
    color: var(--primary-color);
}

.references em {
    font-style: italic;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: linear-gradient(to right, #0f172a 0%, #1e3a5f 100%);
    color: white;
    text-align: center;
    padding: 35px 40px;
    border-top: 3px solid var(--accent-color);
}

.footer p {
    margin: 8px 0;
    font-size: 0.95rem;
    font-family: 'Segoe UI', sans-serif;
}

.disclaimer {
    opacity: 0.75;
    font-size: 0.85rem !important;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 15px 10px;
    }

    .container {
        border-radius: 8px;
    }

    .header {
        padding: 35px 25px;
    }

    .main-title {
        font-size: 1.9rem;
        line-height: 1.3;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .authors {
        padding: 18px 25px;
    }

    .content {
        padding: 35px 25px;
    }

    .section-content {
        padding-left: 0;
    }

    .section-header h3 {
        font-size: 1.2rem;
    }

    .section-icon {
        font-size: 1.7rem;
        margin-right: 12px;
    }

    .figures-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .figure-image {
        max-height: 350px;
    }

    .histo-image {
        max-width: 100%;
        border-width: 3px;
    }

    .histopathology-image {
        padding: 18px;
    }

    .conclusion {
        padding: 25px 20px;
    }

    .references {
        padding: 20px;
    }

    .info-box {
        padding: 20px 25px;
    }

    .result-box {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .section-header h3 {
        font-size: 1.1rem;
    }

    .section-content p,
    .conclusion p {
        font-size: 1rem;
    }

    .header-badge {
        font-size: 0.75rem;
        padding: 6px 20px;
    }

    .content {
        padding: 25px 20px;
    }

    .footer {
        padding: 25px 20px;
    }
}

