/* Learning Article Specific Styles */

/* Header behavior on scroll */
header {
    transition: all 0.3s ease;
}

header.header-hidden {
    transform: translateY(-85%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

header.header-visible {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.2);
}

/* Ensure progress bar is always visible */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10000;
    pointer-events: none;
}

.learning-article {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f8fdff 0%, #e8f6ff 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Article Header */
.article-header {
    text-align: center;
    margin-bottom: 80px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--secondary);
    transform: translateX(-5px);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

/* Desktop version - shown above title */
.article-meta-desktop {
    display: flex;
}

/* Mobile version - shown below title, hidden by default */
.article-meta-mobile {
    display: none;
    margin-bottom: 40px;
    margin-top: 25px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
    font-size: 0.8rem;
    font-weight: 500;
}

.article-category {
    background: var(--primary);
    color: white !important;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.75rem;
}

.article-header h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 60px;
    color: var(--dark);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-intro {
    max-width: 800px;
    margin: 0 auto 80px auto;
    text-align: left;
}

.article-intro p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.intro-highlight {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 107, 53, 0.1);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--accent);
    margin: 30px 0;
}

.intro-highlight i {
    color: var(--accent);
    font-size: 1.5rem;
    margin-top: 5px;
}

.intro-highlight p {
    margin: 0;
    color: var(--dark);
    font-weight: 600;
}

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 113, 188, 0.3);
    gap: 25px;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.cta-content i {
    font-size: 2.5rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.cta-content div {
    flex: 1;
}

.cta-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    color: white;
}

.cta-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.cta-banner .btn {
    background: white;
    color: var(--primary);
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 700;
    padding: 15px 25px;
}

.cta-banner .btn:hover {
    background: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Table of Contents */
.table-of-contents {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.95));
    border: 1px solid rgba(0, 113, 188, 0.1);
    border-radius: 15px;
    padding: 25px;
    max-width: 900px;
    margin: 40px auto;    
    box-shadow: 0 8px 25px rgba(0, 113, 188, 0.1);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 120px;
    z-index: 100;
}

.table-of-contents h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-of-contents h3 i {
    color: var(--secondary);
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.table-of-contents a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
}

.table-of-contents a:hover {
    background: rgba(0, 113, 188, 0.08);
    color: var(--primary);
    transform: translateX(8px);
}

.table-of-contents a:hover::before {
    background: var(--secondary);
}

/* Active link in table of contents */
.table-of-contents a.active {
    background: rgba(0, 113, 188, 0.12);
    color: var(--primary);
    font-weight: 600;
}

.table-of-contents a.active::before {
    background: var(--primary);
}

/* Visited link in table of contents */
.table-of-contents a.visited {
    position: relative;
}

.table-of-contents a.visited::after {
    content: '✓';
    position: absolute;
    right: 15px;
    color: #28a745; /* Fallback green color */
    font-weight: 700;
    font-size: 16px;
    opacity: 0.9;
    animation: checkmarkAppear 0.5s ease-out;
}

.table-of-contents a.visited.active::after {
    color: var(--primary);
    opacity: 1;
}

@keyframes checkmarkAppear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        opacity: 0.9;
        transform: scale(1);
    }
}

/* Progress indicator on visited sections */
.table-of-contents a.visited {
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.08), transparent);
    border-left: 3px solid rgba(40, 167, 69, 0.3);
}

.table-of-contents a.visited:not(.active) {
    color: rgba(var(--text-dark-rgb, 33, 37, 41), 0.85);
}

.table-of-contents a.visited:hover {
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.12), rgba(0, 113, 188, 0.08));
}

/* Article Content */
.article-content {
    max-width: 900px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 60px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.content-section h2 {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 2.2rem;
}

.content-section h2 i {
    color: var(--secondary);
}

.content-section h3 {
    color: var(--dark);
    margin: 30px 0 20px 0;
    font-size: 1.5rem;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Text links - specific class for links within paragraphs and text content */
.text-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.text-link:hover {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.text-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

.article-content .btn:hover,
.article-intro .btn:hover,
.article-content .resource-link:hover,
.article-intro .resource-link:hover {
    border-bottom: none;
}

/* Definition Box */
.definition-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #e8f6ff, #f0f8ff);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 4px solid var(--secondary);
}

.definition-icon {
    background: var(--secondary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.definition-content h4 {
    margin: 0 0 10px 0;
    color: var(--primary);
    font-size: 1.2rem;
}

.definition-content p {
    margin: 0;
    color: var(--dark);
}

/* Purpose Grid */
.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.purpose-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary);
}

.purpose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 113, 188, 0.2);
}

