/* =========================================
   COMPETITIVE ECOSYSTEM LAYOUT - CORE
   ========================================= */

/* Contenedor principal ajustado para pantallas 1920px */
.competitive-ecosystem-layout {
    width: 100%;
    background-color: var(--bg);
    color: var(--txt);
    box-sizing: border-box;
}

.page-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}

/* =========================================
   1. HERO SECTION
   ========================================= */

.hero-header {
    background-color: var(--panel);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 4rem 0 6rem 0;
}

.hero-header > * {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero-content {
    max-width: 80%;
}

.hero-navigation {
    margin-bottom: 2rem;
}

.hero-navigation {
    margin-bottom: 2rem;
}

.breadcrumbs-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
}

.crumb-link {
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s ease;
}

.crumb-link:hover {
    color: var(--accent);
}

.crumb-active {
    color: var(--accent);
}

.crumb-separator {
    color: var(--borders);
    opacity: 0.5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--hover);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--borders);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    letter-spacing: -2px;
    color: var(--txt);
}

.hero-title .text-gradient {
    color: var(--accent);
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 650px;
    margin: 0;
}

/* =========================================
   2. CONCEPT SECTION (Blog Style)
   ========================================= */

.concept-section {
    padding: 8rem 2rem;
}

.concept-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: start;
    background-color: var(--panel);
    padding: 4rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.concept-text {
    padding-right: 2rem;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--txt);
    letter-spacing: -1px;
}

.body-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.body-text strong {
    color: var(--txt);
    font-weight: 600;
}

/* Stats Display */
.concept-stats-display {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background-color: var(--bg);
    padding: 2rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--borders);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--accent);
    background-color: var(--hover);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.stat-label {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 500;
    margin-left: 1.5rem;
    flex-grow: 1;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--txt);
}

/* =========================================
   3. BENTO GRID NIVELES
   ========================================= */

.tiers-display-section {
    padding: 0 2rem 8rem 2rem;
}

.section-intro {
    margin-bottom: 3rem;
    text-align: center;
}

.sub-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--muted);
    font-size: 1.1rem;
}

/* Grid Layout - Actualizado para 4 niveles */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(350px, auto);
    gap: 2rem;
}

/* Cards Generales */
.bento-card {
    background-color: var(--panel);
    border-radius: var(--radius);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--borders);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Especificidad para Nivel 1 (Ocupa 3 columnas - fila completa) */
.bento-card.tier-pro.col-span-3 {
    grid-column: span 3;
    background: linear-gradient(135deg, var(--panel) 0%, var(--panel-2) 100%);
    border: 1px solid var(--borders);
}

/* Header de Tarjeta */
.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tier-icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
    border: 1px solid var(--borders);
}

.tier-titles {
    display: flex;
    flex-direction: column;
}

.tier-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--txt);
    margin: 0 0 0.2rem 0;
}

.tier-alias {
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Cuerpo de Tarjeta */
.tier-description {
    font-size: 1rem;
    color: var(--txt);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.tier-specs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tier-specs li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--txt);
}

.tier-specs li i {
    color: var(--accent);
    margin-top: 4px;
    font-size: 1rem;
}

/* Grid interno para la tarjeta del Nivel 1 */
.pro-grid-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.pro-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.tag {
    background-color: var(--bg);
    color: var(--txt);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--borders);
}

.mini-title {
    font-size: 1rem;
    color: var(--txt);
    margin-bottom: 1.5rem;
    margin-top: 0;
    font-weight: 700;
}

/* Footer de Tarjeta */
.card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
    border: 1px solid var(--borders);
}

.status-badge.status-open {
    background-color: var(--hover);
    color: var(--muted);
}

.status-badge.status-warn {
    background-color: var(--hover);
    color: var(--txt);
}

/* =========================================
   4. MECHANICS SECTION (Steps)
   ========================================= */

.mechanics-section {
    padding: 0 2rem 8rem 2rem;
    background-color: var(--panel-2);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.mechanics-section > * {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.mechanics-section .section-heading {
    text-align: center;
    padding-top: 6rem;
    margin-bottom: 4rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 6rem;
}

.step-item {
    background-color: var(--panel);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--borders);
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-4px);
}

.step-marker {
    font-size: 4rem;
    font-weight: 900;
    color: var(--borders);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
    z-index: 0;
}

.step-details {
    position: relative;
    z-index: 1;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
}

.step-details h4 {
    font-size: 1.25rem;
    color: var(--txt);
    margin-bottom: 1rem;
    font-weight: 700;
}

.step-details p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* =========================================
   5. FAQ SECTION
   ========================================= */

.faq-modern-section {
    padding: 8rem 2rem 6rem 2rem;
}

.faq-header {
    margin-bottom: 3rem;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.faq-card {
    background-color: var(--panel);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--borders);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.faq-question-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.faq-question-header i {
    color: var(--accent);
    font-size: 1.1rem;
}

.faq-question-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--txt);
}

.faq-text {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   6. CTA FINAL SECTION
   ========================================= */

.cta-final-section {
    padding: 0;
}

.cta-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background-color: var(--panel);
    border-radius: var(--radius);
    padding: 1.5rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 100;
    border: 1px solid var(--borders);
    backdrop-filter: blur(10px);
}

.cta-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cta-info i {
    font-size: 2rem;
    color: var(--accent);
}

.cta-text-group {
    display: flex;
    flex-direction: column;
}

.cta-head {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--txt);
}

.cta-sub {
    font-size: 0.9rem;
    color: var(--muted);
}

.cta-buttons-group {
    display: flex;
    gap: 1rem;
}

.cta-buttons-group .btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-buttons-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background-color: var(--btn-primary);
    color: var(--txt-2);
}

.btn-secondary {
    background-color: var(--btn-secondary);
    color: var(--txt-2);
    border: 1px solid var(--borders);
}

/* =========================================
   MEDIA QUERY (Ajustes menores)
   ========================================= */
@media screen and (max-width: 1400px) {
    .bento-grid {
        gap: 1.5rem;
    }
    
    .bento-card {
        padding: 2rem;
    }
    
    .concept-grid {
        padding: 3rem;
    }
}

@media screen and (max-width: 1024px) {
    .concept-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-card.tier-pro.col-span-3 {
        grid-column: span 1;
    }
    
    .pro-grid-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    /* CTA estático en móviles, flotante en desktop */
    .cta-final-section {
        padding: 4rem 2rem;
        background-color: var(--panel-2);
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .cta-container {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .cta-info {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .cta-buttons-group {
        width: 100%;
        flex-direction: column;
    }
    
    .cta-buttons-group .btn {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .concept-section {
        padding: 4rem 2rem;
    }
    
    .concept-grid {
        padding: 2rem;
    }
    
    .cta-final-section {
        padding: 3rem 1rem;
    }
}