/* Estilos generales para la documentación */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

/* Tab Navigation Styles */
.tab-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tab-button {
    background-color: #34495e;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.tab-button:hover {
    background-color: #3498db;
    transform: translateY(-1px);
}

.tab-button.active {
    background-color: #3498db;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}

/* Tab Content Styles */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Legacy navigation styles (kept for backwards compatibility) */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    margin-right: 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #34495e;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

section {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

section:last-child {
    border-bottom: none;
}

h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

h3 {
    color: #34495e;
}

/* Image Container Styles */
.image-container {
    margin: 1.5rem 0;
    text-align: center;
}

.image-placeholder {
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    border: 2px dashed #95a5a6;
    border-radius: 8px;
    padding: 2rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #7f8c8d;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    border-color: #3498db;
    background: linear-gradient(135deg, #e8f4fd 0%, #d6eaf8 100%);
    color: #2980b9;
}

.image-placeholder.small {
    min-height: 120px;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-card h4 {
    margin-top: 0;
    color: #2c3e50;
}

/* Terms Grid */
.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.term-card {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 1rem;
    border-radius: 0 4px 4px 0;
}

.term-card h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.term-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Content Sections */
.content-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.section-half {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.full-width-section {
    margin: 2rem 0;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Quick Steps */
.quick-steps ol {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #28a745;
}

.quick-steps li {
    margin-bottom: 0.5rem;
}

/* Treasure Info */
.treasure-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.treasure-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.treasure-card h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #ecf0f1;
    color: #7f8c8d;
    margin-top: 2rem;
}

.code-block {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 1rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.alert-info {
    background-color: #d1ecf1;
    border-left: 4px solid #0c5460;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-left: 4px solid #856404;
    color: #856404;
}

/* Page Navigation Styles */
.page-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: #34495e;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.nav-link:hover {
    background-color: #3498db;
}

/* Section Cards */
.section-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.major-section {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid #3498db;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.info-item {
    background-color: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.info-item h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

.info-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Checklist Styles */
.checklist {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.checklist-item {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #28a745;
}

.checklist-item h4 {
    margin-top: 0;
    color: #2c3e50;
}

/* Terms Glossary */
.terms-glossary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.term-definition {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #3498db;
}

.term-definition h4 {
    margin-top: 0;
    color: #2c3e50;
}

.term-definition p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Steps Container */
.steps-container {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    gap: 1rem;
}

.step-number {
    background-color: #3498db;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border: 2px solid #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-secondary:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-1px);
}

/* Next Steps */
.next-steps {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 3rem 0;
}

.next-steps h3 {
    margin-top: 0;
    color: white;
}

/* Pool Navigation Cards */
.pools-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.pool-nav-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pool-nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: #2980b9;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.benefit-item {
    background-color: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    text-align: center;
}

/* Requirements List */
.requirements-list {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.requirement-item {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #f39c12;
}

/* Creation Steps */
.creation-steps {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.step-detail {
    display: flex;
    align-items: flex-start;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    gap: 1rem;
}

/* Important Notes */
.important-notes {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.note-item {
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

/* Selection Criteria */
.selection-criteria {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.criteria-item {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #27ae60;
}

/* Joining Steps */
.joining-steps {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.join-step {
    display: flex;
    align-items: flex-start;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    gap: 1rem;
}

/* Management Options */
.management-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.option-card {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

/* Pro Tips */
.pro-tips {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.tip-item {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #9b59b6;
}

.tip-item h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.tip-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Interface Guide */
.interface-guide {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.interface-section {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #e74c3c;
}

/* Responsive updates */
@media (max-width: 768px) {
    .page-navigation {
        flex-direction: column;
        text-align: center;
    }
    
    .pools-navigation {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .step-item, .step-detail, .join-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
    
    .info-grid, .benefits-grid, .management-options {
        grid-template-columns: 1fr;
    }
    
    .terms-glossary {
        grid-template-columns: 1fr;
    }
}