.purpose-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.purpose-card h4 {
    color: var(--dark);
    margin-bottom: 10px;
}

.purpose-card p {
    color: var(--gray);
    margin: 0;
    font-size: 0.95rem;
}

/* Important Note */
.important-note {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #fff3e0, #ffebcc);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 4px solid var(--accent);
}

.important-note i {
    color: var(--accent);
    font-size: 1.8rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.important-note h4 {
    color: var(--accent);
    margin: 0 0 10px 0;
}

.important-note p {
    margin: 0 0 20px 0;
    color: var(--dark);
}

.important-note p:last-child {
    margin-bottom: 0;
}

/* Diagnostic CTA */
.diagnostic-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--secondary), #1f9fd1);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.diagnostic-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.diagnostic-content h4 {
    margin: 0 0 10px 0;
    color: white;
}

.diagnostic-content p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.diagnostic-content .btn {
    background: white;
    color: var(--secondary);
    border: none;
}

.diagnostic-content .btn:hover {
    background: var(--light);
    transform: translateY(-2px);
}

/* Document Flow */
.document-flow {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px auto; /* Centra el elemento horizontalmente */
    max-width: 400px;
    align-items: center; /* Centra el contenido interno horizontalmente */
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
    text-align: center;
    transition: all 0.3s ease;
}

/* Estilo para el paso ignorado (PDF) */
.flow-step.ignored {
    opacity: 0.6;
    background: #f8f9fa;
    border-left: 4px solid #dee2e6;
    position: relative;
}

.flow-step.ignored::before {
    content: 'IGNORADO';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #6c757d;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    transform: rotate(15deg);
}

.flow-step.ignored .step-number {
    background: #6c757d;
    color: white;
}

.flow-step.ignored .step-content {
    color: #6c757d;
}

/* Estilo para el paso destacado (XML) */
.flow-step.highlighted {
    background: linear-gradient(135deg, #e8f6ff, #f0f8ff);
    border-left: 4px solid var(--secondary);
    box-shadow: 0 8px 25px rgba(41, 171, 226, 0.2);
    position: relative;
    animation: pulse-glow 2s infinite;
}

.flow-step.highlighted::before {
    content: '¡IMPORTANTE!';
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    transform: rotate(-15deg);
    animation: bounce 2s infinite;
}

/* Estilo para el paso condicional (Si aplica) */
.flow-step.conditional {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-left: 4px solid #ffc107;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
    position: relative;
}

.flow-step.conditional .step-content::after {
    content: 'SI APLICA';
    position: absolute;
    top: -30px;
    right: -30px;
    background: #ff6b35;
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    transform: rotate(15deg);
    z-index: 15;
}

.flow-step.conditional .step-content {
    position: relative;
}

/* Estilo para el paso normal */
.flow-step.normal {
    background: #f8f9fa;
    border-left: 4px solid var(--primary);
}

/* Estilo para el número de paso */
.step-number {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-content h4 {
    margin: 0 0 5px 0;
    color: var(--dark);
}

.step-content p {
    margin: 0;
    color: var(--gray);
}

.not-important {
    color: #999;
    font-style: italic;
}

/* Help Links */
.help-links {
    margin: 30px 0;
}

.help-link {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.help-link i {
    color: var(--primary);
    font-size: 1.3rem;
    margin-top: 5px;
}

.help-link h4 {
    margin: 0 0 5px 0;
    color: var(--dark);
    font-size: 1rem;
}

.help-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.help-link a:hover {
    color: var(--secondary);
}

/* Warning Box */
.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 4px solid #f44336;
}

.warning-box i {
    color: #f44336;
    font-size: 1.8rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.warning-box h4 {
    color: #f44336;
    margin: 0 0 10px 0;
}

.warning-box p {
    margin: 0;
    color: var(--dark);
}

/* JSON Options */
.json-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.option-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary);
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(41, 171, 226, 0.2);
}

.option-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.option-card h4 {
    color: var(--dark);
    margin-bottom: 15px;
}

.option-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.resource-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 113, 188, 0.2);
}

