/* Estilos base heredados */
@import url('../css/styles.css');

/* Estilos específicos para la página de niveles */
.levels-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.level-intro {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
}

.level-intro h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.level-intro p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
}

.tab-button {
    padding: 0.8rem 2rem;
    margin: 0 0.5rem;
    background: none;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-button.active {
    background-color: var(--primary-color);
    color: rgb(52, 3, 145);
}

.tab-button.active::after {
    transform: scaleX(1);
}

.tab-button:not(.active):hover {
    background-color: #ff0000;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

.level-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    background-color: rgb(64, 243, 73);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.level-description {
    flex: 2;
}

.level-image {
    flex: 1;
}

.level-image img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.zoom-on-hover:hover {
    transform: scale(1.05);
}

.level-description h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
}

.level-description h3 i {
    color: var(--secondary-color);
}

.level-description p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.level-description ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.level-description li {
    margin-bottom: 0.5rem;
    position: relative;
}

.level-description li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

.cost-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.cost-box h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.cost {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.note {
    font-size: 0.9rem;
    color: #666;
}

.additional-costs {
    background-color: rgb(255, 0, 0);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.additional-costs h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
}

.additional-costs h3 i {
    color: var(--secondary-color);
}

.costs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cost-item {
    background-color: #368fe7;
    padding: 1rem;
    border-radius: 8px;
}

.cost-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.payment-info {
    background-color: #38da32;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.payment-info p {
    margin-bottom: 0.5rem;
}

/* Animaciones específicas */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .level-info {
        flex-direction: column;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        margin: 0.3rem;
        padding: 0.6rem 1.2rem;
    }
    
    .section-image {
        height: 200px;
    }
}