.resource-card .resource-icon {
    background: var(--primary);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px auto;
    transition: all 0.3s ease;
}

.resource-card:hover .resource-icon {
    background: var(--secondary);
    transform: scale(1.1);
}

.resource-card h4 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.resource-card p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.resource-card .resource-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid var(--primary);
    background: transparent;
}

.resource-card .resource-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.resource-card .resource-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.resource-card .resource-link:hover i {
    transform: translateX(3px);
}

/* Validation Methods */
.validation-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

.method-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.method-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.method-card.featured {
    border-left-color: var(--accent);
    background: linear-gradient(135deg, #fff8f0, #ffebcc);
}

.method-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.method-header i {
    font-size: 1.8rem;
    color: var(--primary);
}

.method-card.featured .method-header i {
    color: var(--accent);
}

.method-header h3 {
    margin: 0;
    color: var(--dark);
    flex: 1;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.recommended {
    background: var(--accent);
    color: white;
}

.badge.free {
    background: var(--success);
    color: white;
}

.badge.balanced {
    background: var(--secondary);
    color: white;
}

.method-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.method-content li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px 0;
}

.method-content li i {
    color: var(--success);
    font-size: 1.1rem;
}

.method-benefit, .method-drawback {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.method-benefit {
    background: rgba(40, 167, 69, 0.1);
    border-left: 3px solid var(--success);
}

.method-benefit i {
    color: var(--success);
}

.method-drawback {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
}

.method-drawback i {
    color: #ffc107;
}

/* Success Flow */
.success-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.success-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.success-step.highlight {
    transform: scale(1.1);
}

.success-icon {
    background: var(--success);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.success-step.highlight .success-icon {
    background: var(--accent);
    animation: pulse 2s infinite;
}

.success-content h4 {
    margin: 0 0 10px 0;
    color: var(--dark);
}

.success-content p {
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
}

/* CUV Importance */
.cuv-importance {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 4px solid #ffc107;
}

.cuv-icon {
    background: #ffc107;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cuv-content h3 {
    margin: 0 0 20px 0;
    color: var(--dark);
}

.cuv-uses {
    margin-bottom: 20px;
}

.cuv-use {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.cuv-use i {
    color: #ffc107;
    font-size: 1.2rem;
}

.legal-reference {
    display: flex;
    align-items: center;
    gap: 10px;
    font-style: italic;
    color: var(--gray);
}

.legal-reference i {
    color: var(--primary);
}

/* Rejection Process */
.rejection-process {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.rejection-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.step-icon.rejected {
    background: #f44336;
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.3);
}

.step-icon.action {
    background: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 113, 188, 0.3);
}

.step-icon.retry {
    background: var(--secondary);
    box-shadow: 0 5px 15px rgba(41, 171, 226, 0.3);
}

/* Help Correction */
.help-correction {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 4px solid var(--success);
}

.help-correction i {
    color: var(--success);
    font-size: 2rem;
    flex-shrink: 0;
}

.help-correction h4 {
    margin: 0 0 5px 0;
    color: var(--dark);
}

.help-correction p {
    margin: 0 0 15px 0;
    color: var(--gray);
}

/* Critical Note */
.critical-note {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 4px solid #f44336;
}

.critical-note i {
    color: #f44336;
    font-size: 1.8rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.critical-note h4 {
    color: #f44336;
    margin: 0 0 10px 0;
}

.critical-note p {
    margin: 0;
    color: var(--dark);
}

/* Timeline Container */
.timeline-container {
    margin: 40px 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-marker {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.timeline-marker.prestador {
    background: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 113, 188, 0.3);
}

.timeline-marker.pagador {
    background: var(--secondary);
    box-shadow: 0 5px 15px rgba(41, 171, 226, 0.3);
}

.timeline-content h4 {
    margin: 0 0 10px 0;
    color: var(--dark);
}

.deadline {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.timeline-content p {
    margin: 0;
    color: var(--gray);
}

/* Consequences Grid */
.consequences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.consequence-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.consequence-card.immediate {
    border-top: 4px solid #f44336;
}

.consequence-card.administrative {
    border-top: 4px solid var(--accent);
}

.consequence-card.entity {
    border-top: 4px solid var(--primary);
}

.consequence-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.consequence-icon {
    background: var(--light);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px auto;
}

.consequence-card.immediate .consequence-icon {
    color: #f44336;
}

.consequence-card.administrative .consequence-icon {
    color: var(--accent);
}

.consequence-card.entity .consequence-icon {
    color: var(--primary);
}

.consequence-card h4 {
    color: var(--dark);
    margin-bottom: 15px;
}

.consequence-card p {
    color: var(--gray);
    margin: 0;
}

.consequence-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.consequence-card li {
    padding: 5px 0;
    color: var(--gray);
}

.consequence-card li:before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Prevention CTA */
.prevention-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--success), #1e7e34);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.prevention-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    color: white;
}

.prevention-icon i {
    color: white;
    font-size: 2rem;
}

.prevention-content h4 {
    margin: 0 0 10px 0;
    color: white;
}

.prevention-content p {
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.prevention-content .btn {
    background: white;
    color: var(--success);
    border: none;
}

.prevention-content .btn:hover {
    background: var(--light);
    transform: translateY(-2px);
}

/* Recommendation */
.recommendation-intro {
    text-align: center;
    margin-bottom: 40px;
}

.recommendation-intro p {
    font-size: 1.2rem;
    color: var(--dark);
    max-width: 600px;
    margin: 0 auto;
}

.three-step-system {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.system-step {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.system-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 113, 188, 0.15);
    border-color: var(--primary);
}

.system-step .step-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 12px rgba(0, 113, 188, 0.3);
}

.system-step h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.system-step p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* Enhanced Encouragement Note */
.encouragement-note {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border: 2px solid var(--success);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.encouragement-note i {
    color: var(--success);
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.encouragement-note h4 {
    color: var(--success);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.encouragement-note p {
    color: var(--dark);
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Enhanced Footer Buttons */
.footer-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.footer-buttons .btn {
    font-size: 1rem;
    padding: 14px 28px;
}

.footer-buttons .btn i {
    margin-right: 8px;
}

/* JSON Structure Display */
.json-structure {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin: 50px 0 30px 0;
    position: relative;
    overflow: visible;
}

.json-structure::before {
    content: "JSON";
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 113, 188, 0.4);
    border: 2px solid white;
}

.json-structure pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
    overflow-x: auto;
}

.json-structure code {
    color: #333;
    background: none;
    padding: 0;
    border-radius: 0;
    font-family: inherit;
    white-space: pre;
}

/* Technical Terms */
code {
    background: rgba(0, 113, 188, 0.1);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    font-weight: 500;
}

/* Enhanced Flow Steps for Process Diagram */
.flow-step.process-diagram {
    position: relative;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.flow-step.process-diagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 113, 188, 0.15);
    border-color: var(--primary);
}

.flow-step.process-diagram .step-number {
    position: absolute;
    top: -15px;
    left: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 113, 188, 0.3);
}

.flow-step.process-diagram .step-content h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.flow-step.process-diagram .step-content p {
    margin-bottom: 15px;
    color: var(--dark);
}

.flow-step.process-diagram .step-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.flow-step.process-diagram .step-content li {
    margin-bottom: 8px;
    color: var(--gray);
}

/* Highlighted process step */
.flow-step.process-diagram.highlighted {
    background: linear-gradient(135deg, rgba(0, 113, 188, 0.05), rgba(41, 171, 226, 0.05));
    border-color: var(--secondary);
}

.flow-step.process-diagram.highlighted .step-number {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 113, 188, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(41, 171, 226, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 113, 188, 0.3);
    }
}

/* Vertical connection lines between process steps */
.flow-step.process-diagram:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50px;
    width: 3px;
    height: 25px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    border-radius: 2px;
}

/* Enhanced Three Step System */
.three-step-system {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.system-step {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.system-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 113, 188, 0.15);
    border-color: var(--primary);
}

.system-step .step-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 12px rgba(0, 113, 188, 0.3);
}

.system-step h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.system-step p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* Article Footer */
.article-footer {
    margin-top: 80px;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fdff 0%, #e8f6ff 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 113, 188, 0.1);
    border: 1px solid rgba(0, 113, 188, 0.1);
}

.author-info {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 50px;
    padding: 0 40px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0, 113, 188, 0.3);
}

.author-avatar i {
    font-size: 2rem;
    color: white;
}

.author-details h4 {
    color: var(--dark);
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.author-details p {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.author-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.author-link:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.author-link i {
    font-size: 0.9rem;
}

.footer-cta {
    text-align: center;
    padding: 0 40px;
    margin-bottom: 40px;
}

.footer-cta h3 {
    color: var(--dark);
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.footer-cta p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-buttons .btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 200px;
}

.footer-buttons .btn i {
    margin-right: 10px;
}

/* Footer Share */
.footer-share {
    text-align: center;
    padding: 40px;
    border-top: 1px solid rgba(0, 113, 188, 0.1);
}

.footer-share h4 {
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: var(--gray);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.facebook:hover {
    background: #2d4373;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.twitter:hover {
    background: #0d8bd9;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.linkedin:hover {
    background: #005582;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.whatsapp:hover {
    background: #20c157;
}

/* Responsive Design for Article Footer */
@media (max-width: 768px) {
    .article-footer {
        margin-top: 60px;
        padding: 40px 0;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 0 20px;
        margin-bottom: 40px;
    }
    
    .author-avatar {
        width: 70px;
        height: 70px;
        align-self: center;
    }
    
    .author-avatar i {
        font-size: 1.8rem;
    }
    
    .author-details h4 {
        font-size: 1.2rem;
    }
    
    .author-details p {
        font-size: 0.95rem;
    }
    
    .footer-cta {
        padding: 0 20px;
        margin-bottom: 30px;
    }
    
    .footer-cta h3 {
        font-size: 1.6rem;
    }
    
    .footer-cta p {
        font-size: 1rem;
    }
    
    .footer-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .footer-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .footer-share {
        padding: 30px 20px;
    }
    
    .footer-share h4 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .share-buttons {
        gap: 12px;
    }
    
    .share-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .footer-buttons .btn {
        font-size: 0.95rem;
        padding: 12px 20px;
    }
    
    .share-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .learning-article {
        padding-top: 0;
        background: white;
    }
    
    .back-link, .footer-share, .cta-banner, .diagnostic-cta, .prevention-cta {
        display: none;
    }
    
    .content-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .article-header h1 {
        font-size: 2rem;
        color: black;
    }
    
    .content-section h2 {
        color: black;
        font-size: 1.5rem;
    }
    
    .learning-bg-shapes {
        display: none;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .content-section {
        border: 2px solid var(--dark);
    }
    
    .definition-box, .important-note, .warning-box {
        border: 2px solid var(--dark);
    }
    
    .btn {
        border: 2px solid var(--dark);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .learning-article {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        color: #f0f0f0;
    }
    
    .content-section {
        background: #2d2d2d;
        color: #f0f0f0;
    }
    
    .content-section h2, .content-section h3 {
        color: #f0f0f0;
    }
    
    .table-of-contents {
        background: #2d2d2d;
        border-left-color: var(--secondary);
    }
    
    .table-of-contents a {
        color: #f0f0f0;
    }
}

/* Learning Page Styles */

:root {
    --success: #28a745;
    --text-dark-rgb: 33, 37, 41;
}

/* Ensure visited states work with fallback colors */
.table-of-contents a.visited::after {
    color: #28a745; /* Fallback green color */
}

/* Method card button spacing */
.method-card .btn-spaced {
    margin-top: 20px;
}

/* Sistema genérico de herramientas - reemplaza json-tools-container */
.tools-section {
    background: rgba(0, 113, 188, 0.08);
    border: 1px solid rgba(0, 113, 188, 0.2);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
}

.tools-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
}

.tools-title i {
    color: var(--primary);
}

.tools-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tool-btn {
    font-size: 0.9rem;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 160px;
    justify-content: center;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos base para botones de herramientas - serán sobrescritos por estilos contextuales */
.tool-btn.primary {
    background: var(--gray);
    color: white;
    border-color: var(--gray);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.tool-btn.primary:hover {
    background: #5a6268;
    border-color: #5a6268;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.tool-btn.primary i {
    color: white;
}

.tool-btn.secondary {
    background: transparent;
    color: var(--gray);
    border-color: var(--gray);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.1);
}

.tool-btn.secondary:hover {
    background: var(--gray);
    color: white;
    border-color: var(--gray);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.tool-btn.secondary:hover i {
    color: white;
}

.tool-btn.secondary i {
    color: var(--gray);
    transition: color 0.3s ease;
}

/* Estilos contextuales para herramientas según el contenedor padre */

/* Herramientas dentro de definition-box - Esquema azul */
.definition-box .tools-section {
    background: rgba(0, 113, 188, 0.08);
    border-left-color: var(--primary);
}

.definition-box .tools-title {
    color: var(--primary);
}

.definition-box .tools-title i {
    color: var(--primary);
}

.definition-box .tool-btn.primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 113, 188, 0.3);
}

.definition-box .tool-btn.primary:hover {
    background: #005a9c;
    border-color: #005a9c;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 113, 188, 0.4);
}

.definition-box .tool-btn.secondary {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    box-shadow: 0 4px 15px rgba(41, 171, 226, 0.3);
}

.definition-box .tool-btn.secondary:hover {
    background: #1f9fd1;
    color: white;
    border-color: #1f9fd1;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(41, 171, 226, 0.4);
}

.definition-box .tool-btn.primary i,
.definition-box .tool-btn.secondary i {
    color: white;
}

/* Herramientas dentro de important-note - Esquema naranja */
.important-note .tools-section {
    background: rgba(255, 107, 53, 0.08);
    border-left-color: var(--accent);
}

.important-note .tools-title {
    color: var(--accent);
}

.important-note .tools-title i {
    color: var(--accent);
}

.important-note .tool-btn.primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.important-note .tool-btn.primary:hover {
    background: #e55a2a;
    border-color: #e55a2a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.important-note .tool-btn.secondary {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.1);
}

.important-note .tool-btn.secondary:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.important-note .tool-btn.primary i {
    color: white;
}

.important-note .tool-btn.secondary i {
    color: var(--accent);
    transition: color 0.3s ease;
}

/* Herramientas dentro de warning-box - Esquema rojo */
.warning-box .tools-section {
    background: rgba(220, 53, 69, 0.08);
    border-left-color: #dc3545;
}

.warning-box .tools-title {
    color: #dc3545;
}

.warning-box .tools-title i {
    color: #dc3545;
}

.warning-box .tool-btn.primary {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.warning-box .tool-btn.primary:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.warning-box .tool-btn.secondary {
    background: transparent;
    color: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.1);
}

.warning-box .tool-btn.secondary:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.warning-box .tool-btn.primary i {
    color: white;
}

.warning-box .tool-btn.secondary i {
    color: #dc3545;
    transition: color 0.3s ease;
}

.warning-box .tool-btn.secondary:hover i {
    color: white;
}

/* Herramientas dentro de critical-note - Esquema rojo más intenso */
.critical-note .tools-section {
    background: rgba(220, 53, 69, 0.12);
    border-left-color: #dc3545;
}

.critical-note .tools-title {
    color: #dc3545;
}

.critical-note .tools-title i {
    color: #dc3545;
}

.critical-note .tool-btn.primary {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.critical-note .tool-btn.primary:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
}

.critical-note .tool-btn.secondary {
    background: transparent;
    color: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.critical-note .tool-btn.secondary:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.critical-note .tool-btn.primary i {
    color: white;
}

.critical-note .tool-btn.secondary i {
    color: #dc3545;
    transition: color 0.3s ease;
}

.critical-note .tool-btn.secondary:hover i {
    color: white;
}

/* Responsive adjustments para el nuevo sistema de herramientas */
@media (max-width: 768px) {
    .tools-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .tool-btn {
        min-width: 100%;
        margin-bottom: 0;
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    
    .tools-section {
        padding: 15px;
        margin-top: 20px;
    }
    
    .tools-title {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
}
